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

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --bg-dark: #0a0a1a;
  --bg-card: #111128;
  --bg-card2: #161630;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d2d5e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(124,58,237,0.15);
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 70px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.4rem; font-weight: 800; color: var(--text);
}
.nav-logo span { color: var(--primary-light); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 0.5rem 1.2rem; border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !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); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 1.5rem; z-index: 999; flex-direction: column; gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-muted); font-weight: 500; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary-light); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(10,10,26,0.8) 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  color: var(--primary-light); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 540px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #0a0a1a; }
.btn-accent:hover { background: #0891b2; color: #fff; 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(--primary-light); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block; background: rgba(124,58,237,0.15);
  color: var(--primary-light); font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-tag.action { background: rgba(239,68,68,0.15); color: #f87171; }
.card-tag.rpg { background: rgba(245,158,11,0.15); color: #fbbf24; }
.card-tag.strategy { background: rgba(6,182,212,0.15); color: var(--accent); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.rating { color: #fbbf24; font-weight: 700; }
.read-more { color: var(--primary-light); font-weight: 600; font-size: 0.9rem; }
.read-more:hover { color: var(--accent); }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== TOURNAMENT CARDS ===== */
.tournament-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-header { display: flex; justify-content: space-between; align-items: flex-start; }
.t-badge {
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem;
  border-radius: 50px; text-transform: uppercase;
}
.t-badge.live { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.t-badge.upcoming { background: rgba(6,182,212,0.2); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
.t-badge.open { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.t-game { font-size: 0.8rem; color: var(--text-muted); }
.t-title { font-size: 1.1rem; font-weight: 700; }
.t-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.t-info-item { font-size: 0.85rem; color: var(--text-muted); }
.t-info-item strong { color: var(--text); display: block; font-size: 0.9rem; }
.t-footer { display: flex; justify-content: space-between; align-items: center; }
.t-location { font-size: 0.8rem; color: var(--text-muted); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  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: 3rem; text-align: center; margin: 0 auto;
}
.newsletter-section h2 { margin-bottom: 0.75rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 1rem; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 0.8rem 1.2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary-light); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.form-success {
  display: none; background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3); color: #4ade80;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  margin-top: 1rem; font-weight: 600;
}
.form-success.show { display: block; }

/* ===== CONTACT FORM ===== */
.contact-section {
  background-image: url('images/contact-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,10,26,0.88);
}
.contact-section .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail span { font-size: 0.95rem; }
.contact-form-box {
  background: var(--bg-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: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary-light);
}
.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; }

/* ===== PAGE BANNER ===== */
.page-banner {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(10,10,26,1) 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-banner h1 { margin-bottom: 1rem; }
.page-banner p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary-light); }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); }
.feature-list li::before { content: '✓'; color: var(--primary-light); font-weight: 700; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem;
}
.policy-content h2 { color: var(--primary-light); margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.policy-content h3 { color: var(--text); margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.policy-content p, .policy-content li { color: var(--text-muted); line-height: 1.8; }
.policy-content ul, .policy-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content li { margin-bottom: 0.4rem; }
.policy-meta { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 2rem; font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ===== 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: 1.25rem 1.5rem;
  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 { font-size: 0.9rem; color: var(--text-muted); max-width: 700px; }
.cookie-banner p a { color: var(--primary-light); }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btns button {
  padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-accept { background: var(--primary); color: #fff; }
.btn-accept:hover { background: var(--primary-dark); }
.btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border) !important; }
.btn-decline:hover { color: var(--text); border-color: var(--text-muted) !important; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.3); border-radius: var(--radius);
  padding: 2rem; margin: 2rem 0;
}

/* ===== TABS ===== */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}
