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

:root {
  --primary: #00d4ff;
  --primary-dark: #0099bb;
  --accent: #ff6b35;
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card2: #1a2235;
  --text-main: #e8eaf6;
  --text-muted: #8892a4;
  --border: #1e2d45;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #0055ff 100%);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,14,26,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

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

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

.logo img { width: 38px; height: 38px; border-radius: 8px; }

nav ul {
  display: flex; list-style: none; gap: 6px;
}

nav ul li a {
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: background .2s, color .2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--bg-card2);
  color: var(--primary);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: .85; }

.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-main); border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 580px;
  display: flex; align-items: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero-banner.jpg') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,14,26,.92) 40%, rgba(10,14,26,.4) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,212,255,.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: var(--primary); }

.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 32px; max-width: 520px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: .2s; border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient); color: #fff;
}

.btn-primary:hover { opacity: .85; color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 50px; }

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

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 12px;
}

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

/* ===== SECTIONS ===== */
section { padding: 80px 0; }

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

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

.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,212,255,.12); }

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

.card-body { padding: 22px; }

.card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background: rgba(0,212,255,.12);
  color: var(--primary);
  padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}

.tag-orange {
  background: rgba(255,107,53,.12);
  color: var(--accent);
}

.card-meta time { color: var(--text-muted); font-size: .82rem; }

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }

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

.card-link {
  color: var(--primary); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 5px;
}

.card-link:hover { gap: 8px; }

/* ===== RATING STARS ===== */
.stars { color: #ffd700; font-size: .9rem; }

/* ===== FEATURED REVIEW ===== */
.featured-review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.featured-review img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

.featured-review-body {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
}

.featured-review-body .tag { margin-bottom: 14px; }

.featured-review-body h2 {
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 14px; line-height: 1.3;
}

.featured-review-body p { color: var(--text-muted); margin-bottom: 20px; }

.review-score {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
}

.score-num {
  font-size: 2rem; font-weight: 900; color: var(--primary);
}

.score-label { font-size: .85rem; color: var(--text-muted); }

/* ===== TOURNAMENTS TABLE ===== */
.tournaments-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}

.tournaments-table th {
  background: var(--bg-card2);
  padding: 16px 20px;
  text-align: left;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tournaments-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.tournaments-table tr:last-child td { border-bottom: none; }

.tournaments-table tr:hover td { background: rgba(255,255,255,.02); }

.status-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}

.status-open { background: rgba(0,212,255,.12); color: var(--primary); }
.status-upcoming { background: rgba(255,107,53,.12); color: var(--accent); }
.status-closed { background: rgba(136,146,164,.12); color: var(--text-muted); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #0d1829 0%, #0a1525 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

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

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: flex; gap: 12px; }

.form-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-main);
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color .2s;
}

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

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.form-checkbox input { margin-top: 3px; accent-color: var(--primary); cursor: pointer; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 50px; align-items: start;
}

.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,212,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.contact-detail h4 { font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail p { color: var(--text-muted); font-size: .88rem; margin: 0; }

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.contact-form-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-muted);
}

.form-group .form-input { width: 100%; }

textarea.form-input { resize: vertical; min-height: 120px; }

select.form-input { cursor: pointer; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.about-img { border-radius: 20px; overflow: hidden; }
.about-img img { width: 100%; height: 400px; object-fit: cover; }

.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 30px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.stat-box .num {
  font-size: 1.8rem; font-weight: 900;
  color: var(--primary); display: block;
}

.stat-box .lbl { font-size: .82rem; color: var(--text-muted); }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s;
}

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

.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  margin: 0 auto 14px;
  color: #fff;
}

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

/* ===== REVIEW PAGE ===== */
.review-hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
}

.review-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

.review-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,26,.85) 0%, rgba(10,14,26,.98) 100%);
}

.review-hero-content { position: relative; z-index: 1; max-width: 800px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 20px;
}

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

.review-meta-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin: 16px 0;
}

