/* =========================================
   StormDriven.info — Main Stylesheet
   ========================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:       #0d0f1a;
  --clr-surface:  #141728;
  --clr-card:     #1a1e32;
  --clr-border:   #252a45;
  --clr-accent1:  #6c63ff;
  --clr-accent2:  #a855f7;
  --clr-neon:     #00d4ff;
  --clr-text:     #e2e8f0;
  --clr-muted:    #8892a4;
  --clr-white:    #ffffff;
  --font-main:    'Segoe UI', system-ui, sans-serif;
  --radius:       10px;
  --shadow:       0 4px 24px rgba(0,0,0,.45);
  --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

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

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

ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, var(--clr-accent1), var(--clr-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--clr-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.tag {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tag-action  { background: rgba(108,99,255,.2); color: var(--clr-accent1); }
.tag-rpg     { background: rgba(168,85,247,.2); color: var(--clr-accent2); }
.tag-fps     { background: rgba(0,212,255,.15); color: var(--clr-neon); }
.tag-strategy{ background: rgba(34,197,94,.15); color: #4ade80; }
.tag-sports  { background: rgba(251,146,60,.15); color: #fb923c; }

.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--clr-accent1), var(--clr-accent2));
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(108,99,255,.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(108,99,255,.6); color: var(--clr-white); }
.btn-outline {
  background: transparent;
  color: var(--clr-neon);
  border: 2px solid var(--clr-neon);
}
.btn-outline:hover { background: var(--clr-neon); color: var(--clr-bg); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--clr-white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,15,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -.02em;
}
.logo img { width: 38px; height: 38px; border-radius: 8px; }
.logo span { background: linear-gradient(90deg, var(--clr-accent1), var(--clr-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--clr-muted);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-neon);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--clr-white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}
.mobile-menu a { color: var(--clr-muted); font-weight: 500; font-size: 1rem; }
.mobile-menu a:hover { color: var(--clr-white); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(.35);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,15,26,.8) 0%, rgba(108,99,255,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(108,99,255,.2);
  border: 1px solid rgba(108,99,255,.4);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-accent1);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.2rem;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--clr-accent1), var(--clr-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: #b0bac8; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--clr-white); }
.hero-stat .lbl { font-size: .8rem; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Sections generic ---------- */
section { padding: 80px 0; }
.section-dark { background: var(--clr-surface); }

/* ---------- Featured Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review-card-img { position: relative; height: 200px; overflow: hidden; }
.review-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.review-card:hover .review-card-img img { transform: scale(1.06); }
.review-score {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--clr-accent1), var(--clr-accent2));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(108,99,255,.5);
}
.review-card-body { padding: 1.25rem; }
.review-card-body .tag { margin-bottom: .75rem; }
.review-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--clr-white); margin-bottom: .5rem; }
.review-card-body p { font-size: .9rem; color: var(--clr-muted); margin-bottom: 1rem; }
.review-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--clr-muted); }

/* ---------- Tournaments ---------- */
.tournaments-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tournaments-img-wrap img { width: 100%; height: 380px; object-fit: cover; }
.tournaments-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.tournament-list { display: flex; flex-direction: column; gap: 1rem; }
.tournament-item {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent1);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.tournament-item:hover { border-left-color: var(--clr-neon); transform: translateX(4px); }
.tournament-item h4 { color: var(--clr-white); font-weight: 700; margin-bottom: .3rem; }
.tournament-item .meta { font-size: .82rem; color: var(--clr-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.tournament-item .meta span::before { content: '• '; color: var(--clr-accent1); }
.tournament-item .meta span:first-child::before { content: ''; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; color: var(--clr-white); margin-bottom: 1rem; }
.about-text p { color: var(--clr-muted); margin-bottom: 1rem; }
.about-features { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.about-feature { display: flex; align-items: flex-start; gap: .75rem; }
.about-feature .icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(108,99,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.about-feature div h5 { color: var(--clr-white); font-weight: 600; font-size: .95rem; }
.about-feature div p { font-size: .85rem; color: var(--clr-muted); margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(108,99,255,.15) 0%, rgba(0,212,255,.08) 100%);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.newsletter-img img { width: 100%; height: 320px; object-fit: cover; }
.newsletter-form-wrap h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--clr-white); margin-bottom: .75rem; }
.newsletter-form-wrap p { color: var(--clr-muted); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: .75rem; }
.form-row input { flex: 1; }
.form-input {
  width: 100%;
  padding: .75rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--clr-accent1); }
.form-input::placeholder { color: var(--clr-muted); }
.form-select {
  width: 100%;
  padding: .75rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
  cursor: pointer;
}
.form-select option { background: var(--clr-card); color: var(--clr-text); }
.form-select:focus { border-color: var(--clr-accent1); }
.form-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--clr-muted); }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--clr-accent1); cursor: pointer; }
.form-success {
  display: none;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #4ade80;
  font-weight: 600;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--clr-white); margin-bottom: 1rem; }
