/* CyberThrone Social Widget — front-end styles */

/*
 * .csw-count-inline — output of the standalone [cyberthrone_social_count]
 * shortcode (just a number, no card markup), for dropping into a
 * hand-built layout. Deliberately unstyled beyond inheriting the
 * surrounding text — it's meant to sit inside whatever font/size/color the
 * page around it already has. A per-platform hook
 * (.csw-count-inline--x, .csw-count-inline--discord, etc.) is included so a
 * specific instance can be targeted from Custom CSS if it ever needs to
 * look different from its neighbors.
 */
.csw-count-inline {
	display: inline;
}

.csw-wrap {
	--csw-columns: 4;
	display: grid;
	grid-template-columns: repeat(var(--csw-columns), 1fr);
	gap: 28px 24px;
	padding: 28px 20px;
	box-sizing: border-box;
}

.csw-wrap * {
	box-sizing: border-box;
}

.csw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 34px 18px 20px;
	border-radius: 6px;
	gap: 10px;
}

/* ---------- Neon (CyberThrone) preset ---------- */

.csw-style-neon {
	background: #0a1130;
}

.csw-style-neon .csw-card {
	border: 1px solid rgba(56, 219, 255, 0.55);
	box-shadow: 0 0 14px rgba(56, 219, 255, 0.18), inset 0 0 14px rgba(56, 219, 255, 0.06);
	background: linear-gradient(180deg, rgba(56, 219, 255, 0.04), rgba(10, 17, 48, 0) 40%);
}

.csw-style-neon .csw-icon-frame {
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 62px;
	height: 62px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0a1130;
	border: 1px solid rgba(56, 219, 255, 0.8);
	box-shadow: 0 0 16px rgba(56, 219, 255, 0.55);
	color: #38dbff;
}

.csw-style-neon .csw-icon svg {
	width: 26px;
	height: 26px;
}

.csw-style-neon .csw-handle {
	margin-top: 14px;
	font-weight: 700;
	color: #38dbff;
	letter-spacing: 0.02em;
	text-shadow: 0 0 8px rgba(56, 219, 255, 0.5);
}

.csw-style-neon .csw-count {
	color: #eaf9ff;
	font-weight: 700;
	font-size: 0.95em;
}

.csw-style-neon .csw-count-label {
	font-weight: 400;
	opacity: 0.75;
	font-size: 0.9em;
}

.csw-style-neon .csw-button {
	margin-top: 8px;
	padding: 8px 18px;
	border: 1px solid rgba(56, 219, 255, 0.65);
	border-radius: 4px;
	color: #cdf7ff;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.csw-style-neon .csw-button:hover {
	background: rgba(56, 219, 255, 0.12);
	box-shadow: 0 0 10px rgba(56, 219, 255, 0.4);
}

.csw-style-neon .csw-button-disabled {
	opacity: 0.5;
	cursor: default;
}

/* ---------- Light preset ---------- */

.csw-style-light {
	background: transparent;
}

.csw-style-light .csw-card {
	border: 1px solid #e2e5ec;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
}

.csw-style-light .csw-icon-frame {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f6ff;
	border: 1px solid #dbe3f5;
	color: #2a5adf;
}

.csw-style-light .csw-icon svg {
	width: 24px;
	height: 24px;
}

.csw-style-light .csw-handle {
	margin-top: 12px;
	font-weight: 700;
	color: #1c2333;
}

.csw-style-light .csw-count {
	color: #384056;
	font-weight: 600;
	font-size: 0.95em;
}

.csw-style-light .csw-count-label {
	font-weight: 400;
	opacity: 0.7;
	font-size: 0.9em;
}

.csw-style-light .csw-button {
	margin-top: 8px;
	padding: 8px 18px;
	border-radius: 20px;
	background: #2a5adf;
	color: #fff;
	text-decoration: none;
	font-size: 0.9em;
}

.csw-style-light .csw-button:hover {
	background: #1d47bd;
}

.csw-style-light .csw-button-disabled {
	background: #b9c3da;
	cursor: default;
}

/* ---------- Minimal dark preset ---------- */

.csw-style-minimal-dark {
	background: transparent;
}

.csw-style-minimal-dark .csw-card {
	border: 1px solid #2a2f3a;
	border-radius: 10px;
	background: #14161c;
}

.csw-style-minimal-dark .csw-icon-frame {
	position: absolute;
	top: -26px;
	left: 50%;
	transform: translateX(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1d2028;
	border: 1px solid #34394a;
	color: #cfd6e6;
}

.csw-style-minimal-dark .csw-icon svg {
	width: 22px;
	height: 22px;
}

.csw-style-minimal-dark .csw-handle {
	margin-top: 12px;
	font-weight: 700;
	color: #e7e9ee;
}

.csw-style-minimal-dark .csw-count {
	color: #b7bccb;
	font-weight: 600;
	font-size: 0.95em;
}

.csw-style-minimal-dark .csw-count-label {
	font-weight: 400;
	opacity: 0.7;
	font-size: 0.9em;
}

.csw-style-minimal-dark .csw-button {
	margin-top: 8px;
	padding: 8px 18px;
	border-radius: 4px;
	border: 1px solid #3a3f4d;
	color: #dfe2ea;
	text-decoration: none;
	font-size: 0.9em;
}

.csw-style-minimal-dark .csw-button:hover {
	background: #21252f;
}

.csw-style-minimal-dark .csw-button-disabled {
	opacity: 0.5;
	cursor: default;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.csw-wrap {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.csw-wrap {
		grid-template-columns: 1fr;
	}
}

.csw-empty-notice {
	padding: 12px 16px;
	border: 1px dashed #c00;
	color: #c00;
	font-size: 0.9em;
}
