/*
Theme Name: Spit Ball Cup Neon
Theme URI: https://spitballcup.com
Author: Spit Ball Cup
Description: Neon game-style theme for The Women's Spit Ball Cup: trailer, highlights, rules, a How It Works page and a participant Apply form that saves applications in the dashboard.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbc
*/

:root {
	--bg: #0D0520;
	--deep: #160830;
	--panel: #1A0B36;
	--line: #3B1F6E;
	--line-strong: #5A3C94;
	--pink: #E040FB;
	--pink-soft: #E57CFF;
	--cyan: #4FE0FF;
	--gold: #FFC93C;
	--text: #EDE6FF;
	--muted: #CDBDF0;
	--faint: #A895D6;
	--ink: #14052A;
	--display: 'Russo One', system-ui, sans-serif;
	--body: 'Rajdhani', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.5;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
a { color: var(--cyan); }
a:hover { color: #B8F3FF; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 2px;
	text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn-pink { background: var(--pink); color: var(--ink); box-shadow: 0 0 28px rgba(224, 64, 251, .55); }
.btn-pink:hover { background: #EA6CFF; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(79, 224, 255, .1); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(13, 5, 32, .94);
	border-bottom: 1px solid rgba(59, 31, 110, .7);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: 1px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--pink); }
.brand:hover { color: #fff; }
.menu-toggle {
	display: none; width: 48px; height: 48px; padding: 0; border: none; background: transparent;
	color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-list a {
	display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none;
	color: var(--muted); font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: #fff; background: #2A1550; }
.nav-list .nav-cta > a,
.nav-list a[href*="/apply"] { background: var(--pink); color: var(--ink); margin-left: 6px; }
@media (max-width: 859px) {
	.menu-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #120630; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav-list a { padding: 14px 16px; font-size: 18px; }
	.nav-list .nav-cta > a,
	.nav-list a[href*="/apply"] { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-mark { position: relative; width: min(400px, 72vw); aspect-ratio: 1; }
.hero-rings { position: absolute; left: 50%; top: 50%; width: 165%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(224, 64, 251, .35); box-shadow: 0 0 80px rgba(224, 64, 251, .2); }
.hero-rings i:nth-child(2) { inset: 13%; border-color: rgba(79, 224, 255, .4); box-shadow: none; }
.hero-rings i:nth-child(3) { inset: 26%; border-color: rgba(224, 64, 251, .5); box-shadow: none; }
.hero-logo {
	position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
	box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--pink), 0 0 90px rgba(224, 64, 251, .6);
}
.hero h1 { position: relative; margin-top: 36px; font-size: clamp(42px, 8vw, 96px); text-shadow: 0 0 24px rgba(79, 224, 255, .7); }
.lead { position: relative; margin: 14px auto 28px; max-width: 580px; font-size: clamp(19px, 2.4vw, 22px); color: var(--muted); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 52px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 7vw, 76px); text-shadow: 0 0 24px rgba(79, 224, 255, .6); }
.kicker { display: inline-block; margin-bottom: 14px; font-weight: 700; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); }
.kicker.live { color: var(--ink); background: var(--gold); padding: 6px 14px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(42, 21, 80, .7); font-weight: 700; font-size: 16px; color: #fff; }
.chip.hot { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(32px, 5vw, 44px); text-align: center; margin-bottom: 32px; }
.section-sub { text-align: center; color: var(--muted); margin: -18px auto 28px; max-width: 620px; }
@media (max-width: 600px) {
	.section { padding: 52px 0; }
	.section-title { margin-bottom: 24px; }
}

/* ---------- Video ---------- */
.video-frame {
	position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000;
	box-shadow: 0 0 0 2px var(--cyan), 0 0 60px rgba(79, 224, 255, .35);
}
.video-frame img, .video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video-soon {
	position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
	background: rgba(13, 5, 32, .88); color: #fff; padding: 8px 16px; border-radius: 999px;
	font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; white-space: nowrap;
}
@media (max-width: 600px) { .video-frame { border-radius: 16px; } }

/* ---------- Highlight cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
	display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
	background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--pink); color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-play {
	position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(224, 64, 251, .92); display: flex; align-items: center; justify-content: center;
}
.card-body { padding: 18px 22px 22px; }
.card-tag { font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.card-tag.is-photo, .card-tag.is-poster { color: var(--pink-soft); }
.card h3 { margin: 6px 0; font-family: var(--body); font-weight: 700; font-size: 24px; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }
.more-link { text-align: center; margin-top: 32px; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.nav-links .page-numbers.current { background: var(--pink); border-color: var(--pink); color: var(--ink); }

/* ---------- Rules: one compact row on every screen ---------- */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.5vw, 24px); text-align: center; margin: 0; padding: 0; list-style: none; }
.rule { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.5vw, 12px); }
.ring {
	width: clamp(60px, 17vw, 120px); aspect-ratio: 1; border-radius: 50%;
	border: clamp(3px, .8vw, 4px) solid var(--pink); box-shadow: 0 0 24px rgba(224, 64, 251, .5);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--display); font-size: clamp(24px, 6.5vw, 48px); color: #fff;
}
.ring.c { border-color: var(--cyan); box-shadow: 0 0 24px rgba(79, 224, 255, .5); }
.ring.g { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 201, 60, .5); }
.rule-label { font-weight: 700; font-size: clamp(13px, 3.4vw, 20px); letter-spacing: .5px; text-transform: uppercase; line-height: 1.15; }
.rules-note { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--muted); }
.rules-note strong { color: var(--gold); }
@media (max-width: 600px) {
	.section-rules { padding: 40px 0; }
	.rules-note { margin-top: 18px; font-size: 16px; }
}

