/**
 * Page Profil Auteur - Design centré style preview
 */

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.author-profile-page {
    background: var(--background, #0f172a);
    min-height: 100vh;
}

/* ==========================================================================
   AUTHOR HEADER
   ========================================================================== */

.author-header {
    padding: 3rem 0 2rem;
}

.author-header .container {
    max-width: 800px;
}

/* Card profil */
.author-card {
    background: var(--card, #1e293b);
    border: 1px solid var(--border, #334155);
    border-radius: 16px;
    overflow: hidden;
}

/* Bannière */
.author-banner {
    height: 120px;
    background: var(--card, #1e293b);
    border-bottom: 1px solid var(--border, #334155);
    position: relative;
}

/* Avatar */
.author-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.author-avatar-large {
    position: relative;
}

.author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.author-avatar-large .premium-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: var(--accent, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-foreground, #1a1a2e);
    font-size: 0.75rem;
    border: 3px solid var(--card, #1e293b);
}

/* Infos centrées */
.author-info {
    text-align: center;
    padding: 1rem 2rem 2rem;
}

.author-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground, #f8fafc);
    margin: 0.5rem 0 0.25rem;
    line-height: 1.2;
}

.author-username {
    font-size: 0.95rem;
    color: var(--muted-foreground, #94a3b8);
    margin: 0 0 1rem;
}

.author-bio {
    font-size: 1rem;
    color: var(--muted-foreground, #94a3b8);
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 500px;
}

/* Stats */
.author-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.author-stats .stat {
    text-align: center;
}

.author-stats .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent, #f39c12);
}

.author-stats .stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground, #94a3b8);
}

/* Social Links */
.author-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social-link.tiktok { background: #010101; }
.social-link.youtube { background: #ff0000; }
.social-link.website { background: var(--primary, #1e3a5f); }

/* Actions */
.author-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.author-actions .btn-primary {
    background: var(--accent, #f39c12);
    color: var(--accent-foreground, #1a1a2e);
}

.author-actions .btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.author-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border, #334155);
    color: var(--foreground, #f8fafc);
}

.author-actions .btn-outline:hover {
    border-color: var(--accent, #f39c12);
    color: var(--accent, #f39c12);
}

.author-actions .btn-ghost {
    background: transparent;
    color: var(--muted-foreground, #94a3b8);
    padding: 0.75rem 1rem;
}

.author-actions .btn-ghost:hover {
    color: var(--accent, #f39c12);
}

/* ==========================================================================
   WIDGETS SECTION
   ========================================================================== */

.author-widgets {
    padding: 0 0 2rem;
}

.author-widgets .container {
    max-width: 800px;
}

.widgets-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.widget-card {
    background: var(--card, #1e293b);
    border: 1px solid var(--border, #334155);
    border-radius: 12px;
    padding: 1.25rem;
    flex: 1;
    min-width: 200px;
}

.widget-card.widget-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground, #f8fafc);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--accent, #f39c12);
}

.widget-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted, #334155);
    border-radius: 10px;
    color: var(--accent, #f39c12);
    font-size: 1.1rem;
}

.widget-text {
    display: flex;
    flex-direction: column;
}

.widget-label {
    font-size: 0.8rem;
    color: var(--muted-foreground, #94a3b8);
}

.widget-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground, #f8fafc);
}

/* Badges */
.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-color, var(--accent, #f39c12));
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.badge-icon:hover {
    transform: scale(1.15);
}

/* ==========================================================================
   AUTHOR STORIES
   ========================================================================== */

.author-stories {
    padding: 2rem 0 4rem;
}

.author-stories .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground, #f8fafc);
    margin: 0 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-stories .section-title i {
    color: var(--accent, #f39c12);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Empty state */
.author-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card, #1e293b);
    border-radius: 12px;
    border: 1px solid var(--border, #334155);
}

.author-empty .empty-icon {
    font-size: 3rem;
    color: var(--muted-foreground, #94a3b8);
    margin-bottom: 1rem;
}

.author-empty h3 {
    font-size: 1.25rem;
    color: var(--foreground, #f8fafc);
    margin: 0 0 0.5rem;
}

.author-empty p {
    font-size: 1rem;
    color: var(--muted-foreground, #94a3b8);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .author-header {
        padding: 2rem 0;
    }
    
    .author-banner {
        height: 80px;
    }
    
    .author-avatar-wrapper {
        margin-top: -40px;
    }
    
    .author-avatar-large img {
        width: 80px;
        height: 80px;
    }
    
    .author-info {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-stats {
        gap: 2rem;
    }
    
    .author-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .widgets-grid {
        flex-direction: column;
    }
    
    .widget-card {
        min-width: 100%;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .author-stats {
        gap: 1.5rem;
    }
    
    .author-stats .stat-value {
        font-size: 1.25rem;
    }
    
    .author-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .author-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
