/* ===== VARIABLES ===== */
:root {
  --primary: #6c3bff;
  --primary-dark: #4a1fcf;
  --secondary: #00d4ff;
  --dark: #0a0a1a;
  --dark2: #12122a;
  --dark3: #1a1a35;
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --card-bg: #16162e;
  --border: rgba(108, 59, 255, 0.3);
  --gradient: linear-gradient(135deg, #6c3bff, #00d4ff);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(10, 10, 26, 0.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;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(108, 59, 255, 0.15);
}
.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-banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  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;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin-bottom: 2rem; }

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
  font-size: 1rem;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 59, 255, 0.5);
  color: #fff;
}
.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
  font-size: 1rem;
}
.btn-outline-custom:hover {
  background: var(--secondary);
  color: var(--dark);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; }
.section-dark { background: var(--dark2); }
.section-darker { background: var(--dark3); }

/* ===== CARDS ===== */
.card-game {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.card-game:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108, 59, 255, 0.25);
}
.card-game img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-game .card-body { padding: 1.5rem; }
.card-game .card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-game .card-text { color: var(--text-muted); font-size: 0.9rem; }
.badge-genre {
  display: inline-block;
  background: rgba(108, 59, 255, 0.25);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rating {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--gradient);
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== TOURNAMENT TABLE ===== */
.tournament-table {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tournament-table table { width: 100%; border-collapse: collapse; }
.tournament-table th {
  background: rgba(108, 59, 255, 0.2);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 1.25rem;
  text-align: left;
}
.tournament-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
}
.tournament-table tr:last-child td { border-bottom: none; }
.tournament-table tr:hover td { background: rgba(108, 59, 255, 0.08); }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-open { background: rgba(0, 212, 255, 0.15); color: var(--secondary); }
.status-upcoming { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.status-closed { background: rgba(255, 80, 80, 0.15); color: #ff5050; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.15), rgba(0, 212, 255, 0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
}
.newsletter-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter-form .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}
.newsletter-form .form-control:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.2);
  color: var(--text);
  outline: none;
}
.newsletter-form .form-control::placeholder { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control-custom:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.2);
  outline: none;
  color: var(--text);
}
.form-control-custom::placeholder { color: var(--text-muted); }
textarea.form-control-custom { resize: vertical; min-height: 140px; }
select.form-control-custom option { background: var(--dark2); }

/* ===== ALERTS ===== */
.alert-success-custom {
  background: rgba(0, 212, 100, 0.15);
  border: 1px solid rgba(0, 212, 100, 0.4);
  color: #00d464;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: none;
}
.alert-success-custom.show { display: block; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-heading { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--secondary); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--secondary); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.2), rgba(0, 212, 255, 0.1));
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb-custom { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb-custom a { color: var(--secondary); }

/* ===== ABOUT PAGE ===== */
.about-img { border-radius: 20px; overflow: hidden; }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(108, 59, 255, 0.15);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--secondary); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: 0.4rem; }
.policy-box {
  background: rgba(108, 59, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; color: var(--text-muted); font-size: 0.9rem; flex: 1; }
#cookie-banner a { color: var(--secondary); }
.btn-cookie-accept {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .newsletter-section { padding: 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
  #cookie-banner { flex-direction: column; text-align: center; }
  .stat-number { font-size: 2rem; }
}
