/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0c14;
  color: #d0d6e8;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #4fc3f7; text-decoration: none; transition: color .2s; }
a:hover { color: #81d4fa; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --accent: #4fc3f7;
  --accent2: #9c27b0;
  --dark: #0a0c14;
  --dark2: #111422;
  --dark3: #181c2e;
  --card: #13172a;
  --border: #1e2540;
  --text: #d0d6e8;
  --muted: #7a85a8;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { color: #fff; font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--muted); font-size: 1.05rem; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,12,20,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; font-weight: 800; color: #fff; }
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: #000 !important; padding: .45rem 1.2rem; border-radius: 6px; font-weight: 700 !important; }
.nav-cta:hover { background: #81d4fa; color: #000 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,12,20,.85) 40%, rgba(76,0,130,.35) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(79,195,247,.12); border: 1px solid rgba(79,195,247,.3);
  color: var(--accent); padding: .35rem 1rem; border-radius: 20px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.15rem; color: #b0bcd8; margin-bottom: 2rem; max-width: 560px; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #81d4fa; color: #000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,195,247,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.25); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag { display: inline-block; background: rgba(79,195,247,.12); color: var(--accent); font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 4px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.rating { color: #ffd54f; font-weight: 700; }

/* ===== FEATURED SECTION ===== */
.featured-bg { background: var(--dark2); }
.featured-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.featured-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-img img { width: 100%; height: 360px; object-fit: cover; }
.featured-text .tag { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; display: block; }
.featured-text h2 { margin-bottom: 1rem; }
.featured-text p { color: var(--muted); margin-bottom: 1.5rem; }
.feature-list { margin: 1.5rem 0; }
.feature-list li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: .95rem; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }

/* ===== TOURNAMENTS ===== */
.tournament-list { display: flex; flex-direction: column; gap: 1rem; }
.tournament-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem;
  transition: border-color .2s;
}
.tournament-item:hover { border-color: var(--accent); }
.t-rank { font-size: 1.5rem; font-weight: 800; color: var(--accent); min-width: 2.5rem; text-align: center; }
.t-info { flex: 1; }
.t-info h4 { color: #fff; margin-bottom: .2rem; }
.t-info span { font-size: .85rem; color: var(--muted); }
.t-badge { background: rgba(156,39,176,.15); color: #ce93d8; font-size: .8rem; font-weight: 700; padding: .3rem .8rem; border-radius: 4px; white-space: nowrap; }
.t-badge.live { background: rgba(244,67,54,.15); color: #ef9a9a; }
.t-badge.upcoming { background: rgba(79,195,247,.12); color: var(--accent); }

/* ===== NEWSLETTER / CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #0d1020 0%, #1a0a2e 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 80px 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }
.subscribe-form { display: flex; gap: .75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe-form input {
  flex: 1; min-width: 220px; padding: .75rem 1.25rem;
  background: var(--dark3); border: 1px solid var(--border); border-radius: 8px;
  color: #fff; font-size: 1rem; outline: none;
}
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form input::placeholder { color: var(--muted); }
.form-message { margin-top: .75rem; font-size: .9rem; min-height: 1.2em; }
.form-message.success { color: #81c784; }
.form-message.error { color: #ef9a9a; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.25rem; }
.contact-icon { width: 40px; height: 40px; background: rgba(79,195,247,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail h4 { font-size: .9rem; color: var(--muted); margin-bottom: .1rem; }
.contact-detail p { margin: 0; color: var(--text); font-size: .95rem; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem;
  background: var(--dark3); border: 1px solid var(--border); border-radius: 8px;
  color: #fff; font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s;
}
.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(--dark3); }

/* ===== ABOUT PAGE ===== */
.about-hero { background: var(--dark2); padding: 80px 0; }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 auto 1rem; }
.team-card h4 { margin-bottom: .2rem; }
.team-card span { font-size: .85rem; color: var(--muted); }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--dark2); padding: 60px 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 820px; margin: 0 auto; padding: 60px 1.5rem; }
.policy-content h1 { margin-bottom: .5rem; }
.policy-content .last-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.policy-content h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; color: var(--accent); }
.policy-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.policy-content p, .policy-content li { color: #b0bcd8; line-height: 1.8; }
.policy-content ul, .policy-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { list-style: disc; margin-bottom: .4rem; }
.policy-content ol li { list-style: decimal; margin-bottom: .4rem; }
.policy-content a { color: var(--accent); }
.policy-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }

/* ===== FOOTER ===== */
footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: var(--muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--muted); font-size: .85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--muted); font-size: .85rem; }
.footer-bottom-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link { width: 36px; height: 36px; background: var(--dark3); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; transition: all .2s; }
.social-link:hover { background: rgba(79,195,247,.1); border-color: var(--accent); color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark3); border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
#cookie-banner p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent); }
.cookie-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn { padding: .5rem 1.25rem; border-radius: 6px; font-weight: 700; font-size: .9rem; cursor: pointer; border: none; transition: all .2s; }
.cookie-accept { background: var(--accent); color: #000; }
.cookie-accept:hover { background: #81d4fa; }
.cookie-decline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.cookie-decline:hover { border-color: var(--muted); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-inner, .about-hero-inner, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,12,20,.98); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  header { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .tournament-item { flex-wrap: wrap; }
}
