/* ===========================
   BattleVertex.info - Main CSS
   =========================== */

:root {
  --primary: #00b4ff;
  --primary-dark: #0080cc;
  --accent: #ff6a00;
  --bg-dark: #0a0a1e;
  --bg-card: #111130;
  --bg-nav: #07071a;
  --text-main: #e8e8f0;
  --text-muted: #8888aa;
  --border: #1e1e44;
  --success: #00e676;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,180,255,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, 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 0.2s; }
a:hover { color: var(--accent); }

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

/* ===== NAVBAR ===== */
.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 img { width: 36px; height: 36px; }

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

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

.nav-links a {
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

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

.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: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 4rem 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

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

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

.hero p {
  font-size: 1.1rem;
  color: #ccd;
  margin-bottom: 2rem;
  max-width: 560px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

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

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

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

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

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

.btn-accent:hover {
  background: #e05500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,106,0,0.35);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--bg-card);
}

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

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

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

.section-header h2 span { color: var(--primary); }

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

.divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,180,255,0.15);
  border-color: var(--primary);
}

.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;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

.tournament-table th {
  background: rgba(0,180,255,0.12);
  color: var(--primary);
  text-align: left;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

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

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

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-open { background: rgba(0,230,118,0.15); color: var(--success); }
.status-upcoming { background: rgba(0,180,255,0.15); color: var(--primary); }
.status-closed { background: rgba(255,106,0,0.15); color: var(--accent); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #0d0d2b 0%, #0a1a2e 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

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

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

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.2s;
}

.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;
  max-width: 640px;
}

.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.4rem;
  letter-spacing: 0.5px;
}

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

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

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

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

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

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

.stat-card .number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== REVIEW SCORE ===== */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
  border: 3px solid;
}

.score-excellent { border-color: var(--success); color: var(--success); }
.score-good { border-color: var(--primary); color: var(--primary); }
.score-average { border-color: #ffd700; color: #ffd700; }

/* ===== 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;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
}

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

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

.footer-bottom {
  max-width: 1180px;
  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: 0.8rem;
  font-size: 0.85rem;
  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: #0d0d28;
  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;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

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

#cookie-banner a { color: var(--primary); }

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

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

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

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

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-main); }

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

.policy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.7rem;
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.5rem;
}

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

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

.policy-content ul li { margin-bottom: 0.4rem; }

.policy-date {
  display: inline-block;
  background: rgba(0,180,255,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bg-dark);
  margin: 0 auto 1rem;
}

.team-card h4 { font-weight: 700; margin-bottom: 0.3rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== ALERT / SUCCESS ===== */
.alert {
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  display: none;
}

.alert-success {
  background: rgba(0,230,118,0.12);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(255,80,80,0.12);
  border: 1px solid #ff5050;
  color: #ff5050;
}

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

@media (max-width: 700px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a { display: block; padding: 0.7rem 1rem; }

  .hero { min-height: 400px; }

  .footer-grid { grid-template-columns: 1fr; }

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

  #cookie-banner { flex-direction: column; align-items: flex-start; }

  .tournament-table { font-size: 0.82rem; }
  .tournament-table th, .tournament-table td { padding: 0.6rem 0.8rem; }
}
