/* ===== FRAGOVERDRIVE.XYZ – MAIN STYLES ===== */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: #1e1e3a;
  --border: rgba(124,58,237,0.3);
}

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

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

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* NAVBAR */
.navbar-brand span { color: var(--accent); }
.navbar { background: rgba(15,15,26,0.97) !important; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.navbar-nav .nav-link { color: var(--text-muted) !important; font-weight: 500; transition: color .2s; padding: .5rem 1rem !important; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }

/* HERO */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,15,26,.92) 0%, rgba(92,33,182,.55) 100%),
              url('../images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--dark));
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(6,182,212,.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--primary); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; }

/* BUTTONS */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,.45); color: #fff; }

.btn-outline-custom {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: .7rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-custom:hover { background: var(--accent); color: var(--dark); }

/* SECTION TITLES */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: .8rem 0 1.5rem;
}

/* CARDS */
.game-card {
  background: var(--card-bg);
  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 50px rgba(124,58,237,.25); }
.game-card img { width: 100%; height: 200px; object-fit: cover; }
.game-card-body { padding: 1.4rem; }
.game-card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.game-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.game-card-text { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.rating-stars { color: #f59e0b; font-size: 1rem; }
.rating-value { font-weight: 700; color: var(--text); margin-left: .4rem; font-size: .9rem; }

/* TOURNAMENT CARDS */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform .25s, border-color .25s;
}
.tournament-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.tournament-status {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-active { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid #10b981; }
.status-upcoming { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid #f59e0b; }
.status-ended { background: rgba(148,163,184,.1); color: var(--text-muted); border: 1px solid var(--text-muted); }

/* STATS BAR */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .3rem; }

/* NEWSLETTER */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.newsletter-form .form-control {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .75rem 1.2rem;
}
.newsletter-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
  color: var(--text);
}
.newsletter-form .form-control::placeholder { color: var(--text-muted); }

/* CONTACT FORM */
.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .75rem 1.2rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255,255,255,.09);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
  color: var(--text);
}
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form label { color: var(--text-muted); font-size: .9rem; margin-bottom: .4rem; }
.contact-form .form-select option { background: var(--dark2); }

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
footer .footer-brand { font-size: 1.4rem; font-weight: 900; }
footer .footer-brand span { color: var(--accent); }
footer .footer-desc { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }
footer h6 { color: var(--text); font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .5rem; }
footer ul li a { color: var(--text-muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; color: var(--text-muted); font-size: .82rem; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark2);
  border-top: 2px solid var(--primary);
  z-index: 9999;
  padding: 1.2rem 1.5rem;
  display: none;
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ABOUT PAGE */
.about-img { border-radius: 14px; width: 100%; object-fit: cover; max-height: 420px; border: 1px solid var(--border); }
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* POLICY PAGES */
.policy-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-top: 2rem; margin-bottom: .8rem; }
.policy-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-top: 1.5rem; margin-bottom: .6rem; }
.policy-content p, .policy-content li { color: var(--text-muted); }
.policy-content ul { padding-left: 1.5rem; }
.policy-content a { color: var(--accent); }

/* ALERT MESSAGES */
.alert-success-custom {
  background: rgba(16,185,129,.15);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 8px;
  padding: 1rem 1.4rem;
  margin-top: 1rem;
  display: none;
}

/* BREADCRUMB */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 0; }
.breadcrumb-item a { color: var(--accent); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section { min-height: 75vh; }
  .stat-number { font-size: 1.8rem; }
}
