/* 
 * My Author Plugin - Styles
 * Bloc auteur avec avatar personnalisé et bio
 */

/* BLOC AUTEUR */
.myauthorplugin-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    margin: 40px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    clear: both;
}

.myauthorplugin-author-box .author-avatar {
    flex-shrink: 0;
}

.myauthorplugin-author-box .author-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.myauthorplugin-author-box .author-info {
    flex: 1;
}

.myauthorplugin-author-box .author-name {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.myauthorplugin-author-box .author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.myauthorplugin-author-box .author-name a:hover {
    color: #0073aa;
}

.myauthorplugin-author-box .author-bio {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.myauthorplugin-author-box .author-posts-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.myauthorplugin-author-box .author-posts-link:hover {
    text-decoration: underline;
    color: #005177;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .myauthorplugin-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin: 30px 0;
    }
    
    .myauthorplugin-author-box .author-avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .myauthorplugin-author-box .author-name {
        font-size: 1rem;
    }
    
    .myauthorplugin-author-box .author-bio {
        font-size: 0.9rem;
    }
}

/* Support pour les thèmes avec variables CSS personnalisées */
.myauthorplugin-author-box {
    border-left-color: var(--color-primary, #0073aa);
}

.myauthorplugin-author-box .author-name a {
    color: var(--color-text, #333);
}

.myauthorplugin-author-box .author-name a:hover {
    color: var(--color-primary, #0073aa);
}

.myauthorplugin-author-box .author-bio {
    color: var(--color-text-light, #666);
}

.myauthorplugin-author-box .author-posts-link {
    color: var(--color-primary, #0073aa);
}

.myauthorplugin-author-box .author-posts-link:hover {
    color: var(--color-primary-hover, #005177);
}

