/* ==========================================================
   AUTHOR PAGE
========================================================== */

.author-page {
    padding: 42px 0;
}

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

.author-hero {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: start;
    gap: 28px;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;

    padding: clamp(24px, 5vw, 44px);
    margin-bottom: 30px;

    box-shadow: 0 12px 34px rgba(7, 24, 39, 0.05);
}

/* ==========================================================
   AUTHOR PROFILE SIDE
========================================================== */

.author-profile-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    flex-shrink: 0;
}

/* ==========================================================
   AUTHOR AVATAR
========================================================== */

.author-avatar {
    width: 120px;
    height: 120px;

    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: #ffffff;

    font-size: 3rem;
    font-weight: 900;
    font-family: "Merriweather", Georgia, serif;

    box-shadow: 0 12px 26px rgba(7, 24, 39, 0.14);
}

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

/* ==========================================================
   AUTHOR SOCIALS
========================================================== */

.author-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    margin-top: 12px;
    max-width: 130px;
    flex-wrap: wrap;
}

.author-socials a {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #071827;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.68rem;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;

    transition: 0.2s ease;
}

.author-socials a:hover {
    background: #049bce;
    transform: translateY(-2px);
}

/* ==========================================================
   AUTHOR INFO
========================================================== */

.author-info span {
    display: inline-block;

    color: var(--primary);
    font-size: .80rem;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.author-info h1 {
    margin: 0;

    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    color: var(--navy);
}

.author-info h2 {
    margin: 8px 0 16px;

    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    max-width: 850px;
}

/* ==========================================================
   POSTS
========================================================== */

.author-posts {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 12px 34px rgba(7, 24, 39, 0.04);
}

.author-posts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.author-posts-heading h2 {
    margin: 0;

    font-family: "Merriweather", Georgia, serif;
    color: var(--navy);
}

.author-posts-heading span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.author-post-card {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.author-post-card:first-of-type {
    border-top: none;
    padding-top: 0;
}

.author-post-card span {
    display: inline-block;

    color: var(--primary);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;

    margin-bottom: 6px;
}

.author-post-card h3 {
    margin: 0 0 10px;

    font-family: "Merriweather", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.25;
}

.author-post-card h3 a {
    color: var(--navy);
    text-decoration: none;
    transition: .25s;
}

.author-post-card h3 a:hover {
    color: var(--primary);
}

.author-post-card p {
    margin: 0 0 12px;

    color: #475569;
    line-height: 1.7;
}

.author-post-card small {
    color: var(--muted);
    font-weight: 700;
}

.author-no-posts {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* ==========================================================
   AUTHOR PAGINATION
========================================================== */

.author-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.author-pagination a,
.author-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(7, 24, 39, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #071827;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: 0.2s ease;
}

.author-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.author-pagination .active {
    background: #071827;
    border-color: #071827;
    color: #ffffff;
}

.author-pagination .disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.author-pagination .pagination-ellipsis {
    min-width: 28px;
    padding-left: 4px;
    padding-right: 4px;
    border-color: transparent;
    background: transparent;
}

/* ==========================================================
   EMPTY STATE
========================================================== */

.author-empty {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px;
}

.author-empty h1 {
    margin: 0 0 10px;
    color: var(--navy);
}

.author-empty p {
    color: var(--muted);
    line-height: 1.6;
}

.author-empty a {
    display: inline-block;
    margin-top: 12px;

    background: var(--primary);
    color: #ffffff;

    text-decoration: none;
    font-weight: 900;

    padding: 11px 15px;
    border-radius: 10px;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .author-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-profile-side {
        margin: 0 auto;
    }

    .author-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .author-posts-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    .author-page {
        padding: 26px 0;
    }

    .author-hero,
    .author-posts,
    .author-empty {
        border-radius: 14px;
    }

    .author-avatar {
        width: 104px;
        height: 104px;
        font-size: 2.6rem;
    }

    .author-socials a {
        width: 27px;
        height: 27px;
        font-size: 0.64rem;
    }

}
/* ==========================================================
   AUTHOR PUBLICATIONS / BOOKS
========================================================== */

.author-publications {
    margin: 0 0 30px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(7, 24, 39, 0.04);
}

.author-publications-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.author-publications-heading > div > span {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.author-publications-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.author-publications-heading small {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.author-publication-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.author-publication-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(7, 24, 39, .1);
    border-radius: 16px;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.author-publication-card:hover {
    border-color: rgba(4, 155, 206, .34);
    box-shadow: 0 10px 28px rgba(7, 24, 39, .07);
    transform: translateY(-2px);
}

.author-publication-cover {
    width: 124px;
    aspect-ratio: 2 / 3;
    align-self: start;
    overflow: hidden;
    border-radius: 7px;
    background: #eef3f6;
    box-shadow: 0 8px 20px rgba(7, 24, 39, .12);
}

.author-publication-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-publication-cover-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    padding: 14px;
    background: linear-gradient(145deg, #071827, #0c3147 72%, #049bce);
    color: #ffffff;
}

.author-publication-cover-placeholder span {
    color: #78d8f4;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.author-publication-cover-placeholder strong {
    font-family: "Merriweather", Georgia, serif;
    font-size: .9rem;
    line-height: 1.25;
}

.author-publication-content {
    min-width: 0;
    align-self: center;
}

.author-publication-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.author-publication-kicker span {
    color: var(--primary);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.author-publication-kicker span + span::before {
    content: "·";
    margin-right: 7px;
    color: #94a3b8;
}

.author-publication-card h3 {
    margin: 0;
    color: var(--navy);
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.25;
}

.author-publication-subtitle {
    margin: 7px 0 0;
    color: #526477;
    font-size: .88rem;
    font-style: italic;
    line-height: 1.45;
}

.author-publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
}

.author-publication-meta span + span::before {
    content: "·";
    margin-right: 12px;
    color: #c1cad3;
}

.author-publication-description {
    display: -webkit-box;
    margin: 11px 0 0;
    overflow: hidden;
    color: #475569;
    font-size: .84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.author-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #071827;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.author-publication-link:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .author-publication-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .author-publications {
        padding: 22px;
    }

    .author-publications-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .author-publication-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 14px;
    }

    .author-publication-cover {
        width: 92px;
        border-radius: 6px;
    }

    .author-publication-cover-placeholder {
        padding: 10px;
    }

    .author-publication-card h3 {
        font-size: 1rem;
    }

    .author-publication-description {
        -webkit-line-clamp: 3;
    }

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

@media (max-width: 380px) {
    .author-publications {
        padding: 16px;
    }

    .author-publication-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .author-publication-cover {
        width: 78px;
    }

    .author-publication-subtitle,
    .author-publication-description {
        font-size: .8rem;
    }
}
