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

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-nav: rgba(10,10,15,0.97);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e1e2e;
  --gold: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(124,58,237,0.18);
}

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.6;
  min-height: 100vh;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 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: 68px;
  backdrop-filter: blur(12px);
}

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

.navbar-brand img { width: 36px; height: 36px; border-radius: 6px; }

.navbar-brand span { color: var(--primary); }

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

.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(124,58,237,0.15);
  color: var(--text);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
}

.nav-cta:hover { background: var(--primary-dark) !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 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: 68px;
  min-height: 90vh;
  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-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.35) 0%, rgba(6,182,212,0.15) 100%);
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.25);
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  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 span { color: var(--primary); }

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

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

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

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

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}

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

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

.section-full { padding: 5rem 2rem; background: var(--bg-card); }
.section-full .section-inner { max-width: 1200px; margin: 0 auto; }

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

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

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

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

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

.stat-item h3 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; }

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

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(124,58,237,0.4);
}

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

.card-body { padding: 1.4rem; }

.card-tag {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-tag.fps { background: rgba(239,68,68,0.2); color: var(--red); }
.card-tag.rts { background: rgba(245,158,11,0.2); color: var(--gold); }
.card-tag.rpg { background: rgba(34,197,94,0.2); color: var(--green); }
.card-tag.moba { background: rgba(6,182,212,0.2); color: var(--accent); }
.card-tag.tournament { background: rgba(124,58,237,0.2); color: var(--primary); }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-muted);
}

.rating { display: flex; align-items: center; gap: 4px; }
.stars { color: var(--gold); font-size: 0.9rem; }

.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.read-more:hover { color: var(--primary); }

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

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

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

.tournament-card-body { padding: 1.5rem; }

.tournament-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 0.75rem;
}

.status-live { color: var(--red); }
.status-live::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
.status-upcoming { color: var(--gold); }
.status-upcoming::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.status-completed { color: var(--text-muted); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.tournament-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

.tournament-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; margin: 1rem 0;
}

.detail-item { font-size: 0.85rem; }
.detail-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { color: var(--text); font-weight: 600; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.newsletter-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 2rem; }

.newsletter-form {
  display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}

.newsletter-form input {
  flex: 1; min-width: 240px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

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

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

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

.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.contact-detail h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.contact-detail p { color: var(--text); margin: 0; font-size: 0.95rem; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.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.85rem 1rem;
  border-radius: var(--radius);
  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(--primary); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  margin-top: 68px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(6,182,212,0.1) 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.about-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; margin-bottom: 1rem; }
.about-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.team-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.4); }

.team-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff;
  margin: 0 auto 1rem;
}

.team-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.value-card:hover { border-color: rgba(124,58,237,0.4); }
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== POLICY PAGES ===== */
.policy-hero {
  margin-top: 68px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.policy-hero h1 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 900; margin-bottom: 0.75rem; }
.policy-hero p { color: var(--text-muted); }

.policy-content {
  max-width: 800px; margin: 0 auto; padding: 4rem 2rem;
}

.policy-content h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--accent); }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.policy-content ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: 0.4rem; line-height: 1.7; }
.policy-content a { color: var(--accent); }

.policy-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.policy-toc h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: var(--text-muted); }
.policy-toc ol { padding-left: 1.2rem; }
.policy-toc ol li { margin-bottom: 0.4rem; }
.policy-toc ol li a { color: var(--accent); font-size: 0.9rem; }

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

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

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

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

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

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

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

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

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

.footer-brand h3 {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem;
}

.footer-brand h3 span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }

.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: rgba(124,58,237,0.25);
  color: var(--text);
  border-color: var(--primary);
}

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

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

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  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 { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  margin-top: 68px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(6,182,212,0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover, .filter-tab.active {
  background: rgba(124,58,237,0.2);
  border-color: var(--primary);
  color: var(--text);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

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

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .tournament-details { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
