/* Styles spécifiques pour l'administration blog pro */

/* Header admin pro */
.admin-header-pro {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.admin-header-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.admin-header-content {
    position: relative;
    z-index: 2;
}

.admin-title-pro {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.admin-title-pro i {
    margin-right: 1rem;
    font-size: 2.5rem;
}

.admin-subtitle-pro {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
}

/* Cartes statistiques améliorées */
.stats-cards-pro {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card-pro {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--stat-color, #6366f1), var(--stat-color-secondary, #8b5cf6));
}

.stat-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-icon-pro {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.stat-content-pro h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #1e293b;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-content-pro p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

/* Filtres et recherche */
.filters-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filters-card .card-header {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0);
    border-bottom: 1px solid #cbd5e1;
    font-weight: 600;
    color: #334155;
    padding: 1.25rem 1.5rem;
}

.filters-card .card-body {
    padding: 1.5rem;
}

/* Table améliorée */
.admin-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.admin-table thead th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
    border: none;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.admin-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

/* Cellules spécifiques */
.post-title-cell-pro {
    max-width: 320px;
}

.post-title-cell-pro strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-image-preview-pro {
    width: 50px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-top: 0.75rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.author-info-pro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-pro {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.views-count-pro {
    font-weight: 600;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* Badges améliorés */
.badge-pro {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-pro i {
    font-size: 0.9rem;
}

/* Actions groupées */
.bulk-actions-pro {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Modal amélioré */
.modal-fullscreen-pro {
    max-width: 95vw;
    margin: 1.5rem auto;
}

.modal-content-pro {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header-pro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1.75rem 2rem;
    border: none;
}

.modal-title-pro {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-body-pro {
    padding: 2rem;
}

.card-pro {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header-pro {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #334155;
}

.card-body-pro {
    padding: 1.5rem;
}

/* SEO Preview */
.seo-preview-pro {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #cbd5e1;
}

.seo-result-pro {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
}

.seo-url-pro {
    color: #0ea5e9;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.seo-title-pro {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.seo-description-pro {
    color: #64748b;
    line-height: 1.4;
}

/* Formulaire amélioré */
.form-control-pro {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-pro:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: #fff;
}

.form-select-pro {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select-pro:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: #fff;
}

.form-label-pro {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Boutons améliorés */
.btn-pro {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-pro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-secondary-pro {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-secondary-pro:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-danger-pro {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Alertes améliorées */
.alert-pro {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success-pro {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-error-pro {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-title-pro {
        font-size: 2.2rem;
    }
    
    .stat-card-pro {
        padding: 1.5rem;
    }
    
    .stat-icon-pro {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-content-pro h3 {
        font-size: 1.8rem;
    }
    
    .bulk-actions-pro {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filters-card .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .admin-header-pro {
        padding: 1.5rem 0;
    }
    
    .admin-title-pro {
        font-size: 1.8rem;
    }
    
    .admin-title-pro i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    
    .stats-cards-pro {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card-pro {
        padding: 1.25rem;
    }
    
    .post-title-cell-pro {
        max-width: 200px;
    }
    
    .modal-fullscreen-pro {
        max-width: 98vw;
        margin: 0.5rem;
    }
    
    .modal-body-pro {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .post-title-cell-pro {
        max-width: 150px;
    }
    
    .author-info-pro {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .bulk-actions-pro select,
    .bulk-actions-pro button {
        width: 100%;
    }
}