/**
 * Styles frontend VIP P&C
 */

/* Badge VIP sur les prix */
.vip-pc-badge {
    display: block;
    background: linear-gradient(135deg, #6cac4d 0%, #4a8c35 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7em;
    font-weight: bold;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
}

/* Badge VIP sur les pages produit (single product) */
.single-product .vip-pc-badge {
    font-size: 17px;
    margin-top: 10px;
    margin-left: 0;
    margin-right: auto;
}

/* Ligne de réduction VIP dans le mini-cart */
.woocommerce-mini-cart__vip-discount {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 10px;
}

.woocommerce-mini-cart__vip-discount strong {
    color: #333;
}

/* Message VIP dans le panier */
.vip-pc-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 4px solid #764ba2;
    color: white;
    margin-bottom: 20px;
}

.vip-pc-message strong {
    font-size: 16px;
}

/* Avantages sur la page produit VIP */
.vip-pc-benefits {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.vip-pc-benefits h3 {
    margin-top: 0;
    color: #333;
}

.vip-benefits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.vip-benefits-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.vip-benefits-list li:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 24px;
    margin-right: 15px;
}

.vip-duration {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

/* Mon Compte - Statut VIP */
.vip-pc-my-account {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.vip-status-header {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vip-status-header.vip-active {
    background: linear-gradient(135deg, #009688 0%, #8BC34A 100%);
    color: white;
}

.vip-status-header.vip-inactive {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.vip-status-header h2 {
    margin: 0 0 10px 0;
}

.vip-pc-status-title {
    color: #ffffff !important;
}

.vip-status-badge {
    font-size: 14px;
    opacity: 0.9;
}

/* Informations d'expiration */
.vip-expiry-info {
    text-align: center;
    margin-bottom: 30px;
}

.expiry-box {
    display: inline-block;
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px 30px;
    border-radius: 8px;
}

/* Grille des avantages */
.vip-benefits-section {
    margin: 30px 0;
}

.vip-benefits-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-card .benefit-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.benefit-card h4 {
    margin: 10px 0;
    color: #333;
}

.benefit-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Prix */
.vip-pricing {
    text-align: center;
    margin: 30px 0;
}

.price-box {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    min-width: 250px;
}

.price-amount {
    font-size: 48px;
    font-weight: bold;
}

.price-period {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.price-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.price-details li {
    padding: 5px 0;
}

/* Actions */
.vip-actions {
    text-align: center;
    margin: 30px 0;
}

.vip-actions .button {
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 50px;
}

/* Rappel de renouvellement */
.vip-renewal-reminder {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    text-align: center;
}

/* Badge dashboard */
.vip-pc-dashboard-badge {
    background: linear-gradient(135deg, #009688 0%, #8BC34A 100%);
    color: white;
    border-left-color: #CDDC39;
}

/* Responsive */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-pc-my-account {
        padding: 15px;
    }
    
    .vip-status-header {
        padding: 20px;
    }
}
