/* ═══════════════════════════════════════════════════════════════
   mobile-reel.css
   Style mobile inspiré du Reel Instagram — Topps Chrome F1 2025
   Appliqué sur ≤600px
   Topps Chrome F1 2025 — Collection Tracker
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ═══════════════════════════════════════════════════════════════
   OVERRIDE VARIABLES CSS — Force dark mode sur mobile ≤600px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root, [data-theme="light"], [data-theme=""] {
    --bg:        #080808 !important;
    --s1:        #0d0d0d !important;
    --s2:        #141414 !important;
    --s3:        #1a1a1a !important;
    --s4:        #202020 !important;
    --border:    rgba(255,255,255,0.07) !important;
    --border2:   rgba(255,255,255,0.12) !important;
    --t1:        #ffffff !important;
    --t2:        rgba(255,255,255,0.65) !important;
    --t3:        rgba(255,255,255,0.3) !important;
    --text:      #ffffff !important;
    --sub:       rgba(255,255,255,0.4) !important;
    --dim:       rgba(255,255,255,0.2) !important;
    --card-bg:   #0d0d0d !important;
    --card-border: rgba(255,255,255,0.07) !important;
    --header-bg: rgba(8,8,8,0.96) !important;
    --shadow:    0 4px 24px rgba(0,0,0,0.6) !important;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4) !important;
  }
}



@media (max-width: 600px) {

  /* ─── Palette dark Reel ─── */
  :root {
    --reel-bg:      #080808;
    --reel-card:    #141414;
    --reel-card-hl: #1a0408;
    --reel-border:  rgba(255, 255, 255, 0.06);
    --reel-red:     #E6001E;
    --reel-t1:      #ffffff;
    --reel-t2:      rgba(255, 255, 255, 0.55);
    --reel-t3:      rgba(255, 255, 255, 0.28);
  }

  /* ═══════════════════════════════════════
     FOND & LAYOUT GLOBAL
  ═══════════════════════════════════════ */

  body {
    background: var(--reel-bg) !important;
  }

  body::before { display: none !important; }

  main {
    padding: 12px 10px 80px !important;
  }

  /* ═══════════════════════════════════════
     HEADER
  ═══════════════════════════════════════ */

  header {
    background: rgba(8, 8, 8, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
  }

  .h-logo {
    background: linear-gradient(135deg, #ffffff 30%, var(--reel-red)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .h-search input {
    background: #141414 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
  }

  .h-search input:focus {
    border-color: rgba(230, 0, 30, 0.4) !important;
  }

  /* ═══════════════════════════════════════
     BOTTOM NAV
  ═══════════════════════════════════════ */

  .mobile-bottom-nav {
    background: rgba(8, 8, 8, 0.97) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
  }

  .mbn-btn {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--reel-t3) !important;
  }

  .mbn-btn svg { stroke: var(--reel-t3) !important; }

  .mbn-btn.active {
    color: var(--reel-red) !important;
  }

  .mbn-btn.active svg { stroke: var(--reel-red) !important; }

  /* ═══════════════════════════════════════
     PROGRESS SECTION
  ═══════════════════════════════════════ */

  .progress-section {
    background: var(--reel-card) !important;
    border: 1px solid var(--reel-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  /* Ligne haute : label + pourcentage */
  .progress-section {
    flex-wrap: wrap !important;
  }

  .progress-label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 3px !important;
    color: var(--reel-t3) !important;
    text-transform: uppercase !important;
    flex: 1 !important;
  }

  .progress-track {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-radius: 2px !important;
    flex: none !important;
    width: 100% !important;
    order: 3 !important;
  }

  .progress-fill {
    background: var(--reel-red) !important;
    box-shadow: 0 0 8px rgba(230, 0, 30, 0.45) !important;
    border-radius: 2px !important;
  }

  .progress-pct {
    font-family: 'Bebas Neue', 'Orbitron', sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--reel-red) !important;
    line-height: 1 !important;
  }

  /* ═══════════════════════════════════════
     TITRES SECTION
  ═══════════════════════════════════════ */

  .section-title {
    font-family: 'Bebas Neue', 'Orbitron', sans-serif !important;
    font-size: 20px !important;
    letter-spacing: 2px !important;
    color: var(--reel-t1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
  }

  .sec-head { margin-bottom: 10px !important; }

  .sec-title {
    font-family: 'Bebas Neue', 'Orbitron', sans-serif !important;
    font-size: 18px !important;
    letter-spacing: 2px !important;
    color: var(--reel-t1) !important;
  }

  .sec-count {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    color: var(--reel-t3) !important;
  }

  .sec-line { background: rgba(255, 255, 255, 0.06) !important; }

  /* ═══════════════════════════════════════
     TABS
  ═══════════════════════════════════════ */

  .tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    gap: 0 !important;
    margin-bottom: 14px !important;
  }

  .tab-btn {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--reel-t3) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
  }

  .tab-btn.active {
    color: var(--reel-t1) !important;
    border-bottom-color: var(--reel-red) !important;
    background: transparent !important;
  }

  /* ═══════════════════════════════════════
     GRILLE → LISTE DE LIGNES
  ═══════════════════════════════════════ */

  .card-grid,
  .cards-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  /* ─── Carte individuelle → ligne horizontale ─── */
  .card-item {
    flex-direction: row !important;
    align-items: center !important;
    padding: 10px 12px 10px 14px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    background: var(--reel-card) !important;
    border: 1px solid var(--reel-border) !important;
    box-shadow: none !important;
    min-height: 60px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.2s, border-color 0.2s !important;
  }

  .card-item:hover,
  .card-item:active {
    transform: none !important;
    background: #1a1a1a !important;
    border-color: rgba(230, 0, 30, 0.2) !important;
    box-shadow: none !important;
  }

  .card-item.owned {
    background: var(--reel-card-hl) !important;
    border-color: rgba(230, 0, 30, 0.22) !important;
    box-shadow: none !important;
  }

  .card-item.owned:hover {
    background: #1f060b !important;
    border-color: rgba(230, 0, 30, 0.35) !important;
    box-shadow: none !important;
  }

  /* ─── Barre colorée gauche (owned) ─── */
  .card-stripe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 2.5px !important;
    height: 100% !important;
    border-radius: 2px 0 0 2px !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
  }

  .card-item.owned .card-stripe {
    opacity: 1 !important;
    background: var(--reel-red) !important;
  }

  /* ─── Photo → mini vignette ─── */
  .card-photo-wrap {
    width: 36px !important;
    height: 48px !important;
    aspect-ratio: unset !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    overflow: hidden !important;
  }

  .card-photo-wrap img {
    border-radius: 5px !important;
    object-fit: cover !important;
  }

  /* Placeholder simplifié : juste une icône */
  .card-photo-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
    gap: 0 !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.15) !important;
  }

  .card-photo-placeholder svg { display: none !important; }

  .card-photo-placeholder span {
    font-size: 0 !important;
  }

  .card-photo-placeholder span::before {
    content: '🏎️';
    font-size: 18px;
  }

  /* Masquer boutons upload/delete sur mobile */
  .card-upload-btn,
  .card-del-btn { display: none !important; }

  /* ─── Corps de la carte ─── */
  .card-body {
    flex: 1 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  /* Numéro */
  .card-num {
    font-family: 'Bebas Neue', 'Orbitron', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--reel-t3) !important;
    letter-spacing: 1px !important;
    margin-bottom: 1px !important;
  }

  /* Nom du joueur */
  .card-name {
    font-family: 'Barlow', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--reel-t1) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 1px !important;
  }

  /* Équipe */
  .card-team {
    font-family: 'Barlow', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--reel-t3) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }

  /* Badges (RC, Insert, etc.) */
  .card-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin: 3px 0 0 !important;
  }

  .badge {
    font-size: 8px !important;
    padding: 1px 5px !important;
    letter-spacing: 0.5px !important;
  }

  /* Dots parallèles */
  .par-dots {
    margin-top: 3px !important;
    gap: 3px !important;
  }

  .par-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .par-owned-lbl {
    font-size: 8px !important;
    letter-spacing: 0.5px !important;
    color: var(--reel-t3) !important;
    margin-top: 2px !important;
  }

  /* Indicateurs wishlist / double */
  .card-wish-indicators {
    position: absolute !important;
    top: 7px !important;
    right: 46px !important;
    gap: 3px !important;
    flex-direction: column !important;
  }

  .wi {
    font-size: 7px !important;
    padding: 1px 5px !important;
    letter-spacing: 0.5px !important;
  }

  /* ═══════════════════════════════════════
     BOUTON POSSÉDER → CERCLE ANIMÉ
  ═══════════════════════════════════════ */

  .own-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    font-size: 0 !important;
    color: transparent !important;
    position: relative !important;
    transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease !important;
    cursor: pointer !important;
  }

  /* État : non possédée (cercle vide) */
  .own-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
  }

  /* État : possédée (cercle rouge + coche) */
  .card-item.owned .own-btn {
    background: var(--reel-red) !important;
    border-color: var(--reel-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 30, 0.18) !important;
    animation: ownedPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .card-item.owned .own-btn::after {
    content: '';
    width: 10px;
    height: 6px;
    border-radius: 0;
    background: transparent;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
  }

  @keyframes ownedPop {
    0%   { transform: scale(0.75); }
    55%  { transform: scale(1.18); }
    100% { transform: scale(1); }
  }

  /* ═══════════════════════════════════════
     FILTRES NAV (barre sous header)
  ═══════════════════════════════════════ */

  .nav-filters {
    background: rgba(8, 8, 8, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .nav-filter-btn {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--reel-t3) !important;
    border-radius: 6px !important;
  }

  .nav-filter-btn.active {
    background: rgba(230, 0, 30, 0.12) !important;
    border-color: rgba(230, 0, 30, 0.35) !important;
    color: var(--reel-red) !important;
  }

  /* ═══════════════════════════════════════
     ÉTATS VIDES
  ═══════════════════════════════════════ */

  .empty-state {
    background: var(--reel-card) !important;
    border: 1px solid var(--reel-border) !important;
    border-radius: 14px !important;
    padding: 36px 20px !important;
  }

  .empty-icon { font-size: 32px !important; }

  .empty-txt {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    color: var(--reel-t3) !important;
    text-transform: uppercase !important;
  }

  /* ═══════════════════════════════════════
     TOAST
  ═══════════════════════════════════════ */

  #toast,
  .toast {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--reel-t1) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 1px !important;
    border-radius: 10px !important;
  }

  #toast.ok,
  .toast.ok {
    border-color: rgba(230, 0, 30, 0.4) !important;
    color: var(--reel-red) !important;
  }

  /* ═══════════════════════════════════════
     BOUTON AJOUTER CARTE
  ═══════════════════════════════════════ */

  .btn-add-card button,
  .btn-add-card {
    background: rgba(230, 0, 30, 0.1) !important;
    border: 1px solid rgba(230, 0, 30, 0.3) !important;
    color: var(--reel-red) !important;
    border-radius: 10px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
  }

  /* ═══════════════════════════════════════
     SCROLL & FOND GÉNÉRAL
  ═══════════════════════════════════════ */

  #appMain { background: var(--reel-bg) !important; }

  #app { background: var(--reel-bg) !important; }

} /* fin @media 600px */
