/**
 * SPOTD — Alignement mockup_home.jpg
 * Navbar recherche centrée, carrousel logos jeux, barre filtres tournois
 */

/* -------------------------------------------------------------------------- */
/* Navbar — recherche type mockup (pilule sombre, icône à droite du placeholder) */
/* -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .spotd-nav__search {
    max-width: min(100%, 28rem);
    margin-left: auto;
    margin-right: auto;
  }
}

.spotd-nav__searchInner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(22, 22, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spotd-nav__searchInner:focus-within {
  border-color: rgba(122, 90, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(122, 90, 248, 0.12);
}

.spotd-nav__searchIcon {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.spotd-nav__searchInput {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.9rem;
  padding: 0 !important;
  box-shadow: none !important;
}

.spotd-nav__searchInput::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.spotd-nav__searchInput:focus {
  outline: none;
}

/* Log in = gris foncé bordé ; Sign up = violet mockup */
.spotd-nav__auth-link--login,
.spotd-nav__auth-link--signup {
  font-family: var(--spotd-font-button, "Jost", sans-serif);
  font-weight: 900;
  letter-spacing: 0.04em;
}

@media (min-width: 992px) {
  .spotd-nav__auth-link--login {
    padding: 0.45rem 1rem !important;
    border-radius: 10px !important;
    background: rgba(30, 30, 38, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .spotd-nav__auth-link--login:hover {
    background: rgba(40, 40, 50, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
  }

  .spotd-nav__auth-link--signup {
    padding: 0.45rem 1.15rem !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #7b61ff 0%, #6344e8 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(122, 90, 248, 0.35);
  }

  .spotd-nav__auth-link--signup:hover {
    filter: brightness(1.06);
    color: #fff !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero défaut — bandeau « Featured » façon slider mockup */
/* -------------------------------------------------------------------------- */
.spotd-home-hero--mockup .spotd-home-hero__eyebrow {
  letter-spacing: 0.12em;
}

.spotd-home-banner .swiper-pagination-bullet-active {
  background: #fff !important;
  opacity: 1 !important;
}

/* -------------------------------------------------------------------------- */
/* Carrousel logos jeux — « Browse by featured games » */
/* -------------------------------------------------------------------------- */
.spotd-home-games-carousel {
  position: relative;
}

.spotd-home-games-carousel .section-header-mockup {
  margin-bottom: 1.25rem;
}

.spotd-home-games-carousel .section-title-mockup {
  font-family: var(--spotd-font-title, "Valorant", sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: #fff;
  margin: 0;
}

.spotd-home-games-swiper-wrap {
  position: relative;
  padding: 0 2.5rem;
}

.spotd-home-games-swiper .swiper-slide {
  height: auto;
}

.spotd-home-game-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(22, 22, 31, 0.65);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.spotd-home-game-logo-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.spotd-home-game-logo-card.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(30, 30, 40, 0.9);
}

.spotd-home-game-logo-card img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15) opacity(0.92);
  transition: filter 0.2s ease;
}

.spotd-home-game-logo-card:hover img,
.spotd-home-game-logo-card.is-active img {
  filter: grayscale(0) brightness(1.05) opacity(1);
}

.spotd-home-game-logo-fallback {
  font-weight: 700;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}

.spotd-home-games-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 24, 0.9);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.spotd-home-games-nav:hover {
  background: rgba(122, 90, 248, 0.2);
  border-color: rgba(122, 90, 248, 0.35);
  color: #fff;
}

.spotd-home-games-prev {
  left: 0;
}

.spotd-home-games-next {
  right: 0;
}

@media (max-width: 575px) {
  .spotd-home-games-swiper-wrap {
    padding: 0 2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Section tournois accueil — filtres + compteur + recherche (mockup_home) */
/* -------------------------------------------------------------------------- */
.spotd-home-tournaments-mockup .spotd-home-tournaments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.spotd-home-tournaments-mockup .spotd-home-tournaments-title {
  font-family: var(--spotd-font-title, "Valorant", sans-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  color: #fff;
  margin: 0;
}

.spotd-home-tournaments-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.spotd-home-tournaments-filters__label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.spotd-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(30, 30, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.spotd-filter-chip:hover {
  border-color: rgba(122, 90, 248, 0.35);
  color: #fff;
}

.spotd-filter-chip__x {
  font-size: 0.65rem;
  opacity: 0.65;
}

.spotd-filter-clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a5af8 !important;
  text-decoration: none;
  margin-left: 0.35rem;
}

.spotd-filter-clear:hover {
  text-decoration: underline;
  color: #a78bfa !important;
}

.spotd-home-tournaments-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spotd-home-tournaments-count {
  font-size: 0.875rem;
  color: #94a3b8;
}

.spotd-home-tournaments-search {
  flex: 1 1 14rem;
  max-width: 20rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(22, 22, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotd-home-tournaments-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
}

.spotd-home-tournaments-search input::placeholder {
  color: #64748b;
}

.spotd-home-tournaments-search input:focus {
  outline: none;
}

.spotd-home-tournaments-search button {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Personnalisation UX — densité accueil (préférences utilisateur connecté)    */
/* -------------------------------------------------------------------------- */
.spotd-home--density-compact .spotd-home-section {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.spotd-home--density-compact .spotd-home-stats {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.spotd-home--density-compact .spotd-home-stat {
  padding: 1rem !important;
}

.spotd-home--density-full .spotd-home-section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
