/* ===== ARENAPULSE.INFO — MAIN STYLESHEET ===== */

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

:root {
  --bg-dark:    #07071a;
  --bg-card:    #0f0f2a;
  --bg-nav:     #080818ee;
  --accent:     #7c3aed;
  --accent2:    #06b6d4;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #1e1e4a;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(124,58,237,.25);
}

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.7;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  letter-spacing: -.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent2); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 6px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #6d28d9 !important; 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: .3s;
}

/* ===== PAGE WRAPPER ===== */
.page-wrap { padding-top: 64px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  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(.45);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.35) 0%, rgba(6,182,212,.15) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 0 2rem 0 5vw;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.3); border: 1px solid var(--accent);
  color: var(--accent2); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-content h1 span { color: var(--accent2); }
.hero-content p {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2rem; max-width: 520px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: .75rem 1.8rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: #6d28d9; color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid rgba(255,255,255,.3);
  padding: .75rem 1.8rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  transition: border-color .2s, color .2s, transform .15s;
  cursor: pointer; display: inline-block;
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
  margin-bottom: .6rem;
}
.section-header h2 span { color: var(--accent2); }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px; margin: 1rem auto 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem; font-weight: 900; color: var(--accent2);
}
.stat-item p { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }

/* ===== GAME REVIEWS GRID ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card img { width: 100%; height: 200px; object-fit: cover; }
.review-card-body { padding: 1.3rem; }
.review-meta {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .6rem;
}
.review-genre {
  background: rgba(124,58,237,.2); color: var(--accent);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: .2rem .6rem; border-radius: 4px;
}
.review-score {
  margin-left: auto; background: var(--accent2);
  color: #07071a; font-size: .8rem; font-weight: 900;
  padding: .2rem .6rem; border-radius: 4px;
}
.review-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.review-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 1rem; }
.read-more {
  color: var(--accent2); font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem;
}
.read-more::after { content: '→'; transition: transform .2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ===== TOURNAMENTS ===== */
.tournaments-section { background: var(--bg-card); }
.tournament-banner {
  border-radius: var(--radius); overflow: hidden;
  position: relative; margin-bottom: 2.5rem;
}
.tournament-banner img { width: 100%; height: 360px; object-fit: cover; filter: brightness(.6); }
.tournament-banner-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(7,7,26,.9) 0%, transparent 60%);
}
.tournament-banner-content h2 { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; }
.tournament-banner-content p { color: var(--text-muted); margin-bottom: 1.2rem; }

.tournaments-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.tournament-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.tournament-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.tournament-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tournament-card h3 { font-size: 1rem; font-weight: 700; }
.t-status {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 4px;
}
.t-status.open { background: rgba(16,185,129,.2); color: #10b981; }
.t-status.upcoming { background: rgba(245,158,11,.2); color: #f59e0b; }
.t-status.closed { background: rgba(239,68,68,.2); color: #ef4444; }
.tournament-card .t-info { color: var(--text-muted); font-size: .85rem; margin-bottom: .3rem; }
.tournament-card .t-info span { color: var(--text); font-weight: 600; }

/* ===== SUBSCRIBE SECTION ===== */
.subscribe-section {
  background: linear-gradient(135deg, #1a0a3a 0%, #0a1a3a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.subscribe-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.subscribe-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: .8rem; }
.subscribe-inner p { color: var(--text-muted); margin-bottom: 2rem; }
.subscribe-form { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.subscribe-form input[type="email"] {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--text); padding: .75rem 1.2rem; border-radius: var(--radius);
  font-size: .95rem; outline: none; transition: border-color .2s;
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent2); }
.subscribe-form button { padding: .75rem 1.8rem; }
.form-msg { margin-top: 1rem; font-size: .9rem; min-height: 1.4em; }
.form-msg.success { color: #10b981; }
.form-msg.error { color: #ef4444; }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; 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: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-text h2 span { color: var(--accent2); }
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-features { list-style: none; margin-bottom: 2rem; }
.about-features li {
  padding: .5rem 0; color: var(--text-muted);
  display: flex; align-items: center; gap: .7rem;
}
.about-features li::before {
  content: '✓'; color: var(--accent2); font-weight: 900;
  width: 20px; height: 20px; background: rgba(6,182,212,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info h2 span { color: var(--accent2); }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details { list-style: none; }
.contact-details li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .8rem 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: .9rem;
}
.contact-details li:last-child { border-bottom: none; }
.contact-details .icon { color: var(--accent2); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.contact-details strong { color: var(--text); display: block; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); padding: .7rem 1rem; border-radius: 8px;
  font-size: .92rem; outline: none; transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent2); }
.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; }

/* ===== FOOTER ===== */
footer {
  background: #04041a;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: .82rem; }
.footer-bottom a { color: var(--text-muted); font-size: .82rem; }
.footer-bottom a:hover { color: var(--accent2); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 3rem;
  text-align: center;
}
.policy-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: .6rem; }
.policy-hero p { color: var(--text-muted); }
.policy-content {
  max-width: 820px; margin: 0 auto; padding: 4rem 2rem;
}
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 .8rem; color: var(--accent2); }
.policy-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: .4rem; }
.policy-content a { color: var(--accent2); }
.policy-content strong { color: var(--text); }
.policy-toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2.5rem;
}
.policy-toc h3 { font-size: .95rem; font-weight: 700; margin-bottom: .8rem; }
.policy-toc ol { padding-left: 1.2rem; }
.policy-toc ol li { margin-bottom: .3rem; }
.policy-toc ol li a { color: var(--text-muted); font-size: .88rem; }
.policy-toc ol li a:hover { color: var(--accent2); }

/* ===== REVIEWS PAGE ===== */
.page-hero {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 5rem 0 3rem; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: .6rem; }
.page-hero p { color: var(--text-muted); }

.filter-bar {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; align-items: center;
}
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: .45rem 1rem; border-radius: 20px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ===== TOURNAMENTS PAGE ===== */
.tournaments-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.tournament-full-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform .2s, border-color .2s;
}
.tournament-full-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.tournament-full-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }
.t-detail { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.t-detail:last-of-type { border-bottom: none; }
.t-detail span:last-child { color: var(--text); font-weight: 600; }
.t-register-btn { margin-top: 1.2rem; width: 100%; text-align: center; }

/* ===== 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); }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); padding: 1rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .tournament-banner img { height: 220px; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0f0f2a; border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
#cookie-banner p { color: var(--text-muted); font-size: .88rem; flex: 1; min-width: 220px; }
#cookie-banner a { color: var(--accent2); }
.cookie-btns { display: flex; gap: .8rem; flex-shrink: 0; }
.cookie-accept { background: var(--accent); color: #fff; border: none; padding: .5rem 1.2rem; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: .88rem; }
.cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: .5rem 1.2rem; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: .88rem; }
.cookie-accept:hover { background: #6d28d9; }
.cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }
