/**
 * ==========================================================================
 * THEME STORE & SHOWCASE CAROUSEL (STYLE DÉCOUPLÉ - PALIER 0)
 * ==========================================================================
 * Ce fichier regroupe l'ensemble des styles visuels de la galerie de thèmes
 * et de prévisualisation smartphone pour le panneau d'administration.
 */

.theme-store-wrapper {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    box-sizing: border-box;
}

.theme-showcase-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.theme-showcase-track::-webkit-scrollbar {
    display: none;
}

.theme-showcase-card {
    flex: 0 0 240px;
    min-width: 240px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    user-select: none;
    box-sizing: border-box;
}

.theme-showcase-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.12);
}

.theme-showcase-card.selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 65%);
    box-shadow: 0 8px 22px -2px rgba(37, 99, 235, 0.18);
}

.theme-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.theme-tier-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-tier-badge.tier-free {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.theme-tier-badge.tier-pro {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #d8b4fe;
}

.theme-tier-badge.tier-vip {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.theme-tier-badge.tier-upcoming {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.theme-select-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-showcase-card.selected .theme-select-indicator {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Mockup Smartphone */
.theme-phone-mockup {
    width: 100%;
    height: 120px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease;
}

.theme-showcase-card:hover .theme-phone-mockup {
    border-color: #93c5fd;
}

.theme-showcase-card.selected .theme-phone-mockup {
    border-color: #bfdbfe;
    background: #ffffff;
}

.theme-mockup-notch {
    width: 26px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 3px auto 4px auto;
    flex-shrink: 0;
}

/* Mockup Content - Horizontal */
.mockup-horizontal-flow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 6px;
    flex: 1;
    overflow: hidden;
}

.mockup-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 3px;
}

.mockup-logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-nav-tabs-container {
    overflow: hidden;
    width: 100%;
    padding: 2px 0;
}

.mockup-nav-tabs {
    display: flex;
    gap: 4px;
    transition: transform 0.4s ease;
}

.theme-showcase-card:hover .mockup-nav-tabs {
    transform: translateX(-24px);
}

.mockup-tab-pill {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 600;
}

.mockup-tab-pill.active {
    background: #2563eb;
    color: #ffffff;
}

.mockup-food-cards {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.mockup-food-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-food-title {
    width: 50%;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.mockup-food-price {
    width: 18%;
    height: 4px;
    background: #94a3b8;
    border-radius: 2px;
}

/* Mockup Content - Popup */
.mockup-popup-flow {
    display: flex;
    flex-direction: column;
    padding: 0 6px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mockup-popup-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 4px;
}

.mockup-burger-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mockup-burger-icon span {
    width: 10px;
    height: 1.5px;
    background: #2563eb;
    border-radius: 1px;
}

.mockup-popup-overlay {
    position: absolute;
    inset: 0 4px 4px 4px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-showcase-card:hover .mockup-popup-overlay {
    opacity: 1;
    transform: scale(1);
}

.mockup-popup-link {
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mockup Content - Fullpage */
.mockup-fullpage-flow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 6px;
    flex: 1;
    overflow: hidden;
}

.mockup-hub-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.theme-showcase-card:hover .mockup-hub-btn {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateX(2px);
}

.mockup-hub-title {
    width: 45%;
    height: 4px;
    background: #64748b;
    border-radius: 2px;
}

.mockup-hub-arrow {
    color: #94a3b8;
    font-size: 0.5rem;
    font-weight: bold;
}

/* Theme Card Info & Footer */
.theme-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
    flex: 1;
}

.theme-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.theme-card-tagline {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

.theme-action-btn {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.theme-showcase-card.selected .theme-action-btn {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.theme-showcase-card:not(.selected) .theme-action-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.theme-showcase-card:not(.selected):hover .theme-action-btn {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

/* ==========================================================================
   Thèmes "Bientôt" (Upcoming) : Voile Grisé & État Désactivé
   ========================================================================== */
.theme-mockup-wrapper {
    position: relative;
    width: 100%;
}

.theme-showcase-card.is-upcoming {
    cursor: default;
    background: #fafafa;
}

.theme-showcase-card.is-upcoming:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.theme-showcase-card.is-upcoming .theme-phone-mockup {
    filter: grayscale(85%) opacity(0.55);
}

.theme-mockup-veil {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.65);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border: 1px dashed #cbd5e1;
    box-sizing: border-box;
}

.veil-lock-icon {
    font-size: 1.15rem;
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.theme-showcase-card.is-upcoming .theme-select-indicator {
    opacity: 0.3;
    border-color: #e2e8f0;
}

.theme-action-btn.btn-upcoming {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
    cursor: default !important;
    box-shadow: none !important;
}

