/* ========================================
   Authors Page
======================================== */

.authors-page {
    min-height: 70vh;
}


/* ========================================
   Hero
======================================== */

.authors-hero {
    padding: 76px 0 58px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(55, 55, 55, 0.18),
            transparent
        );
}


.authors-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 0.72rem;

    font-weight: 900;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.authors-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(
        2.8rem,
        6vw,
        4.8rem
    );

    font-weight: 900;

    line-height: 0.95;

    letter-spacing: -0.055em;
}


.authors-hero p {
    max-width: 620px;

    margin: 20px 0 0;

    color: #aaaaaa;

    font-size: 1rem;

    line-height: 1.7;
}


/* ========================================
   Authors section
======================================== */

.authors-section {
    padding: 48px 0 80px;
}


.authors-section-header {
    min-height: 28px;

    margin-bottom: 20px;
}


.authors-count {
    color: #a0a0a0;

    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* ========================================
   Authors grid
======================================== */

.authors-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;
}


/* ========================================
   Author card
======================================== */

.author-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.author-card:hover {
    transform: translateY(-4px);

    background: var(--surface-hover);

    border-color: var(--accent);

    box-shadow:
        0 8px 30px rgba(
            0,
            0,
            0,
            0.25
        );
}


/* Green top accent */

.author-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background: var(--accent);

    opacity: 0;

    transition:
        opacity 0.2s ease;
}


.author-card:hover::before {
    opacity: 1;
}


/* ========================================
   Avatar
======================================== */

.author-card-avatar {
    width: 86px;
    height: 86px;

    margin-bottom: 18px;

    border: 1px solid var(--border);

    border-radius: 50%;

    overflow: hidden;

    background: #373737;

    flex-shrink: 0;
}


.author-card:hover
.author-card-avatar {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(
            59,
            255,
            0,
            0.06
        );
}


.author-card-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.author-card-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;

    color: #a0a0a0;

    font-size: 1.5rem;

    font-weight: 900;
}


/* ========================================
   Content
======================================== */

.author-card-content {
    min-width: 0;
}


.author-card h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 900;

    line-height: 1.25;

    overflow-wrap: anywhere;
}


.author-card-bio {
    display: -webkit-box;

    margin: 9px 0 14px;

    color: #a0a0a0;

    font-size: 0.78rem;

    line-height: 1.5;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.author-card-count {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 5px 8px;

    background: rgba(
        59,
        255,
        0,
        0.07
    );

    border: 1px solid rgba(
        59,
        255,
        0,
        0.18
    );

    border-radius: 5px;

    color: var(--accent);

    font-size: 0.7rem;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


/* ========================================
   Arrow
======================================== */

.author-card-arrow {
    position: absolute;

    right: 17px;
    bottom: 17px;

    color: #6e6e6e;

    font-size: 1.1rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.author-card:hover
.author-card-arrow {
    color: var(--accent);

    transform: translateX(3px);
}


/* ========================================
   Empty state
======================================== */

.authors-empty {
    padding: 70px 20px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);
}


.authors-empty h2 {
    margin: 0;

    color: #ffffff;
}


.authors-empty p {
    margin: 10px 0 0;

    color: #a0a0a0;
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 1100px) {

    .authors-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


@media (max-width: 850px) {

    .authors-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 560px) {

    .authors-hero {
        padding: 56px 0 42px;
    }


    .authors-section {
        padding: 38px 0 60px;
    }


    .authors-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }


    .author-card {
        padding: 14px;
    }


    .author-card-avatar {
        width: 64px;
        height: 64px;

        margin-bottom: 12px;
    }


    .author-card h2 {
        font-size: 0.85rem;
    }


    .author-card-bio {
        font-size: 0.7rem;

        -webkit-line-clamp: 2;
    }


    .author-card-count {
        font-size: 0.62rem;

        padding: 4px 6px;
    }


    .author-card-arrow {
        display: none;
    }

}


@media (max-width: 380px) {

    .authors-grid {
        grid-template-columns:
            1fr 1fr;
    }

}