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

:root {
  --bg-dark: #0d0d1a;
  --bg-card: #13132a;
  --bg-nav: #0a0a16;
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-glow: rgba(124,58,237,0.35);
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --border: rgba(124,58,237,0.3);
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  backdrop-filter: blur(10px);
}

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

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

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-light);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: .5rem 1.2rem !important;
  border-radius: 8px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: background .2s, transform .1s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }

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

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

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

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

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

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

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }

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

.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  color: var(--accent-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: .8rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

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

.card-body { padding: 1.4rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
}

.badge {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
}

.card-date { font-size: .8rem; color: var(--text-secondary); }

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

.card p { font-size: .9rem; color: var(--text-secondary); margin-bottom: 1rem; }

.card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.card-link:hover { color: #fff; }

/* ===== RATING STARS ===== */
.stars { color: #f59e0b; font-size: .9rem; margin-bottom: .5rem; }

/* ===== TOURNAMENT TABLE ===== */
.tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.tournament-table th {
  background: var(--bg-nav);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tournament-table td {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid rgba(124,58,237,0.1);
  color: var(--text-secondary);
}

.tournament-table tr:hover td { background: rgba(124,58,237,0.05); }

.status-live { color: #22c55e; font-weight: 700; }
.status-upcoming { color: #f59e0b; font-weight: 700; }
.status-ended { color: var(--text-secondary); }

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

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

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: .3rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.newsletter p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: .8rem 1.2rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

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

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}

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

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

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select option { background: var(--bg-card); }

.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.4);
  color: #22c55e;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== INFO CARDS ===== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--accent-light);
}

.info-card p { font-size: .9rem; color: var(--text-secondary); }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
}

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

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: .8rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.policy-content h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .5rem;
}

.policy-content .last-updated {
  color: var(--text-secondary);
  font-size: .85rem;
  margin-bottom: 2.5rem;
}

.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 .8rem;
  color: var(--accent-light);
}

.policy-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy-content ul {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content ul li { margin-bottom: .4rem; line-height: 1.7; }

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: .8rem;
  max-width: 280px;
  line-height: 1.6;
}

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

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: .5rem; }

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: .9rem;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--text-primary); }

.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;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .85rem;
  color: var(--text-secondary);
}

.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--text-primary); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0,0,0,.5);
}

.cookie-banner p { font-size: .9rem; color: var(--text-secondary); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--accent-light); }

.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.btn-sm {
  padding: .5rem 1.1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn-accept { background: var(--accent); color: #fff; }
.btn-accept:hover { background: var(--accent-light); }
.btn-decline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-decline:hover { color: var(--text-primary); border-color: var(--text-secondary); }

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

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img img { width: 100%; height: 380px; object-fit: cover; }

.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: .8rem;
  color: var(--text-secondary);
  font-size: .95rem;
}

.feature-list li::before {
  content: '▶';
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .7rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .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 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .newsletter { padding: 2rem 1.2rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
