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

:root {
  --primary: #00c8ff;
  --primary-dark: #0099cc;
  --accent: #ff5500;
  --bg-dark: #0a0a1a;
  --bg-card: #111128;
  --bg-nav: #07071a;
  --text-main: #e8e8f0;
  --text-muted: #8888aa;
  --border: #1e1e44;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,200,255,0.08);
  --transition: 0.25s ease;
}

*, *::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-main);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

/* ---- NAVIGATION ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
  text-decoration: none;
}

.navbar-brand span { color: var(--primary); }

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0,200,255,0.08);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--bg-dark) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-cta:hover {
  background: var(--accent) !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-main);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 2rem;
  margin-left: 5%;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,200,255,0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(232,232,240,0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,200,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255,255,255,0.3);
}

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

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 2rem; }
.section-alt { background: rgba(255,255,255,0.02); }

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

.section-header { text-align: center; margin-bottom: 3rem; }

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

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.3);
  box-shadow: var(--shadow);
}

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

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.card-tag {
  display: inline-block;
  background: rgba(0,200,255,0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-tag.accent { background: rgba(255,85,0,0.12); color: var(--accent); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 1rem; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.rating { color: #ffc107; font-weight: 700; }

.card .btn { align-self: flex-start; font-size: 0.85rem; padding: 0.5rem 1.2rem; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: linear-gradient(90deg, #0a0a2a, #0d1535);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

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

.stat-item p { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---- TOURNAMENT TABLE ---- */
.tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tournament-table th {
  background: rgba(0,200,255,0.08);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

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

.tournament-table tr:hover td { background: rgba(255,255,255,0.02); }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-open { background: rgba(0,200,100,0.15); color: #00c864; }
.status-upcoming { background: rgba(0,200,255,0.12); color: var(--primary); }
.status-closed { background: rgba(255,85,0,0.12); color: var(--accent); }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, #0d1535 0%, #0a0a2a 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
}

.newsletter-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 1.8rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 0.95rem;
  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-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  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(--primary); background: rgba(0,200,255,0.04); }

.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-success {
  display: none;
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  color: #00c864;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0d1535 0%, #0a0a2a 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- ABOUT / VENUE ---- */
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all var(--transition);
}

.venue-card:hover {
  border-color: rgba(0,200,255,0.25);
  box-shadow: var(--shadow);
}

.venue-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.venue-card .venue-addr { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.75rem; }
.venue-card .venue-city { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }

.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.75rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1535;
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

#cookie-banner p { font-size: 0.88rem; color: var(--text-muted); max-width: 700px; }
#cookie-banner p a { color: var(--primary); }

.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

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

.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--primary); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 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: 0.4rem; }
.policy-content a { color: var(--primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ---- REVIEW PAGE ---- */
.review-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.review-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

.review-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.review-hero-overlay h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; }

.review-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.score-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.score-great { background: rgba(0,200,100,0.15); color: #00c864; border: 2px solid #00c864; }
.score-good { background: rgba(0,200,255,0.12); color: var(--primary); border: 2px solid var(--primary); }

.review-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.review-body p { color: var(--text-muted); margin-bottom: 1rem; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.pros { border-left: 3px solid #00c864; }
.cons { border-left: 3px solid var(--accent); }

.pros h4 { color: #00c864; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.cons h4 { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros ul li, .cons ul li { font-size: 0.88rem; color: var(--text-muted); padding: 0.25rem 0; }
.pros ul li::before { content: '+ '; color: #00c864; font-weight: 700; }
.cons ul li::before { content: '− '; color: var(--accent); font-weight: 700; }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}
