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

:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1a1e2a;
  --accent: #00e5ff;
  --accent2: #ff6b35;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: #2a2f3d;
  --card: #161b27;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title span {
  color: var(--accent);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
main { flex: 1; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
#cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099bb);
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,229,255,0.35); color: #000; }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #000; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-outline-muted {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}
.btn-outline-muted:hover { border-color: var(--accent); color: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,15,20,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, transparent 60%),
              linear-gradient(to top, var(--bg) 0%, transparent 50%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 6rem 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.25rem; }

/* ===== FEATURED REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review-card img { width: 100%; height: 200px; object-fit: cover; }
.review-body { padding: 1.5rem; }
.review-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(0,229,255,0.12);
  color: var(--accent);
}
.tag.orange { background: rgba(255,107,53,0.12); color: var(--accent2); }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-card h3 { margin-bottom: 0.6rem; }
.review-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.review-footer { display: flex; align-items: center; justify-content: space-between; }
.score { display: flex; align-items: center; gap: 0.4rem; }
.score-num { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.score-label { font-size: 0.75rem; color: var(--text-muted); }

/* ===== TOURNAMENTS ===== */
.tournaments-section { background: var(--bg2); }
.tournament-list { display: flex; flex-direction: column; gap: 1rem; }
.tournament-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color .2s;
}
.tournament-item:hover { border-color: var(--accent); }
.t-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-status.live { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.t-status.upcoming { background: var(--accent); }
.t-status.ended { background: var(--text-muted); }
.t-info { flex: 1; }
.t-info h4 { margin-bottom: 0.2rem; }
.t-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.t-date { font-size: 0.85rem; color: var(--text-muted); text-align: right; flex-shrink: 0; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(255,107,53,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 { margin-bottom: 0.75rem; }
.newsletter-inner p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1.25rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.form-success {
  display: none;
  color: #22c55e;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img { border-radius: 12px; overflow: hidden; }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); }
.about-features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon { width: 36px; height: 36px; background: rgba(0,229,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.feature-item span { font-size: 0.9rem; color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-section { background: var(--bg2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-icon { width: 40px; height: 40px; background: rgba(0,229,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.9rem; margin: 0; }
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.form-alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.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: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-muted); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* ===== REVIEWS PAGE ===== */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,0.08); }

/* ===== TOURNAMENTS PAGE ===== */
.tournament-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tournament-card img { width: 100%; height: 200px; object-fit: cover; }
.tournament-card-body { padding: 1.5rem; }
.tournament-card-body h3 { margin-bottom: 0.5rem; }
.tournament-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.t-details { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.t-detail { display: flex; justify-content: space-between; font-size: 0.85rem; }
.t-detail span:first-child { color: var(--text-muted); }
.t-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.t-badge.live { background: rgba(34,197,94,0.15); color: #22c55e; }
.t-badge.upcoming { background: rgba(0,229,255,0.12); color: var(--accent); }
.t-badge.ended { background: rgba(136,146,164,0.15); color: var(--text-muted); }
.tournaments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

/* ===== ABOUT PAGE ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color .2s;
}
.team-card:hover { border-color: var(--accent); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.policy-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; color: var(--accent); }
.policy-content h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.1rem; }
.policy-content p, .policy-content li { color: var(--text-muted); font-size: 0.95rem; }
.policy-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: 0.4rem; }
.policy-content .last-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.policy-content a { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-img { order: -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }
  .nav-links.open + .nav-cta { display: block; padding: 0 1.5rem 1rem; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  section { padding: 3rem 0; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }
}
