/* My Membership Styles */

.dbp-my-membership-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Aucun membership */
.dbp-no-membership {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.dbp-no-membership .dbp-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.dbp-no-membership h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.dbp-no-membership p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Alertes */
.dbp-alert {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.dbp-alert-error {
    background: #ffeaea;
    border-color: #dc3232;
}

.dbp-alert-warning {
    background: #fff3cd;
    border-color: #f0b849;
}

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

.dbp-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.dbp-alert p {
    margin: 0;
    color: #666;
}

/* Card principale */
.dbp-membership-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.dbp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.dbp-card-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #fff;
}

.dbp-order-link {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.dbp-order-link a {
    color: #fff;
    text-decoration: underline;
}

.dbp-order-link a:hover {
    opacity: 0.8;
}

/* Badges de statut */
.dbp-status-badge {
    flex-shrink: 0;
    margin-left: 20px;
}

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

.dbp-badge-active {
    background: #eafaec;
    color: #46b450;
}

.dbp-badge-expired {
    background: #ffeaea;
    color: #dc3232;
}

/* Corps de la card */
.dbp-card-body {
    padding: 30px;
}

.dbp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dbp-info-item {
    display: flex;
    align-items: flex-start;
}

.dbp-info-item-full {
    grid-column: 1 / -1;
}

.dbp-info-icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.dbp-info-content {
    flex: 1;
}

.dbp-info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dbp-info-value {
    display: block;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Barre de progression */
.dbp-progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.dbp-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Historique des téléchargements */
.dbp-downloads-history {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

.dbp-downloads-history h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.dbp-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dbp-download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.dbp-download-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

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

.dbp-download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dbp-download-file {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.dbp-download-date {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .dbp-card-header {
        flex-direction: column;
    }
    
    .dbp-status-badge {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .dbp-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dbp-alert {
        flex-direction: column;
    }
    
    .dbp-alert-icon {
        margin-bottom: 10px;
    }
}
