/**
 * Styles pour la page frontend Mon Abonnement
 */

.gfm-frontend-subscription-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Page Header */
.gfm-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.gfm-page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.gfm-page-header p {
    font-size: 16px;
    color: #666;
}

/* Statut Card */
.gfm-status-section {
    margin-bottom: 40px;
}

.gfm-status-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 30px;
    border-left: 6px solid #2196F3;
}

.gfm-status-card.active {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e9 100%);
}

.gfm-status-card.suspended {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
}

.gfm-status-icon {
    font-size: 64px;
    line-height: 1;
}

.gfm-status-content {
    flex: 1;
}

.gfm-status-content h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.gfm-status-content p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Alerts */
.gfm-alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
}

.gfm-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.gfm-alert.danger {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Boutons */
.gfm-btn-primary,
.gfm-btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gfm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gfm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.gfm-btn-primary.large {
    padding: 16px 40px;
    font-size: 18px;
}

.gfm-btn-secondary {
    background: white;
    color: #667eea !important;
    border: 2px solid #667eea;
}

.gfm-btn-secondary:hover {
    background: #667eea;
    color: white !important;
}

.gfm-status-actions {
    margin-top: 20px;
}

.gfm-status-actions .hint {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Grille principale */
.gfm-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Cartes */
.gfm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.gfm-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gfm-card-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfm-icon {
    font-size: 24px;
}

.gfm-card-body {
    padding: 25px;
}

/* Détails */
.gfm-detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gfm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gfm-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gfm-detail-row .label {
    color: #666;
    font-size: 14px;
}

.gfm-detail-row .value {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.gfm-detail-row .value.strong {
    font-weight: 700;
    color: #667eea;
}

/* Site Box */
.gfm-site-box {
    text-align: center;
}

.gfm-site-url {
    margin-bottom: 15px;
}

.gfm-site-url a {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.gfm-site-url a:hover {
    text-decoration: underline;
}

.gfm-site-status {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge.success {
    background: #d1e7dd;
    color: #0f5132;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.pending {
    background: #e2e3e5;
    color: #41464b;
}

.gfm-site-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Historique */
.gfm-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gfm-order-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 120px auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gfm-order-date {
    font-size: 14px;
    color: #666;
}

.gfm-order-number {
    font-size: 14px;
    color: #333;
}

.gfm-order-total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.gfm-order-action a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.gfm-order-action a:hover {
    text-decoration: underline;
}

/* Empty State */
.gfm-no-subscription,
.gfm-login-required {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gfm-empty-icon,
.gfm-login-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.gfm-no-subscription h2,
.gfm-login-required h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.gfm-no-subscription p,
.gfm-login-required p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .gfm-frontend-subscription-wrap {
        padding: 0 15px;
    }
    
    .gfm-page-header h1 {
        font-size: 28px;
    }
    
    .gfm-status-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .gfm-status-icon {
        font-size: 48px;
    }
    
    .gfm-main-grid {
        grid-template-columns: 1fr;
    }
    
    .gfm-order-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gfm-site-actions {
        flex-direction: column;
    }
    
    .gfm-btn-secondary {
        width: 100%;
    }
}

/* Sélecteur de produit */
.gfm-product-selector {
    width: 100%;
    padding: 18px 50px 18px 18px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23333' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    min-height: 56px;
    height: auto;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
}

.gfm-product-selector option {
    padding: 12px;
    font-size: 16px;
    line-height: 1.6;
    white-space: normal;
}

.gfm-product-selector:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.gfm-product-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Message de changement */
.gfm-change-message {
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    animation: gfmSlideDown 0.4s ease-out;
}

@keyframes gfmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gfm-change-message strong {
    font-weight: 600;
}

.gfm-change-message ul {
    margin: 0;
    padding-left: 20px;
}

.gfm-change-message li {
    margin-bottom: 8px;
}

/* Section de renouvellement */
.gfm-renewal-section h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}
