/**
 * Gestion Auteurs - CRM Éditeur
 * Styles pour les cards auteurs, avatars, KPIs et panneau détail
 */

/* === KPI Cards === */
.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}
.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}
.kpi-label {
    font-size: 0.78rem;
}

/* === Author Cards Grid === */
.auteurs-grid .col-12 {
    transition: transform 0.15s ease;
}
.auteur-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}
.auteur-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}
.auteur-card--active {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}

/* === Avatar === */
.auteur-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.auteur-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}
.auteur-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.auteur-detail-avatar.auteur-avatar--initials {
    font-size: 1.5rem;
}

/* === Stats row in card === */
.auteur-stats {
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.auteur-stats > div {
    flex: 1;
}

/* === Actions buttons === */
.auteur-actions .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
}

/* === Detail Panel === */
.auteur-detail-panel {
    border-radius: 12px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}
.auteur-detail-panel::-webkit-scrollbar {
    width: 4px;
}
.auteur-detail-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* === Timeline === */
.collab-timeline {
    padding-left: 4px;
}
.timeline-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 767.98px) {
    .kpi-value {
        font-size: 1.25rem;
    }
    .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .auteur-avatar {
        width: 40px;
        height: 40px;
    }
    .auteur-detail-avatar {
        width: 64px;
        height: 64px;
    }
    .auteur-actions {
        flex-wrap: wrap;
    }
    .auteur-actions .btn {
        font-size: 0.7rem;
    }
    .auteur-detail-panel {
        position: static !important;
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .auteur-stats {
        flex-wrap: wrap;
    }
    .auteur-stats > div {
        flex: 0 0 50%;
        margin-bottom: 4px;
    }
}
