/* ============================================================
   VirtualOnslaught.pro — Main Stylesheet
   ============================================================ */

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

:root {
  --primary:    #7c3aed;
  --primary-dark: #5b21b6;
  --accent:     #06b6d4;
  --accent-dark:#0891b2;
  --bg-dark:    #0a0a0f;
  --bg-card:    #12121c;
  --bg-nav:     #0d0d18;
  --text-main:  #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #1e1e30;
  --success:    #22c55e;
  --danger:     #ef4444;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
}

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

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

ul { list-style: none; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,58,237,.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---- Section Headings ---- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 20px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,24,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.6); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.nav-logo img { width: 36px; height: 36px; border-radius: 6px; }
.nav-logo span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  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;
  filter: brightness(.35);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.3) 0%, rgba(6,182,212,.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; 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-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  border-color: rgba(124,58,237,.4);
}

.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.card-tag.accent {
  background: rgba(6,182,212,.15);
  border-color: rgba(6,182,212,.3);
  color: var(--accent);
}
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.card-text { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }

.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stars { color: #f59e0b; font-size: 14px; }
.rating-score { font-weight: 700; font-size: 14px; color: #f59e0b; }

/* ---- Grid Layouts ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ============================================================
   FEATURED REVIEWS
   ============================================================ */
.reviews-section { background: var(--bg-dark); }

/* ============================================================
   TOURNAMENTS
   ============================================================ */
.tournaments-section { background: #0d0d18; }

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition);
}

.tournament-card:hover {
  border-color: rgba(124,58,237,.4);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.tournament-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.tournament-info { flex: 1; }
.tournament-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tournament-meta { font-size: 13px; color: var(--text-muted); }

.tournament-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-live { background: rgba(34,197,94,.15); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.status-upcoming { background: rgba(6,182,212,.15); color: var(--accent); border: 1px solid rgba(6,182,212,.3); }
.status-ended { background: rgba(148,163,184,.1); color: var(--text-muted); border: 1px solid rgba(148,163,184,.2); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  position: relative;
  overflow: hidden;
}

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

.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { background: var(--bg-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-text strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.contact-item-text span { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.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: 16px; }

/* ---- Form Messages ---- */
.form-success, .form-error {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}
.form-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--success); }
.form-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--danger); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: #0d0d18; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap img { width: 100%; height: 380px; object-fit: cover; }

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124,58,237,.3);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; }

.feature-list { margin-top: 24px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.feature-icon { color: var(--accent); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.feature-item strong { display: block; color: #fff; margin-bottom: 2px; }
.feature-item p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060610;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.7; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo img { width: 32px; height: 32px; border-radius: 6px; }
.footer-logo span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-text { flex: 1; font-size: 14px; color: var(--text-muted); min-width: 200px; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #0d0d18 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.review-score-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.score-label { font-size: 12px; color: var(--text-muted); width: 80px; }
.score-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }

/* ============================================================
   TOURNAMENTS PAGE
   ============================================================ */
.bracket-section { background: #0d0d18; }

.tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tournament-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.tournament-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.tournament-table tr:hover td { background: rgba(124,58,237,.05); }
.tournament-table tr:last-child td { border-bottom: none; }

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.policy-content h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 12px; color: #fff; }
.policy-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 10px; color: var(--accent); }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.policy-content ul { margin: 10px 0 16px 20px; }
.policy-content ul li { color: var(--text-muted); margin-bottom: 8px; list-style: disc; }
.policy-content a { color: var(--accent); }
.policy-content .last-updated { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-nav); flex-direction: column; gap: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats { gap: 24px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; text-align: center; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .section-pad { padding: 56px 0; }
  .page-hero { padding: 120px 0 40px; }
}
