/* ===========================
   StormControl.xyz — Main CSS
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:    #0a0c10;
  --bg-card:    #111520;
  --bg-card2:   #161b27;
  --accent:     #00c8ff;
  --accent2:    #7b2fff;
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --border:     #1e2535;
  --radius:     8px;
  --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);
  line-height: 1.65;
  font-size: 16px;
}

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

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

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #000; }

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,16,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.logo img { width: 36px; height: 36px; border-radius: 6px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
nav ul li a:hover,
nav ul li a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.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 var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.card-meta .genre {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
}
.card-meta .date { font-size: 0.8rem; color: var(--text-muted); }
.card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fbbf24;
  font-size: 0.9rem;
}
.rating-stars { letter-spacing: -2px; }

/* ---- TOURNAMENT CARDS ---- */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tournament-card img { width: 100%; height: 220px; object-fit: cover; }
.tournament-card .tc-body { padding: 20px; flex: 1; }
.tournament-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tournament-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tc-tag {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tc-tag strong { color: var(--accent); }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, #0d1a2e, #110d2a);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
  text-align: center;
}
.newsletter-section h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.form-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 20px;
  color: #4ade80;
  display: none;
}

/* ---- CONTACT FORM ---- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail strong { display: block; color: #fff; font-size: 0.9rem; }
.contact-detail span { font-size: 0.85rem; color: var(--text-muted); }
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  background: rgba(74,222,128,0.1);
  border: 1px solid #4ade80;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #4ade80;
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-features { list-style: none; margin-top: 24px; }
.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ---- VENUES ---- */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition);
}
.venue-card:hover { border-color: var(--accent); }
.venue-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.venue-card .venue-city {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 10px;
}
.venue-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin-top: 14px; max-width: 280px; }
.footer-col h5 {
  font-size: 0.8rem;
  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: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-muted); }
.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 { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0d1220, #0a0c10);
  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: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ---- POLICY CONTENT ---- */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.policy-content h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 36px 0 12px; }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--accent); margin: 24px 0 8px; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.policy-content ul { list-style: disc; padding-left: 22px; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--accent); }
.policy-content .last-updated {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 999;
  font-size: 0.9rem;
  color: var(--text-muted);
}
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    z-index: 99;
  }
  .nav-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 2rem; }
}
