/* ============================================
   Страница автора — author.php
   ============================================ */

.author-profile {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #E8E6E3;
}

.author-profile-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #CFCCC9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar i {
    font-size: 32px;
    color: #fff;
}

.author-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #353433;
    font-family: var(--font-bold, 'Inter', sans-serif);
}

.author-info .author-meta {
    color: #8A8784;
    font-size: 14px;
    margin-bottom: 16px;
}

.author-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.author-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #353433;
    display: block;
}

.author-stat-label {
    font-size: 12px;
    color: #8A8784;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-subscribe-btn {
    margin-top: 16px;
}

.author-subscribe-btn button {
    background: transparent;
    border: 1.5px solid #E23737;
    color: #E23737;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.author-subscribe-btn button:hover {
    background: #E23737;
    color: #fff;
}

.author-posts-title {
    font-size: 18px;
    font-weight: 700;
    color: #353433;
    margin-bottom: 20px;
    font-family: var(--font-bold, 'Inter', sans-serif);
}

/* Сетка карточек */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .author-profile-inner {
        flex-direction: column;
        text-align: center;
    }
    .author-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    .author-profile {
        padding: 20px 16px;
    }
}
