/* ============================================================
   MELAFORI.SITE — Main Stylesheet
   Gaming Reviews & Tournaments — Australia
   ============================================================ */

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --accent: #06b6d4;
  --dark: #0a0a0f;
  --dark-2: #12121a;
  --dark-3: #1a1a2e;
  --dark-card: #16213e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(124, 58, 237, 0.25);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #12121a 0%, #1a1a2e 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ── NAVBAR ── */
.navbar {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px;
  transition: all .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: rgba(124, 58, 237, 0.15);
}

.navbar-toggler {
  border-color: var(--border);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.85) 40%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.btn-primary-custom {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  display: inline-block;
}
.btn-primary-custom:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ── SECTION TITLES ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ── CARDS ── */
.game-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

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

.game-card-body {
  padding: 1.25rem;
}

.game-genre {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.game-card-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

.rating-stars { color: #f59e0b; font-size: 0.9rem; }
.rating-num { color: var(--text-muted); font-size: 0.85rem; margin-left: 4px; }

/* ── TOURNAMENT CARD ── */
.tournament-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.15);
}

.t-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.t-badge.live { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.t-badge.upcoming { background: rgba(6,182,212,0.15); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
.t-badge.past { background: rgba(148,163,184,0.1); color: var(--text-muted); border: 1px solid rgba(148,163,184,0.2); }

.tournament-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.tournament-card .t-meta { font-size: 0.85rem; color: var(--text-muted); }
.tournament-card .t-meta span { margin-right: 1rem; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stat-item { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── SUBSCRIBE / CTA SECTIONS ── */
.cta-section {
  background: var(--gradient-dark);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
}

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

.subscribe-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.subscribe-form input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
}
.subscribe-form input:focus { border-color: var(--primary); }
.subscribe-form input::placeholder { color: var(--text-muted); }

/* ── CONTACT FORM ── */
.contact-form .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color .2s;
}
.contact-form .form-control:focus {
  background: rgba(255,255,255,0.07);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  color: var(--text);
}
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.35rem; }

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  color: #34d399;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--gradient-dark);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.6rem; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }

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

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── REVIEW DETAIL ── */
.review-score {
  background: var(--gradient);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.review-score .score-num { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1; }
.review-score .score-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

.score-bar-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.score-bar-wrap { background: rgba(255,255,255,0.08); border-radius: 50px; height: 8px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 50px; background: var(--gradient); }

/* ── POLICY PAGES ── */
.policy-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.policy-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--primary-light); }
.policy-content p, .policy-content li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.policy-content ul { padding-left: 1.4rem; }
.policy-content a { color: var(--accent); }

/* ── UTILITIES ── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.divider { border-color: var(--border); margin: 0; }

.tag {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: 75vh; }
  .subscribe-form { flex-direction: column; }
  .stats-bar .col-6 { margin-bottom: 1.5rem; }
}
