/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0b0f;
  --bg-card: #12141c;
  --bg-nav: #0d0e16;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e2235;
  --radius: 10px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

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

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1b2e; border-top: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  z-index: 9999; font-size: 14px;
}
#cookie-banner p { color: var(--text-muted); max-width: 700px; }
#cookie-banner a { color: var(--accent2); }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie-accept {
  background: var(--accent); color: #fff; border: none;
  padding: 8px 20px; border-radius: 6px; cursor: pointer;
  font-size: 14px; transition: background var(--transition);
}
.btn-cookie-accept:hover { background: #6d28d9; }
.btn-cookie-decline {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 6px; cursor: pointer;
  font-size: 14px; transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--accent2); color: var(--text); }

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-nav); border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.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: 20px; font-weight: 700; color: #fff;
  text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 4px; }
.nav-logo span { color: var(--accent2); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  transition: color var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 6px;
}
.nav-cta:hover { background: #6d28d9; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 80px 40px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.2); border: 1px solid var(--accent);
  color: var(--accent2); font-size: 13px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  color: #fff;
}
.hero h1 span { color: var(--accent2); }
.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: #6d28d9; transform: translateY(-1px); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition); display: inline-block;
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

/* ===== SECTIONS ===== */
.section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; margin-bottom: 12px; color: #fff;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-label {
  display: inline-block; color: var(--accent2);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 22px; }
.card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; font-size: 13px; color: var(--text-muted);
}
.card-tag {
  background: rgba(124,58,237,0.15); color: var(--accent2);
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.card-link {
  color: var(--accent2); font-size: 14px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover { color: #fff; }
.rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #fbbf24;
}
.rating-stars { letter-spacing: 2px; }

/* ===== TOURNAMENT TABLE ===== */
.tournament-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.tournament-table th {
  background: rgba(124,58,237,0.15); color: var(--accent2);
  padding: 14px 18px; text-align: left; font-size: 13px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.tournament-table td {
  padding: 14px 18px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.tournament-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-upcoming { background: rgba(6,182,212,0.15); color: var(--accent2); }
.status-live { background: rgba(239,68,68,0.15); color: #f87171; }
.status-completed { background: rgba(34,197,94,0.15); color: #4ade80; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; text-align: center; margin: 60px 0;
}
.stat-item h3 { font-size: 2rem; font-weight: 800; color: var(--accent2); }
.stat-item p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 60px 40px; text-align: center;
}
.newsletter-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 220px;
  background: var(--bg-dark); border: 1px solid var(--border);
  color: var(--text); padding: 12px 18px; border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.form-msg {
  margin-top: 14px; font-size: 14px; font-weight: 600;
  min-height: 20px; color: #4ade80;
}
.form-msg.error { color: #f87171; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(124,58,237,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-detail h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-detail p { font-size: 14px; color: var(--text-muted); margin: 0; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg-dark); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-card); }
.contact-form .form-msg { margin-top: 12px; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  position: relative; padding: 100px 40px 60px;
  text-align: center; overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, transparent 70%);
}
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; position: relative; }
.about-hero p { color: var(--text-muted); max-width: 600px; margin: 16px auto 0; position: relative; }
.about-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
}
.team-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--text-muted); }

/* ===== POLICY PAGES ===== */
.policy-hero {
  padding: 80px 40px 40px; text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);
}
.policy-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; }
.policy-hero p { color: var(--text-muted); margin-top: 10px; }
.policy-content {
  max-width: 820px; margin: 0 auto; padding: 0 40px 80px;
}
.policy-content h2 {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin: 36px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.policy-content h3 { font-size: 1rem; font-weight: 600; color: var(--accent2); margin: 20px 0 8px; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }
.policy-content ul { color: var(--text-muted); padding-left: 24px; margin-bottom: 14px; font-size: 15px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--accent2); }
.policy-updated {
  display: inline-block; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent2); font-size: 13px; padding: 4px 14px; border-radius: 20px; margin-top: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-nav); border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--accent2); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 80px 40px 50px; text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: #fff; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 12px auto 0; }

/* ===== REVIEW DETAIL ===== */
.review-score {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
}
.score-badge {
  width: 80px; height: 80px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff;
}
.score-details h3 { font-size: 1.1rem; font-weight: 700; }
.score-details p { color: var(--text-muted); font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .navbar { padding: 0 20px; }
  .section { padding: 60px 20px; }
  .hero-content { padding: 60px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .policy-content { padding: 0 20px 60px; }
  .about-hero { padding: 60px 20px 40px; }
  .page-hero { padding: 60px 20px 40px; }
  .policy-hero { padding: 60px 20px 30px; }
}