.contact-info p { color: var(--clr-muted); margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; }
.contact-detail .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(108,99,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-detail div h5 { color: var(--clr-white); font-weight: 600; }
.contact-detail div p { font-size: .9rem; color: var(--clr-muted); margin: 0; }
.contact-form-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form textarea {
  width: 100%;
  padding: .75rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: .95rem;
  font-family: var(--font-main);
  outline: none;
  resize: vertical;
  min-height: 130px;
  transition: border-color var(--transition);
}
.contact-form textarea:focus { border-color: var(--clr-accent1); }
.contact-form textarea::placeholder { color: var(--clr-muted); }

/* ---------- Reviews Page ---------- */
.reviews-filter { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--clr-accent1);
  border-color: var(--clr-accent1);
  color: #fff;
}
.reviews-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card-full { display: none; }
.review-card-full.visible { display: block; }

/* ---------- Tournaments Page ---------- */
.tournaments-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--clr-border); }
.tournaments-table { width: 100%; border-collapse: collapse; }
.tournaments-table th {
  background: var(--clr-card);
  color: var(--clr-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.tournaments-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(37,42,69,.5);
  color: var(--clr-text);
  font-size: .9rem;
}
.tournaments-table tr:last-child td { border-bottom: none; }
.tournaments-table tr:hover td { background: rgba(255,255,255,.03); }
.status-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.status-open { background: rgba(74,222,128,.15); color: #4ade80; }
.status-upcoming { background: rgba(251,146,60,.15); color: #fb923c; }
.status-closed { background: rgba(148,163,184,.12); color: #94a3b8; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--clr-white); margin-bottom: .75rem; }
.page-hero p { color: var(--clr-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; font-size: .85rem; color: var(--clr-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-neon); }
.breadcrumb span { color: var(--clr-accent1); }

/* ---------- Policy Pages ---------- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 0;
}
.policy-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--clr-white); margin: 2rem 0 .75rem; }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--clr-accent1); margin: 1.5rem 0 .5rem; }
.policy-content p { color: var(--clr-muted); margin-bottom: 1rem; }
.policy-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { color: var(--clr-muted); margin-bottom: .4rem; list-style: disc; }
.policy-content a { color: var(--clr-neon); }
.policy-date { font-size: .85rem; color: var(--clr-muted); margin-bottom: 2rem; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--clr-card);
  border-top: 1px solid var(--clr-border);
  padding: 1.1rem 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 { font-size: .88rem; color: var(--clr-muted); flex: 1; min-width: 220px; }
.cookie-banner p a { color: var(--clr-neon); }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--clr-muted); max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: var(--clr-white); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .88rem; color: var(--clr-muted); }
.footer-col ul a:hover { color: var(--clr-neon); }
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--clr-muted);
}
.footer-bottom a { color: var(--clr-muted); }
.footer-bottom a:hover { color: var(--clr-neon); }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- Social icons ---------- */
.social-links { display: flex; gap: .75rem; margin-top: 1.2rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--clr-accent1); border-color: var(--clr-accent1); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .tournaments-content, .newsletter-inner, .contact-grid { grid-template-columns: 1fr; }
  .about-img img, .tournaments-img-wrap img, .newsletter-img img { height: 280px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .reviews-grid, .reviews-grid-full { grid-template-columns: 1fr; }
  .cookie-actions { width: 100%; }
}
