/**
 * Xadija Store - Interface Client & Flux Reels (style.css)
 * S'appuie sur core.css pour les variables globales et le reset de base.
 */

/* En-tête flottant client */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

.app-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    object-fit: cover;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--primary);
}

/* Conteneur principal Reels (Défilement vertical snap) */
.reels-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.reels-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Carte Reel individuel */
.reel-card {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.reel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay d'informations sur le Reel */
.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 10%, rgba(11, 15, 25, 0.6) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reel-badge {
    align-self: flex-start;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.reel-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reel-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.reel-wholesale {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reel-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Actions (Bouton WhatsApp & Détails) */
.reel-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-whatsapp {
    flex: 2;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-details {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    padding: 14px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: background 0.2s, transform 0.2s;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Conteneur de page standard (pour article.php) */
.page-container {
    max-width: 600px;
    margin: 80px auto 30px auto;
    padding: 0 20px;
}