/* Информация об авторе */
.author-info-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5) 0%, rgba(101, 67, 33, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 69, 19, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 30px 0;
    overflow: hidden;
}

.author-info-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6) 0%, rgba(101, 67, 33, 0.5) 100%);
    border-bottom: 2px solid rgba(139, 69, 19, 0.7);
}

.author-info-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B4513;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sylfaen', 'Arial Unicode MS', sans-serif;
}

.author-icon {
    font-size: 1.5rem;
}

.author-info-content {
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-info-avatar {
    flex-shrink: 0;
    position: relative;
}

.author-info-avatar a {
    display: block;
    position: relative;
}

.author-avatar-img,
.author-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #8B4513;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.author-avatar-placeholder {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.author-info-avatar a:hover .author-avatar-img,
.author-info-avatar a:hover .author-avatar-placeholder {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
}

.author-role-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    border: 2px solid #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.author-info-details {
    flex: 1;
    min-width: 0;
}

.author-name {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.author-name a {
    color: #2c1810;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #8B4513;
}

.author-role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 69, 19, 0.4);
    border: 1px solid rgba(139, 69, 19, 0.6);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio {
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid #8B4513;
}

.author-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.author-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-stat-item .stat-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.author-stat-item .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B4513;
}

.author-stat-item .stat-label {
    font-size: 0.85rem;
    color: #666;
}

.author-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.author-profile-link,
.author-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.author-profile-link {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.author-profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.5);
}

.author-posts-link {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
}

.author-posts-link:hover {
    background: rgba(139, 69, 19, 0.2);
    border-color: #8B4513;
}

.link-icon {
    width: 18px;
    height: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .author-info-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .author-info-avatar {
        margin-bottom: 10px;
    }

    .author-stats {
        justify-content: center;
    }

    .author-actions {
        justify-content: center;
        width: 100%;
    }

    .author-profile-link,
    .author-posts-link {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .author-avatar-img,
    .author-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .author-role-badge {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .author-name {
        font-size: 1.3rem;
    }

    .author-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .author-actions {
        flex-direction: column;
    }

    .author-profile-link,
    .author-posts-link {
        width: 100%;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .author-info-card {
        background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(101, 67, 33, 0.1) 100%);
        border-color: rgba(139, 69, 19, 0.3);
    }

    .author-info-header {
        background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(101, 67, 33, 0.15) 100%);
    }

    .author-info-title {
        color: #d4a574;
    }

    .author-name a {
        color: #e0e0e0;
    }

    .author-name a:hover {
        color: #d4a574;
    }

    .author-bio {
        background: rgba(0, 0, 0, 0.3);
        color: #c0c0c0;
    }

    .author-stat-item .stat-label {
        color: #999;
    }

    .author-posts-link {
        background: rgba(139, 69, 19, 0.2);
        color: #d4a574;
    }

    .author-posts-link:hover {
        background: rgba(139, 69, 19, 0.3);
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Эффект пульсации аватара */
@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(139, 69, 19, 0.5);
    }
}

.author-avatar-img:hover,
.author-avatar-placeholder:hover {
    animation: avatarPulse 1.5s ease-in-out infinite;
}
