/* ===== GLOBAL ===== */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: #1e1e3a;
  --border: #2d2d5e;
  --success: #10b981;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(15,15,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.5px;
}

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

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }

.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  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);
  z-index: 0;
}

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

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight { color: var(--accent); }

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

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: .5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
}

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

.btn-outline-custom {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: .7rem 1.8rem;
  border-radius: .5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.section-title span { color: var(--primary); }

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ===== CARDS ===== */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124,58,237,.25);
}

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

.game-card-body { padding: 1.25rem; }

.game-card-genre {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}

.game-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

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

.rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.rating-score {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: .2rem .6rem;
  border-radius: .35rem;
}

.rating-stars { color: #f59e0b; font-size: .9rem; }

/* ===== TOURNAMENT CARD ===== */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform .25s;
}

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

.tournament-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.status-live { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid var(--danger); }
.status-upcoming { background: rgba(6,182,212,.15); color: var(--accent); border: 1px solid var(--accent); }
.status-completed { background: rgba(16,185,129,.15); color: var(--success); border: 1px solid var(--success); }

.tournament-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.tournament-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: .25rem; }

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* ===== NEWSLETTER / CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark3));
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid var(--primary);
}

.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

.newsletter-form { display: flex; gap: .75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 1rem;
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
}

.form-label { color: var(--text-muted); font-size: .9rem; margin-bottom: .4rem; }

.form-control-custom {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s;
  margin-bottom: 1.25rem;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(124,58,237,.08);
}

.form-control-custom::placeholder { color: var(--text-muted); }

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

/* ===== ALERT ===== */
.alert-success-custom {
  background: rgba(16,185,129,.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  margin-top: 1rem;
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-brand { font-size: 1.4rem; font-weight: 800; margin-bottom: .75rem; }
.footer-brand span { color: var(--primary); }
footer p.footer-desc { color: var(--text-muted); font-size: .9rem; max-width: 280px; }

.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.policy-content { padding: 4rem 0; }
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--accent); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.policy-content p, .policy-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: .75rem; }
.policy-content ul { padding-left: 1.5rem; }
.policy-content a { color: var(--accent); }

/* ===== ABOUT PAGE ===== */
.about-hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/about.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.25);
  z-index: 0;
}
.about-hero-content { position: relative; z-index: 1; }

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  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: .25rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); }

/* ===== REVIEWS PAGE ===== */
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1.2rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== TOURNAMENTS PAGE ===== */
.tournament-hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.tournament-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/tournament.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.25);
  z-index: 0;
}
.tournament-hero-content { position: relative; z-index: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .section { padding: 3.5rem 0; }
  .cta-section { padding: 2.5rem 1.25rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
