/* ===== PHANTOM STRIKES — MAIN STYLESHEET ===== */
:root {
  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-nav: #08081a;
  --accent: #a855f7;
  --accent2: #7c3aed;
  --gold: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e1e3f;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(168,85,247,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent2);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(168,85,247,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
}

.hero h1 em { color: var(--accent); font-style: normal; }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  margin-left: 1rem;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 1.4rem; }

.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating { display: flex; align-items: center; gap: 4px; }
.rating-stars { color: var(--gold); letter-spacing: 1px; }
.rating-num { font-weight: 700; color: var(--text); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.8rem;
}

.read-more:hover { color: var(--gold); }
.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover::after { transform: translateX(3px); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===== TOURNAMENT CARDS ===== */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tournament-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.t-badge {
  background: var(--accent2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.t-badge.live { background: #dc2626; }
.t-badge.upcoming { background: #059669; }
.t-badge.past { background: #475569; }

.t-info { flex: 1; }
.t-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.t-meta { font-size: 0.82rem; color: var(--text-muted); }
.t-meta span { margin-right: 1rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a0a1a 50%, #0f0a1a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.cta-inner p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== NEWSLETTER FORM ===== */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--accent); }

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4rem;
}

.form-msg.success { color: #34d399; }
.form-msg.error { color: #f87171; }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 640px;
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a0a1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== PROSE ===== */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 0.8rem; color: var(--accent); }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--gold); }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 360px; object-fit: cover; }

.about-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== TEAM CARDS ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 1rem;
}

.team-name { font-weight: 700; margin-bottom: 0.2rem; }
.team-role { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.6rem; }
.team-bio { font-size: 0.85rem; color: var(--text-muted); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  z-index: 9999;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 0.88rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--accent); }

.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.btn-cookie-accept:hover { background: var(--accent); }

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.btn-cookie-decline:hover { border-color: var(--accent); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tournament-card { flex-direction: column; }
}
