/**
 * Styles pour l'onglet Mon Compte
 */

.spm-my-account-subscription {
    max-width: 800px;
}

.spm-my-account-subscription h2 {
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #333;
}

/* Abonnement actif */
.spm-subscription-active {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.spm-subscription-status {
    text-align: center;
    margin-bottom: 25px;
}

.spm-subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.spm-detail-row {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.spm-detail-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spm-detail-value {
    font-size: 18px;
    color: #007cba;
    font-weight: 700;
}

.spm-detail-value .spm-warning {
    color: #dc3545;
    animation: spm-blink 1.5s infinite;
}

@keyframes spm-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Rappel de renouvellement */
.spm-renewal-reminder {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.spm-renewal-reminder p {
    margin: 5px 0;
    color: #856404;
}

/* Abonnement expiré */
.spm-subscription-expired {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.spm-subscription-expired p {
    color: #721c24;
    font-size: 16px;
    line-height: 1.6;
}

/* Pas d'abonnement */
.spm-no-subscription {
    background: #e9ecef;
    border: 2px solid #6c757d;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.spm-no-subscription p {
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

/* Actions d'abonnement */
.spm-subscription-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.spm-renew-button {
    background: linear-gradient(135deg, #28a745 0%, #20c936 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spm-renew-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.spm-booking-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spm-booking-button:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 124, 186, 0.4);
}

/* Les boutons utilisent maintenant les styles du thème via les classes .button et .alt */

/* Avantages membres */
.spm-member-benefits {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.spm-member-benefits h3 {
    color: #007cba;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.spm-member-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spm-member-benefits li {
    padding: 8px 0;
    color: #28a745;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
}

.spm-member-benefits li:last-child {
    border-bottom: none;
}

/* Historique des commandes */
.spm-subscription-history {
    margin-top: 40px;
}

.spm-subscription-history h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.spm-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spm-orders-table th,
.spm-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.spm-orders-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.spm-orders-table tr:hover {
    background: #f8f9fa;
}

.spm-orders-table .button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 15px;
}

/* Widget tableau de bord */
.spm-dashboard-widget {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.spm-dashboard-widget h3 {
    color: #155724;
    margin-top: 0;
    margin-bottom: 15px;
}

.spm-dashboard-widget p {
    margin: 8px 0;
    color: #155724;
}

.spm-dashboard-widget a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.spm-dashboard-widget a:hover {
    text-decoration: underline;
}

/* Styles pour les abonnements multiples */
.spm-subscriptions-section {
    margin-bottom: 40px;
    position: relative;
}

.spm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
}

.spm-active-section .spm-section-header {
    border-bottom-color: #28a745;
}

.spm-scheduled-section .spm-section-header {
    border-bottom-color: #ffc107;
}

.spm-section-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
}

.spm-count-badge {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.spm-active-section .spm-count-badge {
    background: #28a745;
}

.spm-scheduled-section .spm-count-badge {
    background: #ffc107;
    color: #212529;
}

.spm-subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.spm-subscription-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spm-subscription-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.spm-subscription-card.spm-active {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.spm-subscription-card.spm-scheduled {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffeaa7 100%);
}

.spm-subscription-card.spm-multiple {
    border-left: 6px solid;
}

.spm-subscription-card.spm-active.spm-multiple {
    border-left-color: #28a745;
}

.spm-subscription-card.spm-scheduled.spm-multiple {
    border-left-color: #ffc107;
}

.spm-card-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #007cba;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.spm-subscription-card.spm-active .spm-card-number {
    background: #28a745;
}

.spm-subscription-card.spm-scheduled .spm-card-number {
    background: #ffc107;
    color: #212529;
}

.spm-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spm-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spm-status-badge.spm-active {
    background: #28a745;
    color: white;
}

.spm-status-badge.spm-scheduled {
    background: #ffc107;
    color: #212529;
}

.spm-duration {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.spm-subscription-details {
    margin-bottom: 15px;
}

.spm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spm-detail-row:last-child {
    border-bottom: none;
}

.spm-detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.spm-detail-value {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
}

.spm-scheduled-notice {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 10px;
    margin: 10px 0 0 0;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #0c5460;
    font-weight: 500;
}

/* Statut global */
.spm-global-status {
    margin-bottom: 30px;
}

.spm-status-summary {
    background: white;
    border: 2px solid;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.spm-status-summary.spm-active {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.spm-status-summary.spm-scheduled {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffeaa7 100%);
}

.spm-status-summary.spm-expired {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.spm-status-summary p {
    margin: 10px 0 0 0;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .spm-subscription-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .spm-subscription-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .spm-subscription-actions .button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .spm-orders-table {
        font-size: 14px;
    }
    
    .spm-orders-table th,
    .spm-orders-table td {
        padding: 8px 10px;
    }
    
    .spm-orders-table th:nth-child(3),
    .spm-orders-table td:nth-child(3) {
        display: none;
    }
    
    .spm-subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .spm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .spm-section-header h3 {
        font-size: 1.2em;
    }
    
    .spm-subscription-card {
        padding: 15px;
    }
    
    .spm-card-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
} 