/* ===== GLOBAL ===== */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --light: #e2e8f0;
  --muted: #94a3b8;
  --card-bg: #1e1e3a;
  --border: rgba(124,58,237,0.25);
}

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

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

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

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

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(15,15,26,0.97) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all .2s;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background: rgba(124,58,237,0.15);
}

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

/* ===== 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(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;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.3);
  border: 1px solid var(--primary);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all .25s;
  display: inline-block;
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.45);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all .25s;
  display: inline-block;
  cursor: pointer;
}

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

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

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

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

/* ===== CARDS ===== */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(124,58,237,0.2);
}

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

.game-card:hover img { transform: scale(1.05); }

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

.card-genre {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title-custom {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-text-custom {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

.score-excellent { background: linear-gradient(135deg, #059669, #10b981); }
.score-great { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.score-good { background: linear-gradient(135deg, #d97706, #fbbf24); }

.stars { color: #fbbf24; font-size: 0.85rem; }

/* ===== TOURNAMENT CARDS ===== */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
}

.tournament-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 35px rgba(6,182,212,0.15);
}

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

.tournament-info { padding: 1.25rem; }

.tournament-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.status-live { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.status-upcoming { background: rgba(6,182,212,0.15); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
.status-completed { background: rgba(100,116,139,0.2); color: var(--muted); border: 1px solid rgba(100,116,139,0.3); }

.tournament-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tournament-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tournament-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.newsletter-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.newsletter-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.newsletter-form { max-width: 480px; margin: 0 auto; }

.form-control-custom {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}

.form-control-custom:focus { border-color: var(--primary); }
.form-control-custom::placeholder { color: var(--muted); }

/* ===== CONTACT FORM ===== */
.contact-section { padding: 5rem 0; }

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

.contact-card label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

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

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

.form-success {
  display: none;
  background: rgba(5,150,105,0.15);
  border: 1px solid rgba(5,150,105,0.4);
  color: #34d399;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* ===== ABOUT ===== */
.about-section { padding: 5rem 0; }

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

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

.feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.feature-text h5 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.feature-text p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff; }
.page-hero p { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; }

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

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
}

.policy-content p, .policy-content li {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.policy-content ul { padding-left: 1.5rem; }
.policy-content li { margin-bottom: 0.4rem; }

.policy-content a { color: var(--accent); }

.policy-date {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ===== 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;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

.footer-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; }

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

#cookie-banner p { margin: 0; font-size: 0.875rem; color: var(--muted); }
#cookie-banner a { color: var(--accent); }

.btn-cookie {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

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

/* ===== UTILITY ===== */
.section-pad { padding: 5rem 0; }
.bg-dark-alt { background: var(--dark2); }
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--muted); }
.divider { border-color: var(--border); margin: 0; }

.breadcrumb-custom {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb-custom a { color: var(--muted); }
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom span { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 75vh; }
  .stats-bar .row > div { margin-bottom: 1rem; }
  .newsletter-box { padding: 1.75rem 1.25rem; }
  .contact-card { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