.review-body {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 40px; align-items: start;
}

.review-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.review-content p { color: var(--text-muted); margin-bottom: 14px; }
.review-content img { border-radius: 14px; margin: 20px 0; width: 100%; }

.review-sidebar { position: sticky; top: 90px; }

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.score-card .big-score {
  font-size: 4rem; font-weight: 900;
  color: var(--primary); line-height: 1;
  margin-bottom: 6px;
}

.score-card .verdict {
  font-size: 1.1rem; font-weight: 700;
  color: #4ade80; margin-bottom: 16px;
}

.score-bars { text-align: left; }

.score-bar-item { margin-bottom: 12px; }

.score-bar-label {
  display: flex; justify-content: space-between;
  font-size: .82rem; margin-bottom: 4px;
}

.score-bar-track {
  height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}

.score-bar-fill {
  height: 100%; background: var(--gradient);
  border-radius: 3px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.info-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}

.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-muted); }

/* ===== TOURNAMENTS PAGE ===== */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; gap: 24px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
  margin-bottom: 20px;
}

.tournament-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,212,255,.1); }

.tournament-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}

.tournament-info { flex: 1; }
.tournament-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.tournament-info p { color: var(--text-muted); font-size: .9rem; margin-bottom: 12px; }

.tournament-details {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-muted);
}

.tournament-details span { display: flex; align-items: center; gap: 5px; }

.register-btn {
  flex-shrink: 0;
  align-self: center;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0d1829 0%, #0a1525 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 50px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 860px; margin: 0 auto;
  padding: 60px 20px;
}

.policy-content h2 {
  font-size: 1.4rem; font-weight: 800;
  margin: 36px 0 12px;
  color: var(--primary);
}

.policy-content h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 24px 0 8px;
}

.policy-content p { color: var(--text-muted); margin-bottom: 14px; }
.policy-content ul { color: var(--text-muted); padding-left: 22px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--primary); }

.policy-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: .88rem; color: var(--text-muted);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: none;
}

.cookie-inner {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p { flex: 1; font-size: .88rem; color: var(--text-muted); }
.cookie-inner p a { color: var(--primary); }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-sm {
  padding: 9px 18px; font-size: .85rem;
  border-radius: 8px; font-weight: 600;
  cursor: pointer; border: none; transition: .2s;
}

.btn-accept { background: var(--gradient); color: #fff; }
.btn-accept:hover { opacity: .85; }
.btn-decline { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }
.btn-decline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== FOOTER ===== */
footer {
  background: #070b14;
  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: 50px;
}

.footer-brand p { color: var(--text-muted); font-size: .9rem; margin: 14px 0 20px; max-width: 280px; }

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem;
  transition: .2s;
}

.social-link:hover { border-color: var(--primary); color: var(--primary); }

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

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }

.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;
  font-size: .85rem; color: var(--text-muted);
}

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

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  display: none;
  background: rgba(74,222,128,.1);
  border: 1px solid #4ade80;
  color: #4ade80;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .9rem;
  margin-top: 12px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 50px;
}

.page-btn {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: .2s; text-decoration: none;
}

.page-btn:hover, .page-btn.active {
  border-color: var(--primary); color: var(--primary);
  background: rgba(0,212,255,.08);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px; border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: .2s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary); color: var(--primary);
  background: rgba(0,212,255,.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-review { grid-template-columns: 1fr; }
  .featured-review img { min-height: 260px; }
  .review-body { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
}

@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,14,26,.98); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid, .newsletter-inner { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  .hero-bg::after { background: linear-gradient(to bottom, rgba(10,14,26,.95) 0%, rgba(10,14,26,.7) 100%); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .tournament-card { flex-direction: column; }
  .register-btn { align-self: flex-start; }
  .tournaments-table { font-size: .82rem; }
  .tournaments-table th, .tournaments-table td { padding: 12px 10px; }
}

@media (max-width: 480px) {
  section { padding: 50px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px 18px; }
}
