/* ===== 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: #0d0f14;
  color: #e0e6f0;
  line-height: 1.65;
  font-size: 16px;
}
a { color: #4fc3f7; text-decoration: none; transition: color .2s; }
a:hover { color: #81d4fa; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --accent: #4fc3f7;
  --accent2: #7c4dff;
  --dark: #0d0f14;
  --card: #141720;
  --card2: #1a1e2a;
  --border: #252a38;
  --text: #e0e6f0;
  --muted: #8892a4;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
}

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

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 28px; }
nav ul li a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--text); border-color: var(--accent);
}
.nav-cta {
  background: var(--accent); color: #0d0f14 !important;
  padding: 8px 20px !important; border-radius: 6px;
  font-weight: 700 !important; border-bottom: none !important;
}
.nav-cta:hover { background: #81d4fa !important; color: #0d0f14 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden; background: #0a0c10;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center;
  opacity: .35; filter: blur(1px);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,15,20,.85) 40%, rgba(79,195,247,.08));
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
  display: inline-block; background: rgba(79,195,247,.15);
  border: 1px solid rgba(79,195,247,.35); color: var(--accent);
  font-size: .78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; max-width: 500px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #0d0f14;
  font-weight: 700; padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #81d4fa; transform: translateY(-2px); color: #0d0f14; }
.btn-secondary {
  display: inline-block; background: transparent;
  border: 2px solid var(--accent); color: var(--accent);
  font-weight: 700; padding: 12px 28px; border-radius: 8px;
  font-size: 1rem; transition: background .2s, color .2s; cursor: pointer;
}
.btn-secondary:hover { background: var(--accent); color: #0d0f14; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar .container {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 28px 24px; gap: 20px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTION HEADINGS ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.accent-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 14px auto 0; border-radius: 2px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: rgba(79,195,247,.1);
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.rating { display: flex; align-items: center; gap: 6px; }
.stars { color: #ffd740; font-size: .9rem; }
.rating-num { font-weight: 700; font-size: .95rem; }
.read-more {
  font-size: .85rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); padding: 5px 14px; border-radius: 5px;
  transition: background .2s, color .2s;
}
.read-more:hover { background: var(--accent); color: #0d0f14; }

/* ===== TOURNAMENTS ===== */
.tournaments-section { background: var(--card2); }
.tournament-list { display: flex; flex-direction: column; gap: 16px; }
.tournament-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: border-color .2s;
}
.tournament-item:hover { border-color: var(--accent); }
.t-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.t-info { flex: 1; }
.t-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.t-info p { font-size: .85rem; color: var(--muted); }
.t-meta { text-align: right; flex-shrink: 0; }
.t-date { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.t-status {
  font-size: .75rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.status-live { background: rgba(244,67,54,.15); color: #ef5350; }
.status-upcoming { background: rgba(79,195,247,.15); color: var(--accent); }
.status-open { background: rgba(102,187,106,.15); color: #66bb6a; }

/* ===== FEATURED TOURNAMENT ===== */
.featured-banner {
  border-radius: var(--radius); overflow: hidden;
  position: relative; margin-bottom: 40px;
}
.featured-banner img { width: 100%; height: 320px; object-fit: cover; opacity: .7; }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,15,20,.9) 40%, transparent);
  display: flex; align-items: center; padding: 40px;
}
.featured-overlay h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.featured-overlay p { color: var(--muted); margin-bottom: 20px; max-width: 400px; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #141720, #1a1e2a);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.newsletter-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-text p { color: var(--muted); }
.newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }
.form-row input { flex: 1; }
input[type="text"], input[type="email"], textarea, select {
  background: var(--dark); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: 8px;
  font-size: .95rem; width: 100%; transition: border-color .2s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }
.form-msg {
  padding: 12px 16px; border-radius: 8px; font-size: .9rem;
  display: none; margin-top: 8px;
}
.form-msg.success { background: rgba(102,187,106,.15); color: #66bb6a; border: 1px solid rgba(102,187,106,.3); }
.form-msg.error { background: rgba(244,67,54,.15); color: #ef5350; border: 1px solid rgba(244,67,54,.3); }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(79,195,247,.1); border: 1px solid rgba(79,195,247,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.feature-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.feature-item p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ===== CONTACT FORM ===== */
.contact-section { background: var(--card2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 28px; }
.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; border-radius: 8px;
  background: rgba(79,195,247,.1); border: 1px solid rgba(79,195,247,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-form-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-form-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }

/* ===== REVIEW PAGE ===== */
.review-hero { padding: 56px 0 40px; }
.review-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.review-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.review-meta span { display: flex; align-items: center; gap: 5px; }
.review-score-box {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 24px; margin-bottom: 32px;
}
.score-big { font-size: 3rem; font-weight: 900; color: var(--accent); line-height: 1; }
.score-label { font-size: .85rem; color: var(--muted); }
.score-verdict { font-size: 1.1rem; font-weight: 700; }
.review-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; }
.review-body { max-width: 780px; }
.review-body h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.review-body p { color: var(--muted); margin-bottom: 16px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.pros, .cons {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.pros h4 { color: #66bb6a; margin-bottom: 12px; }
.cons h4 { color: #ef5350; margin-bottom: 12px; }
.pros li, .cons li { font-size: .9rem; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--border); }
.pros li:last-child, .cons li:last-child { border-bottom: none; }
.pros li::before { content: '✓ '; color: #66bb6a; font-weight: 700; }
.cons li::before { content: '✗ '; color: #ef5350; font-weight: 700; }

/* ===== TOURNAMENTS PAGE ===== */
.page-hero {
  background: var(--card2); border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 600px; }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 20px; font-size: .85rem;
  font-weight: 600; cursor: pointer; transition: .2s;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent); background: rgba(79,195,247,.08);
}
.tournament-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tc-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.tc-header h3 { font-size: 1rem; font-weight: 700; }
.tc-body { padding: 20px; }
.tc-detail { display: flex; justify-content: space-between; font-size: .85rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tc-detail:last-child { border-bottom: none; }
.tc-detail span:first-child { color: var(--muted); }
.tc-detail span:last-child { font-weight: 600; }
.tc-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* ===== ABOUT PAGE ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: transform .2s;
}
.team-card:hover { transform: translateY(-4px); }
.team-card img { width: 100%; height: 200px; object-fit: cover; }
.team-card-body { padding: 18px; }
.team-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body p { font-size: .85rem; color: var(--muted); }

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 800px; margin: 0 auto; padding: 56px 24px; }
.policy-content h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.policy-date { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.policy-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--accent); }
.policy-content p { color: var(--muted); margin-bottom: 14px; }
.policy-content ul { margin: 12px 0 14px 20px; }
.policy-content ul li { color: var(--muted); margin-bottom: 6px; list-style: disc; }
.policy-content a { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.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(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--card2); border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cookie-banner p { font-size: .88rem; color: var(--muted); max-width: 700px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-sm {
  padding: 8px 18px; border-radius: 6px; font-size: .85rem;
  font-weight: 600; cursor: pointer; border: none; transition: .2s;
}
.btn-accept { background: var(--accent); color: #0d0f14; }
.btn-accept:hover { background: #81d4fa; }
.btn-decline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-decline:hover { border-color: var(--muted); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .newsletter-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13,15,20,.97); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: 1.8rem; }
  .tournament-item { flex-wrap: wrap; }
  .t-meta { text-align: left; }
}
