/**
 * Customer Loyalty Module - Front Office CSS
 * Compatible PrestaShop 8.2
 * 
 * Style VIP élégant pour l'affichage du statut client
 */

/* ==========================================
   CARTE VIP - CONTENEUR PRINCIPAL
   ========================================== */

.customer-loyalty-status-vip {
    margin: 20px 0 30px 0;
    padding: 0;
}

.vip-card {
    position: relative;
    margin: 0 auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vip-card:hover {
    transform: translateY(-5px);
}

/* ==========================================
   OMBRES PERSONNALISÉES PAR NIVEAU
   ========================================== */

.vip-card.vip-silver {
    box-shadow: 
        0 10px 40px rgba(192, 192, 192, 0.4),
        0 0 0 1px rgba(192, 192, 192, 0.2);
}

.vip-card.vip-gold {
    box-shadow: 
        -1px 9px 23px 12px rgba(210, 157, 93, 0.44),
        0 0 0 1px rgba(201, 162, 39, 0.3);
}

.vip-card.vip-platinium {
    box-shadow: 
        0 10px 40px rgba(120, 120, 140, 0.5),
        0 0 0 1px rgba(180, 180, 200, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ==========================================
   BADGE / ICÔNE
   ========================================== */

.vip-badge {
    position: relative;
    margin-bottom: 15px;
}

.vip-badge-img {
    width: 140px !important;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.vip-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
}

/* Masquer l'emoji si l'image est chargée */
.vip-badge-img + .vip-icon {
    display: none;
}

.vip-badge-img[style*="display: none"] + .vip-icon {
    display: block;
}

/* ==========================================
   CONTENU TEXTUEL
   ========================================== */

.vip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vip-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888888;
    font-weight: 500;
}

.vip-rank {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1.2;
}

.vip-message {
    font-size: 13px;
    color: #666666;
    max-width: 280px;
    line-height: 1.5;
    margin-top: 5px;
}

/* ==========================================
   COULEURS PAR NIVEAU
   ========================================== */

/* Silver */
.vip-silver .vip-rank {
    background: linear-gradient(135deg, #a8a8a8 0%, #c0c0c0 50%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-silver .vip-icon {
    color: #a8a8a8;
}

/* Gold */
.vip-gold .vip-rank {
    background: linear-gradient(135deg, #c9a227 0%, #ffd700 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-gold .vip-icon {
    color: #c9a227;
}

/* Platinium */
.vip-platinium .vip-rank {
    background: linear-gradient(135deg, #666680 0%, #a0a0b0 50%, #666680 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-platinium .vip-icon {
    color: #8888a0;
}

/* ==========================================
   EFFET DE BRILLANCE ANIMÉ
   ========================================== */

.vip-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.vip-card:hover .vip-shine {
    animation: vip-shine-effect 0.8s ease-out forwards;
}

@keyframes vip-shine-effect {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* ==========================================
   BORDURE DÉCORATIVE
   ========================================== */

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.vip-silver::before {
    background: linear-gradient(90deg, #a8a8a8, #c0c0c0, #d8d8d8, #c0c0c0, #a8a8a8);
}

.vip-gold::before {
    background: linear-gradient(90deg, #c9a227, #ffd700, #ffe55c, #ffd700, #c9a227);
}

.vip-platinium::before {
    background: linear-gradient(90deg, #606080, #a0a0b0, #c0c0d0, #a0a0b0, #606080);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .vip-card {
        margin: 0 10px;
        padding: 20px;
    }
    
    .vip-badge-img {
        width: 100px !important;
    }
    
    .vip-icon {
        font-size: 36px;
    }
    
    .vip-rank {
        font-size: 22px;
        letter-spacing: 4px;
    }
    
    .vip-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .customer-loyalty-status-vip {
        margin: 15px 0;
    }
    
    .vip-card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .vip-badge-img {
        width: 80px !important;
    }
    
    .vip-rank {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .vip-label {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* ==========================================
   ANIMATION D'ENTRÉE
   ========================================== */

.customer-loyalty-status-vip {
    animation: vip-fade-in 0.6s ease-out;
}

@keyframes vip-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FALLBACK POUR ANCIENS NAVIGATEURS
   ========================================== */

@supports not (background-clip: text) {
    .vip-silver .vip-rank {
        color: #a8a8a8;
    }
    
    .vip-gold .vip-rank {
        color: #c9a227;
    }
    
    .vip-platinium .vip-rank {
        color: #666680;
    }
}
