/**
 * SPOTD — refonte prioritaire (navigation, accueil, FastMatch, paramètres)
 * Charge après spotd-ux-human.css — calme visuel, lisibilité, mobile.
 */

/* -------------------------------------------------------------------------- */
/* 0. En-tête d’écran — 3 questions : contexte, actions possibles, CTA principal */
/* -------------------------------------------------------------------------- */
.spotd-screen-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.spotd-screen-head--compact {
  margin-bottom: 0.75rem;
}

.spotd-screen-head--compact .spotd-screen-head__title {
  font-size: 1.15rem;
}

.spotd-screen-head__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 0.35rem;
}

.spotd-screen-head__title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.spotd-screen-head__purpose {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0;
  max-width: 40rem;
}

.spotd-screen-head__primary {
  flex-shrink: 0;
}

.spotd-screen-head__primary-btn.btn-primary {
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28), 0 8px 26px rgba(124, 92, 255, 0.24);
}

.spotd-screen-context {
  font-size: 0.875rem;
  line-height: 1.45;
}

.spotd-btn-primary-action {
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 6px 22px rgba(124, 92, 255, 0.28);
}

@media (max-width: 575.98px) {
  .spotd-screen-head__primary {
    width: 100%;
  }

  .spotd-screen-head__primary .spotd-screen-head__primary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------- */
/* 1. Navigation globale — moins de « grille néon », ombre plus sobre          */
/* -------------------------------------------------------------------------- */
.spotd-nav--drafted.navbar.sticky-top {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28) !important;
}

.spotd-nav--drafted.navbar::after {
  opacity: 0.16 !important;
}

.spotd-nav--drafted .spotd-nav__link {
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
}

.spotd-nav--drafted .spotd-nav__link.active {
  background: rgba(124, 92, 255, 0.12) !important;
}

@media (max-width: 991.98px) {
  .spotd-nav .spotd-nav__icon-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------- */
/* 2. Accueil — largeur de lecture + sections moins « étirées » sur ultra-wide */
/* -------------------------------------------------------------------------- */
.spotd-home--refined .spotd-home-stats .container,
.spotd-home--refined .spotd-home-games-carousel .container,
.spotd-home--refined .tournaments-section-community .container,
.spotd-home--refined .news-section .container,
.spotd-home--refined .newsletter-social-section .container,
.spotd-home--refined .cta-section .container {
  max-width: min(100%, 90rem) !important;
}

/* Bloc stats : cartes un peu moins hautes sur mobile */
@media (max-width: 767.98px) {
  .spotd-home--refined .spotd-home-stat {
    padding: 1rem 0.75rem !important;
  }

  .spotd-home--refined .spotd-home-stat__value {
    font-size: 1.35rem !important;
  }
}

/* Overlay chargement accueil — moins intrusif avant fade-out */
.spotd-home--refined .loading-overlay {
  background: rgba(7, 7, 14, 0.55) !important;
}

/* -------------------------------------------------------------------------- */
/* 3. Listing FastMatch — filtres plus lisibles, respiration mobile             */
/* -------------------------------------------------------------------------- */
.fastmatch-route.fastmatch-index {
  padding-top: 2rem !important;
  padding-bottom: 2.5rem !important;
}

@media (max-width: 767.98px) {
  .fastmatch-route.fastmatch-index .fastmatch-filters .card-body {
    padding: 1rem !important;
  }

  .fastmatch-route.fastmatch-index .fastmatch-filters .form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .fastmatch-route.fastmatch-index #filter_game_help {
    display: none;
  }
}

.fastmatch-route.fastmatch-index .fastmatch-filters.card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

.fastmatch-route.fastmatch-index .fastmatch-index__title i {
  opacity: 0.85;
}

/* Cartes grille FastMatch — CTA déjà plein largeur : léger relief sobre */
body.spotd-theme-drafted .fastmatch-route .fastmatch-card--grid {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22) !important;
}

body.spotd-theme-drafted .fastmatch-route .fastmatch-card--grid:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28) !important;
}

/* -------------------------------------------------------------------------- */
/* 4. Détail FastMatch — onglets scrollables propres sur petit écran           */
/* -------------------------------------------------------------------------- */
.fastmatch-detail-route #fastmatch-tabs {
  gap: 0.35rem !important;
  padding-bottom: 0.5rem !important;
}

@media (max-width: 767.98px) {
  .fastmatch-detail-route .fastmatch-detail-tabs .nav-link {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  .fastmatch-detail-header-wrap {
    top: 5.5rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* 5. Paramètres utilisateur (espace membre) — onglets moins « pill géant »    */
/* -------------------------------------------------------------------------- */
.spotd-settings-shell #settingsMainTabs {
  row-gap: 0.5rem !important;
}

.spotd-settings-shell #settingsMainTabs .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82) !important;
}

.spotd-settings-shell #settingsMainTabs .nav-link.active {
  background: rgba(124, 92, 255, 0.2) !important;
  border-color: rgba(167, 139, 250, 0.35) !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .spotd-settings-shell #settingsMainTabs .nav-link {
    width: 100%;
    justify-content: flex-start;
  }
}

/* -------------------------------------------------------------------------- */
/* 6. Sidebar dashboard — groupes + sous-liens (même logique que la navbar)    */
/* -------------------------------------------------------------------------- */
.spotd-dash-sidebar__link {
  border-radius: 10px;
  padding: 0.45rem 0.65rem !important;
}

.spotd-dash-sidebar__list .spotd-dash-sidebar__group-head {
  list-style: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.35rem 0.65rem 0.15rem;
  margin: 0;
}

.spotd-dash-sidebar__link--sub {
  font-size: 0.88rem !important;
  padding-left: 1.15rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.spotd-dash-sidebar__link--sub.is-active {
  color: #fff !important;
}

.spotd-offcanvas__section-label {
  letter-spacing: 0.06em;
  font-size: 0.65rem !important;
  margin-top: 0.5rem;
}
