/* ==========================================================================
   GAS Product Widget Styles - Système Shop GAS
   Styles de base réutilisables uniquement
   ========================================================================== */

/* Container principal */
.gas-shop-widget-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.gas-shop-widget-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Options de centrage */
.gas-shop-widget-centered {
    margin: 0 auto;
}

.gas-shop-widget-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.gas-shop-widget-wrapper--full-height {
    min-height: 400px;
}

.gas-shop-widget-wrapper--background {
    background: #f8f9fa;
    border-radius: 12px;
}

/* Image */
.gas-shop-widget-image {
    overflow: hidden;
}

.gas-shop-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu */
.gas-shop-widget-content {
    display: flex;
    flex-direction: column;
}

.gas-shop-widget-title {
    margin: 0 0 10px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
}

.gas-shop-widget-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gas-shop-widget-title a:hover {
    color: #007cba;
}

.gas-shop-widget-description {
    margin: 0 0 15px 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Section Prix */
.gas-shop-widget-price-section {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Liste des variantes */
.gas-shop-widget-variants-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.gas-shop-widget-variants-title {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.gas-shop-widget-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.gas-shop-widget-variant-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gas-shop-widget-variant-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gas-shop-widget-variant-icon {
    font-size: 1.1rem;
}

.gas-shop-widget-variant-name {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.gas-shop-widget-variant-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.gas-shop-widget-price-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gas-shop-widget-pricing-badge {
    display: flex;
    justify-content: flex-end;
}

.gas-shop-widget-pricing-badge-item {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
}

.gas-shop-widget-pricing-badge-membre {
    background: #e3f2fd;
    color: #1565c0;
}

.gas-shop-widget-pricing-badge-hypnopass {
    background: #fff3cd;
    color: #856404;
}

.gas-shop-widget-price-free,
.gas-shop-widget-price-current {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gas-shop-widget-price-free-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.gas-shop-widget-price-current-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007cba;
}

.gas-shop-widget-price-original {
    font-size: 0.95rem;
    color: #999;
}

.gas-shop-widget-price-original del {
    text-decoration: line-through;
}

.gas-shop-widget-member-badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.gas-shop-widget-savings {
    color: #28a745;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Actions */
.gas-shop-widget-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Boutons */
.gas-shop-widget-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.gas-shop-widget-btn-primary {
    background: #007cba;
    color: white;
}

.gas-shop-widget-btn-primary:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
}

.gas-shop-widget-btn-secondary {
    background: #6c757d;
    color: white;
}

.gas-shop-widget-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.gas-shop-widget-btn-add-to-cart {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #28a745;
    color: white;
    font-size: 1rem;
    width: 100%;
}

.gas-shop-widget-btn-add-to-cart:hover {
    background: #218838;
    transform: translateY(-1px);
}

.gas-shop-widget-btn-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.gas-shop-widget-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    padding: 8px 0;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.gas-shop-widget-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Titre principal du widget LearningPass */
.gas-shop-widget-learningpass-main-title {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #007cba;
    color: #007cba;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.gas-shop-widget-learningpass--compact .gas-shop-widget-learningpass-main-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.gas-shop-widget-learningpass--horizontal .gas-shop-widget-learningpass-main-title {
    grid-column: 1 / -1;
    margin-bottom: 15px;
}

/* Styles pour le renouvellement du LearningPass */
.gas-shop-widget-learningpass-renewal-available {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.gas-shop-widget-learningpass-renewal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffc107;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.gas-renewal-icon {
    font-size: 20px;
    animation: rotate-icon 2s linear infinite;
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gas-renewal-info-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.gas-renewal-current-pass {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.gas-renewal-current-pass strong {
    color: #664d03;
}

.gas-renewal-encourage {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: #155724;
    font-weight: 600;
    font-size: 15px;
}

.gas-check-icon {
    display: inline-block;
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    flex-shrink: 0;
}

.gas-renewal-benefit {
    margin: 10px 0 0 0;
    color: #0c5460;
    font-size: 13px;
    font-style: italic;
    padding: 8px;
    background: rgba(23, 162, 184, 0.1);
    border-left: 3px solid #17a2b8;
    border-radius: 4px;
}

.gas-pass-renewal-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 6px;
    color: #0c5460;
    font-size: 13px;
}

.gas-info-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Style compact pour renouvellement */
.gas-shop-widget-learningpass-renewal-compact .gas-renewal-info-box {
    padding: 10px;
}

.gas-shop-widget-learningpass-renewal-compact .gas-renewal-current-pass {
    font-size: 12px;
    margin-bottom: 6px;
}

.gas-shop-widget-learningpass-renewal-compact .gas-renewal-encourage {
    font-size: 13px;
}

/* Badge simple et discret pour "déjà possédé" */
.gas-shop-widget-learningpass-already-owned-simple {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 15px 0;
}

.gas-shop-widget-learningpass-badge-simple {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gas-badge-icon-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.gas-badge-text-simple {
    color: #2e7d32;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* Amélioration du badge "déjà possédé" (ancien style conservé pour compatibilité) */
.gas-shop-widget-learningpass-already-owned {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.gas-shop-widget-learningpass-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.gas-shop-widget-learningpass-already-owned p {
    margin: 8px 0;
    color: #155724;
    line-height: 1.6;
}

.gas-shop-widget-learningpass-already-owned p strong {
    color: #0a3622;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .gas-shop-widget-container {
        border-radius: 8px;
    }
    
    .gas-shop-widget-learningpass-already-owned-simple {
        padding: 12px 16px;
    }
    
    .gas-badge-text-simple {
        font-size: 14px;
    }
    
    .gas-badge-icon-simple {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .gas-shop-widget-learningpass-renewal-available {
        padding: 15px;
    }
    
    .gas-shop-widget-learningpass-renewal-badge {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .gas-renewal-info-box {
        padding: 12px;
    }
    
    .gas-renewal-current-pass {
        font-size: 13px;
    }
    
    .gas-renewal-encourage {
        font-size: 14px;
    }
    
    .gas-shop-widget-variant-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gas-shop-widget-variant-price {
        align-items: flex-start;
        width: 100%;
    }
    
    .gas-shop-widget-pricing-badge {
        justify-content: flex-start;
    }
    
    .gas-shop-widget-price-display {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .gas-shop-widget-wrapper {
        padding: 15px;
    }
}