/* ---------- CTA band ---------- */
.cta-box {
	text-align: center; border-radius: 28px; padding: clamp(32px, 6vw, 56px) 22px;
	background: var(--panel); border: 1px solid var(--pink); box-shadow: 0 0 50px rgba(224, 64, 251, .25);
}
.cta-box h2 { font-size: clamp(30px, 5.5vw, 52px); margin: 0 0 10px; }
.cta-box p { margin: 0 auto 24px; max-width: 560px; color: var(--muted); font-size: 19px; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.step-num {
	flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--pink);
	display: flex; align-items: center; justify-content: center; box-shadow: 0 0 18px rgba(224, 64, 251, .5);
	font-family: var(--display); font-size: 22px; color: #fff;
}
.step:nth-child(2) .step-num { border-color: var(--cyan); box-shadow: 0 0 18px rgba(79, 224, 255, .5); }
.step:nth-child(4) .step-num { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 201, 60, .5); }
.step h3 { margin: 2px 0 4px; font-family: var(--body); font-weight: 700; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.panel h2 { font-size: clamp(26px, 4vw, 32px); }
.panel p { margin: 12px 0 0; color: var(--muted); }
.panel.shy { border-color: var(--cyan); box-shadow: 0 0 40px rgba(79, 224, 255, .15); }
.shy-icons { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.shy-icons span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 16px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; }
.ticks svg { flex: 0 0 auto; margin-top: 4px; }

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.perk { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px 18px; text-align: center; }
.perk b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 48px); line-height: 1; color: var(--gold); }
.perk span { display: block; margin-top: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.perk small { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }
@media (max-width: 600px) {
	.perks { grid-template-columns: 1fr; }
	.perk { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; }
	.perk b { flex: 0 0 76px; font-size: 32px; text-align: center; }
	.perk span { margin-top: 0; }
}

.when { display: flex; gap: 16px; align-items: flex-start; }
.when svg { flex: 0 0 auto; margin-top: 4px; }

.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 19px; color: #fff; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Apply form ---------- */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 859px) { .apply-grid { grid-template-columns: 1fr; } }
.form-card {
	position: relative; background: var(--panel); border: 1px solid var(--pink); border-radius: 24px;
	padding: clamp(20px, 4vw, 36px); box-shadow: 0 0 50px rgba(224, 64, 251, .2);
}
.form-card h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.form-card > p { margin: 0 0 22px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 17px; color: #fff; padding: 0; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--faint); }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px;
	border: 1px solid var(--line-strong); background: var(--bg); color: #fff; font: inherit; font-size: 17px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.pill input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: 16px; color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; font-weight: 600; color: #fff; }
.notice.ok { background: rgba(79, 224, 255, .12); border: 1px solid var(--cyan); }
.notice.err { background: rgba(255, 92, 138, .12); border: 1px solid #FF5C8A; }
.form-small { margin: 14px 0 0; font-size: 15px; color: var(--faint); text-align: center; }
.apply-aside .panel + .panel { margin-top: 16px; }

/* ---------- Generic content ---------- */
.entry { color: var(--text); }
.entry h2 { font-size: 32px; margin: 1.4em 0 .5em; }
.entry h3 { font-size: 24px; margin: 1.2em 0 .4em; }
.entry img { height: auto; border-radius: 14px; }
.single-media { margin-bottom: 28px; }
.back-link { display: inline-block; margin-top: 28px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; text-align: center; }
.footer-brand { font-family: var(--display); font-size: 26px; color: #fff; text-shadow: 0 0 18px rgba(224, 64, 251, .7); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 14px 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.small { font-size: 15px; color: var(--faint); margin: 0; }
