/* ===== BATTLEUPLINK.XYZ — MAIN STYLESHEET ===== */

:root {
  --bg-dark: #0a0a1a;
  --bg-card: #111128;
  --bg-nav: #080816;
  --accent: #00d4ff;
  --accent2: #7b2fff;
  --text-primary: #e8e8f0;
  --text-muted: #8888aa;
  --border: #1e1e3a;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,212,255,0.08);
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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;
  backdrop-filter: blur(12px);
}

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

.navbar__logo span { color: var(--accent); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--accent); }

.navbar__cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.navbar__cta:hover { background: #fff; color: #000 !important; }

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  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: 680px;
  padding: 4rem 2rem;
  margin-left: 6vw;
}

.hero__tag {
  display: inline-block;
  background: rgba(0,212,255,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

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

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: 1.1rem;
  color: #b0b0cc;
  margin-bottom: 2rem;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn--primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

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

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

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

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

.section--full {
  max-width: none;
  padding: 5rem 2rem;
}

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

.section__tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}

.section__subtitle {
  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: 2rem;
}

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

.stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

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

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

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

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

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

.card__body { padding: 1.4rem; }

.card__genre {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__score {
  background: var(--accent2);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ===== TOURNAMENT SECTION ===== */
.tournament-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tournament-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.tournament-grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.tournament-info__tag {
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.tournament-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.tournament-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.tournament-list {
  list-style: none;
  margin-bottom: 2rem;
}

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

.tournament-list li::before {
  content: '▶';
  color: var(--accent);
  font-size: 0.7rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #0d0d2b 0%, #1a0a3e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}

.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

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

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

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

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

.about-grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  background: url('images/contact-bg.jpg') center/cover no-repeat;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,26,0.88);
}

.contact-section .section {
  position: relative;
  z-index: 1;
}

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

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-detail strong { color: var(--text-primary); display: block; }

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0,212,255,0.04);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: #111128; }

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

.form-success {
  display: none;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  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.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
}

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

/* ===== REVIEWS PAGE ===== */
.reviews-filter {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

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

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

/* ===== TOURNAMENTS PAGE ===== */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
}

.tournament-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

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

.status--live { background: #00ff88; box-shadow: 0 0 8px #00ff88; }
.status--upcoming { background: var(--accent); }
.status--ended { background: var(--text-muted); }

.tournament-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.tournament-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tournament-card__badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge--live { background: rgba(0,255,136,0.15); color: #00ff88; border: 1px solid #00ff88; }
.badge--upcoming { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid var(--accent); }
.badge--ended { background: rgba(136,136,170,0.1); color: var(--text-muted); border: 1px solid var(--border); }

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

.policy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 0.8rem;
}

.policy-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
}

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

.policy-content ul {
  color: var(--text-muted);
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.8;
}

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

.policy-updated {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  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;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner p a { color: var(--accent); }

.cookie-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }

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

@media (max-width: 700px) {
  .navbar__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 2rem; gap: 1rem; }
  .navbar__links.open { display: flex; }
  .navbar__hamburger { display: flex; }
  .hero__content { margin-left: 0; padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tournament-card { grid-template-columns: auto 1fr; }
  .tournament-card__badge { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
