/* Author Page Specific Styles */

/* ======================== */
/* Page Layout */
/* ======================== */
.author-page {
    padding-bottom: 0;
}

.author-page__breadcrumbs {
    padding: 40px 0 30px;
}

.author-content {
    padding-bottom: 80px;
}

/* ======================== */
/* Author Layout */
/* ======================== */
.author-layout {
    display: flex;
    gap: 40px;
}

/* ======================== */
/* Author Profile Sidebar */
/* ======================== */
.author-profile {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.author-profile__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-profile__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.author-profile__name {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-26);
    line-height: 1.23;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.author-profile__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: var(--fs-14);
}

.author-profile__status svg {
    flex-shrink: 0;
}

.author-profile__description {
    font-family: var(--font-primary);
    font-size: var(--fs-15);
    line-height: 1.47;
    color: var(--color-grey-dark);
}

/* Tags */
.author-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-tag {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--color-background);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--fs-14);
    color: var(--color-text);
}

/* Profile Sections */
.author-profile__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-profile__section-title {
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-17);
    line-height: 1.35;
    color: var(--color-text);
}

.author-profile__about {
    font-family: var(--font-primary);
    font-size: var(--fs-15);
    line-height: 1.53;
    color: var(--color-grey-dark);
}

.author-profile__about p {
    margin-bottom: 12px;
}

.author-profile__about p:last-child {
    margin-bottom: 0;
}

/* Diplomas */
.author-profile__diplomas {
    font-family: var(--font-primary);
    font-size: var(--fs-15);
    line-height: 1.53;
    color: var(--color-grey-dark);
    padding-left: 20px;
}

.author-profile__diplomas li {
    position: relative;
    list-style-type: "– ";
    margin-bottom: 8px;
}

.author-profile__diplomas li::marker {
    color: var(--color-grey-medium);
}

.author-profile__diplomas li:last-child {
    margin-bottom: 0;
}

/* ======================== */
/* Author Articles Grid */
/* ======================== */
.author-articles {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
}

.author-articles .article-card--vertical {
    width: calc(50% - 8px);
}

.author-articles .article-card--horizontal {
    width: 100%;
}

/* ======================== */
/* Responsive */
/* ======================== */
@media (max-width: 1100px) {
    .author-layout {
        flex-direction: column;
        gap: 40px;
    }

    .author-profile {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .author-profile__header {
        width: 100%;
    }

    .author-profile__description {
        width: 100%;
    }

    .author-profile__tags {
        width: 100%;
    }

    .author-articles .article-card--vertical {
        width: calc(50% - 8px);
    }

    .author-articles .article-card--horizontal {
        width: calc(50% - 8px);
    }

}

@media (max-width: 768px) {
    .author-page__breadcrumbs {
        padding: 20px 0;
    }

    .author-content {
        padding-bottom: 60px;
    }

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

    .author-profile__avatar {
        width: 120px;
        height: 120px;
    }

    .author-profile__name {
        /* font-size: 20px; */
    }

    .author-profile__section {
        width: 100%;
    }

    .author-articles .article-card--vertical {
        width: 100%;
    }

    .author-articles .article-card--horizontal {
        width: 100%;
    }

    .author-profile__tags {
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    .author-tag {
        white-space: nowrap;
        background-color: #fff;
    }
}