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

:root {
  --bg-dark: #0d0f1a;
  --bg-card: #141626;
  --bg-nav: rgba(13,15,26,0.97);
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: rgba(124,58,237,0.25);
  --radius: 12px;
  --shadow: 0 4px 32px rgba(124,58,237,0.18);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--text-primary);
  text-decoration: none; letter-spacing: -0.5px;
}

.navbar-brand span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.navbar-brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-weight: 500; padding: 0.5rem 0.9rem;
  border-radius: 8px; transition: all var(--transition); font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(124,58,237,0.15); }

.nav-cta {
  background: var(--accent-grad); color: #fff !important;
  padding: 0.5rem 1.2rem !important; border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; background: var(--accent-grad) !important; }

.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-primary); border-radius: 2px; transition: all var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 68px;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,15,26,0.4) 0%, rgba(13,15,26,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 800px; padding: 2rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.2); border: 1px solid var(--border);
  color: var(--accent2); font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
  letter-spacing: 0.5px; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero h1 .gradient { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 2rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.8rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: all var(--transition); border: none; text-decoration: none;
}

.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 2px solid rgba(124,58,237,0.5);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(124,58,237,0.1); transform: translateY(-2px); color: var(--text-primary); }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-header .tag {
  display: inline-block; background: rgba(6,182,212,0.15);
  color: var(--accent2); font-size: 0.8rem; font-weight: 700;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 2.2rem; font-weight: 900; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

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

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(124,58,237,0.5); }

.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tag-review { background: rgba(124,58,237,0.2); color: #a78bfa; }
.tag-tournament { background: rgba(6,182,212,0.2); color: var(--accent2); }
.tag-news { background: rgba(16,185,129,0.2); color: #34d399; }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text-secondary); }
.card-meta .rating { display: flex; align-items: center; gap: 4px; color: #fbbf24; font-weight: 700; }

.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-footer a { font-size: 0.9rem; font-weight: 600; color: var(--accent2); }
.card-footer a:hover { color: var(--accent); }

/* ===== RATING STARS ===== */
.stars { color: #fbbf24; letter-spacing: 2px; }

/* ===== SCORE BADGE ===== */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 10px;
  font-size: 1.2rem; font-weight: 900;
  background: var(--accent-grad); color: #fff;
  flex-shrink: 0;
}

/* ===== FEATURE SECTION ===== */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; height: 380px; object-fit: cover; }
.feature-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.feature-text p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); }
.feature-list li::before { content: '✦'; color: var(--accent2); flex-shrink: 0; margin-top: 2px; }

/* ===== TOURNAMENT TABLE ===== */
.tournament-table { width: 100%; border-collapse: collapse; }
.tournament-table th {
  background: rgba(124,58,237,0.15); color: var(--text-secondary);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border);
}
.tournament-table td { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }
.tournament-table tr:last-child td { border-bottom: none; }
.tournament-table tr:hover td { background: rgba(124,58,237,0.06); }
.status-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.status-open { background: rgba(16,185,129,0.2); color: #34d399; }
.status-upcoming { background: rgba(251,191,36,0.2); color: #fbbf24; }
.status-closed { background: rgba(239,68,68,0.2); color: #f87171; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4rem 2rem; text-align: center; max-width: 700px; margin: 0 auto;
}
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.newsletter p { color: var(--text-secondary); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: var(--text-secondary); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button { white-space: nowrap; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.25rem; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(124,58,237,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-detail h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 2px; }
.contact-detail p { color: var(--text-primary); font-size: 0.95rem; margin: 0; }

.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition); font-family: inherit;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-secondary); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== SUCCESS MESSAGE ===== */
.form-success {
  display: none; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4);
  border-radius: 10px; padding: 1rem 1.25rem; color: #34d399;
  font-weight: 600; margin-top: 1rem; text-align: center;
}

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 8rem 2rem 4rem; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 1rem; }
.about-hero p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all var(--transition); }
.team-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.5); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2rem; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ===== REVIEW PAGE ===== */
.review-hero { padding: 8rem 2rem 3rem; }
.review-hero-inner { max-width: 1200px; margin: 0 auto; }
.review-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.review-img { border-radius: var(--radius); overflow: hidden; }
.review-img img { width: 100%; height: 320px; object-fit: cover; }
.review-meta-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.review-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.75rem; }
.review-excerpt { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.5rem; }
.review-score-box { display: flex; align-items: center; gap: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.score-big { font-size: 3rem; font-weight: 900; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.score-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== POLICY PAGES ===== */
.policy-hero { padding: 8rem 2rem 3rem; text-align: center; }
.policy-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.75rem; }
.policy-hero p { color: var(--text-secondary); }
.policy-content { max-width: 860px; margin: 0 auto; padding: 0 2rem 5rem; }
.policy-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--text-primary); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--accent2); }
.policy-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.policy-content ul { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: 0.4rem; }
.policy-content a { color: var(--accent2); }
.policy-content a:hover { color: var(--accent); }

/* ===== 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: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { color: var(--text-secondary); font-size: 0.9rem; flex: 1; min-width: 240px; }
#cookie-banner a { color: var(--accent2); }
.cookie-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--accent-grad); color: #fff; padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; }
.btn-cookie-decline { background: transparent; color: var(--text-secondary); padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--border); }
.btn-cookie-accept:hover { opacity: 0.88; }
.btn-cookie-decline:hover { border-color: var(--accent); color: var(--text-primary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-brand .brand-name { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.footer-brand .brand-name span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 8rem 2rem 3rem; text-align: center;
  background: linear-gradient(to bottom, rgba(124,58,237,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 0; display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--text-secondary); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { color: var(--accent2); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.55rem 1.2rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active { background: rgba(124,58,237,0.15); border-color: var(--accent); color: var(--text-primary); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; gap: 0.75rem; max-width: 500px; }
.search-bar input {
  flex: 1; padding: 0.75rem 1.1rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary); font-size: 0.95rem; outline: none;
  transition: border-color var(--transition);
}
.search-bar input::placeholder { color: var(--text-secondary); }
.search-bar input:focus { border-color: var(--accent); }
.search-bar button { padding: 0.75rem 1.4rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-header { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
