/* NextChain — extra polish layered on top of theme.json.
   Everything here is presentational sugar; the theme works without it. */

/* ---------- Utility classes (add via block "Additional CSS class") ---------- */

/* Gradient text for headline spans/headings */
.ncv-gradient-text {
	background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Card: used across services, games, posts */
.ncv-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ncv-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, 0.55);
	box-shadow: 0 14px 40px rgba(2, 6, 16, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.15);
}

/* Soft glass panel */
.ncv-glass {
	background: rgba(18, 26, 46, 0.6);
	border: 1px solid rgba(36, 50, 82, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 16px;
}

/* Pill / eyebrow label */
.ncv-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
	background: rgba(34, 211, 238, 0.08);
	border: 1px solid rgba(34, 211, 238, 0.25);
	border-radius: 999px;
	padding: 0.4rem 1rem;
}

/* Outline button variant */
.ncv-btn-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
}
.ncv-btn-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--teal);
	background: rgba(34, 211, 238, 0.06);
}

/* Big stat number */
.ncv-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Sticky translucent header */
.ncv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 14, 26, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(36, 50, 82, 0.6);
}

/* Header CTA button — slightly smaller */
.ncv-header .wp-block-button__link {
	padding: 0.55rem 1.3rem;
	font-size: 0.9rem;
}

/* Hero glow backdrop */
.ncv-hero {
	position: relative;
	overflow: hidden;
}
.ncv-hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 120%;
	background:
		radial-gradient(ellipse 60% 45% at 25% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
		radial-gradient(ellipse 55% 40% at 75% 5%, rgba(34, 211, 238, 0.18) 0%, transparent 60%);
	pointer-events: none;
}
.ncv-hero > * { position: relative; }

/* Subtle grid overlay for hero/CTA sections */
.ncv-grid-bg {
	background-image:
		linear-gradient(rgba(231, 236, 246, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(231, 236, 246, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
}

/* Fade-up entrance for hero content */
@keyframes ncv-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
.ncv-fade-up { animation: ncv-fade-up 0.7s ease both; }
.ncv-fade-up-slow { animation: ncv-fade-up 1s 0.15s ease both; }

@media (prefers-reduced-motion: reduce) {
	.ncv-fade-up, .ncv-fade-up-slow { animation: none; }
	.ncv-card:hover { transform: none; }
}

/* Post cards in query loops */
.ncv-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
	height: 100%;
}
.ncv-post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(139, 92, 246, 0.55);
}

/* Footer */
.ncv-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	background: linear-gradient(180deg, var(--wp--preset--color--base) 0%, #070a13 100%);
}
.ncv-footer a { color: var(--wp--preset--color--muted); }
.ncv-footer a:hover { color: var(--wp--preset--color--teal); }

/* Keep navigation submenus dark */
.wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 12px;
}

/* Emoji icon tile used on service/game cards */
.ncv-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	font-size: 1.5rem;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.14));
	border: 1px solid rgba(34, 211, 238, 0.25);
}

/* Tables (used by future finance tools too) */
table {
	border-collapse: collapse;
	width: 100%;
}
table td, table th {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.6rem 0.9rem;
}
table th { background: var(--wp--preset--color--surface); }

::selection { background: rgba(34, 211, 238, 0.3); }
