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

:root {
  --bg-dark:    #0a0e1a;
  --bg-card:    #0d1b2a;
  --bg-card2:   #111827;
  --accent:     #00d4ff;
  --accent2:    #7c3aed;
  --accent3:    #f59e0b;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #1e293b;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
}

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(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title span {
  color: var(--accent);
}
.section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,14,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: .9rem !important;
}
.nav-cta:hover { background: #fff; color: #000 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  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: 92vh;
  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(.35);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,212,255,.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 560px;
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: #fff; color: #000; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-item span { color: var(--text-muted); font-size: .9rem; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }

/* ===== REVIEWS GRID ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,212,255,.12); }

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

.review-body { padding: 20px; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tag {
  background: rgba(124,58,237,.2);
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
}
.score {
  margin-left: auto;
  background: var(--accent3);
  color: #000;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 800;
}
.review-body h3 { margin-bottom: 8px; }
.review-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more::after { content: '→'; transition: transform .2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ===== TOURNAMENTS ===== */
.tournaments-section { background: var(--bg-card2); }

.tournament-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 48px;
}

.tournament-list { display: grid; gap: 20px; }

.tournament-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color .2s;
}
.tournament-item:hover { border-color: var(--accent); }

.t-date {
  min-width: 72px;
  text-align: center;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px;
  padding: 10px 8px;
}
.t-date strong { display: block; font-size: 1.5rem; color: var(--accent); }
.t-date span { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; }

.t-info { flex: 1; }
.t-info h3 { margin-bottom: 4px; }
.t-info p { color: var(--text-muted); font-size: .9rem; }

.t-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.t-badge.live { background: rgba(239,68,68,.2); color: #f87171; border: 1px solid rgba(239,68,68,.4); }
.t-badge.upcoming { background: rgba(245,158,11,.15); color: var(--accent3); border: 1px solid rgba(245,158,11,.3); }
.t-badge.open { background: rgba(0,212,255,.1); color: var(--accent); border: 1px solid rgba(0,212,255,.3); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a0a2e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter-text h2 { margin-bottom: 12px; }
.newsletter-text p { color: var(--text-muted); }

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }

input[type="text"], input[type="email"], textarea, select {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .95rem;
  width: 100%;
  transition: border-color .2s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: rgba(0,212,255,.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  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: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.feature-item strong { display: block; color: var(--accent); margin-bottom: 4px; }
.feature-item span { color: var(--text-muted); font-size: .88rem; }

/* ===== CONTACT ===== */
.contact-section {
  background-image: url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,.88);
}
.contact-section .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-details { display: grid; gap: 16px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item span { color: var(--text-muted); font-size: .9rem; }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.contact-form h3 { margin-bottom: 24px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer {
  background: #060a12;
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.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: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.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;
}
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner p { color: var(--text-muted); font-size: .9rem; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
}
.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
}
.policy-hero h1 { margin-bottom: 10px; }
.policy-hero p { color: var(--text-muted); }

.policy-content { padding: 60px 0; max-width: 820px; }
.policy-content h2 { margin: 36px 0 14px; color: var(--accent); font-size: 1.3rem; }
.policy-content h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; }
.policy-content ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--accent); }

/* ===== TOURNAMENTS PAGE ===== */
.page-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}
.page-hero p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,212,255,.1); }
.t-card img { width: 100%; height: 180px; object-fit: cover; }
.t-card-body { padding: 20px; }
.t-card-body h3 { margin-bottom: 8px; }
.t-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.t-card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.t-meta-item { color: var(--text-muted); font-size: .82rem; }
.t-meta-item strong { color: var(--text); }

/* ===== REVIEWS PAGE ===== */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  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: 1.8rem;
  margin: 0 auto 16px;
}
.team-card h3 { margin-bottom: 4px; }
.team-card span { color: var(--accent); font-size: .85rem; }
.team-card p { color: var(--text-muted); font-size: .88rem; margin-top: 10px; }

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

@media (max-width: 640px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10,14,26,.98);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tournament-item { flex-wrap: wrap; }
}
