/* =============================================
   PulseArenas.xyz - Main Stylesheet
   ============================================= */

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

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

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; }

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.logo span { color: var(--primary-light); }

.logo img { width: 36px; height: 36px; border-radius: 8px; }

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: #fff;
  background: rgba(124,58,237,0.2);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--primary-light) !important; }

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

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

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.3);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.hero h1 span { color: var(--primary-light); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* ---- SECTION COMMON ---- */
section { padding: 80px 24px; }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}

.stat-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---- REVIEWS GRID ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.review-card-body { padding: 22px; }

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

.genre-tag {
  background: rgba(124,58,237,0.2);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-date { color: var(--text-muted); font-size: 0.82rem; }

.review-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.review-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; }

.review-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-badge {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
}

.stars { color: var(--accent2); font-size: 0.9rem; letter-spacing: 2px; }

.read-more {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.read-more:hover { color: var(--primary-light); }

/* ---- TOURNAMENTS ---- */
.tournaments-section { background: var(--bg-card); }

.tournament-list { display: flex; flex-direction: column; gap: 20px; }

.tournament-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color 0.2s;
}

.tournament-item:hover { border-color: var(--primary); }

.t-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t-status.live { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulse 1.5s infinite; }
.t-status.upcoming { background: var(--accent2); }
.t-status.completed { background: var(--text-muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.t-info h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.t-info p { color: var(--text-muted); font-size: 0.88rem; }

.t-meta { text-align: right; }
.t-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.t-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.t-label.live { background: rgba(239,68,68,0.15); color: #ef4444; }
.t-label.upcoming { background: rgba(245,158,11,0.15); color: var(--accent2); }
.t-label.completed { background: rgba(148,163,184,0.1); color: var(--text-muted); }

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

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }

.feature-list { list-style: none; margin: 24px 0; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(124,58,237,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, #1a0a3a 0%, #0a1a3a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.newsletter-inner p { color: var(--text-muted); margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.form-success {
  display: none;
  background: rgba(16,185,129,0.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 600;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(124,58,237,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { color: #fff; font-size: 0.9rem; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.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; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, #1a0a3a 0%, #0a0a1a 100%);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: 2.8rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- POLICY PAGES ---- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.policy-content ul {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.policy-content ul li { margin-bottom: 6px; }

.policy-content a { color: var(--primary-light); }

.policy-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- TOURNAMENTS PAGE ---- */
.tournament-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 48px;
}

.bracket-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

/* ---- REVIEWS PAGE ---- */
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ---- FOOTER ---- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-light); }

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

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary-light); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p { color: var(--text-muted); font-size: 0.9rem; }
.cookie-inner p a { color: var(--primary-light); }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-sm {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-accept { background: var(--primary); color: #fff; }
.btn-accept:hover { background: var(--primary-light); }
.btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-decline:hover { color: #fff; border-color: var(--text-muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tournament-item { grid-template-columns: auto 1fr; }
  .t-meta { grid-column: 2; }
}

@media (max-width: 640px) {
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
  nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 2rem; }
}
