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

:root {
  --bg-dark: #07071a;
  --bg-card: #0e0e2a;
  --bg-card2: #12122e;
  --accent: #5b8cff;
  --accent2: #a259ff;
  --accent-glow: rgba(91,140,255,0.35);
  --text: #e8eaf6;
  --text-muted: #8890b0;
  --border: rgba(91,140,255,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.accent { color: var(--accent); }
.accent2 { color: var(--accent2); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,7,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(91,140,255,0.12);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
}
.nav-cta:hover { opacity: 0.88; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.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(7,7,26,0.7) 0%, rgba(91,140,255,0.08) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,140,255,0.15);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(91,140,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(91,140,255,0.5); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(91,140,255,0.08); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 { font-size: 2rem; color: var(--accent); }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91,140,255,0.18);
  border-color: rgba(91,140,255,0.4);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tag-action { background: rgba(255,80,80,0.15); color: #ff7070; }
.tag-rpg { background: rgba(162,89,255,0.15); color: #b87aff; }
.tag-sci-fi { background: rgba(91,140,255,0.15); color: #7aadff; }
.tag-racing { background: rgba(255,180,50,0.15); color: #ffc84a; }
.tag-strategy { background: rgba(50,220,150,0.15); color: #3de0a0; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 16px; }
.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stars { color: #ffc84a; letter-spacing: 2px; font-size: 0.9rem; }
.rating-num { font-weight: 700; color: var(--text); }

/* ===== REVIEWS GRID ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== TOURNAMENTS ===== */
.tournaments-section { background: var(--bg-card2); }
.tournament-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 3rem;
}
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.tournament-card:hover {
  border-color: rgba(91,140,255,0.4);
  box-shadow: 0 8px 32px rgba(91,140,255,0.15);
}
.t-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.t-live { background: rgba(255,80,80,0.15); color: #ff6060; }
.t-upcoming { background: rgba(91,140,255,0.15); color: var(--accent); }
.t-open { background: rgba(50,220,150,0.15); color: #3de0a0; }
.tournament-card h3 { margin-bottom: 10px; }
.t-details { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.t-detail { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.t-detail strong { color: var(--text); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(91,140,255,0.08) 0%, rgba(162,89,255,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 { margin-bottom: 0.75rem; }
.newsletter-inner p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-size: 0.97rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.form-msg {
  margin-top: 14px;
  font-size: 0.92rem;
  min-height: 22px;
  color: #3de0a0;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img { border-radius: var(--radius); width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-features { display: flex; flex-direction: column; gap: 12px; margin: 1.5rem 0 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(91,140,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.feature-item p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-card2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(91,140,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-item h4 { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item p { font-size: 0.95rem; color: var(--text); margin: 0; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--bg-dark); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.contact-msg { margin-top: 14px; font-size: 0.92rem; min-height: 22px; color: #3de0a0; text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 12px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(91,140,255,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.social-btn:hover { background: rgba(91,140,255,0.2); color: var(--accent); border-color: var(--accent); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(91,140,255,0.1) 0%, rgba(162,89,255,0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 1.5rem; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.policy-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--accent); }
.policy-content h3 { font-size: 1.15rem; margin: 1.8rem 0 0.75rem; }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { margin: 0.75rem 0 1rem 1.5rem; list-style: disc; }
.policy-content ul li { color: var(--text-muted); margin-bottom: 0.5rem; }
.policy-meta { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 2rem; font-size: 0.88rem; color: var(--text-muted); }

/* ===== 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: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(7,7,26,0.98); padding: 20px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .contact-form { padding: 24px; }
  .tournaments-grid, .reviews-grid { grid-template-columns: 1fr; }
}
