/* ============================================
   AUTHORS – szerzők listaoldal
   (a hero, a cím és a pillek a woo.css shop-stílusait használják)
   ============================================ */

/* ── Kereső + szűrő ── */
.authors-tools {
    position: relative;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 28px;
}

.authors-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 340px);
    padding: 0 16px;
    height: 44px;
    background: var(--pink-light);
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.authors-search:focus-within {
    border-color: var(--coral);
}

.authors-search img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}

.authors-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    outline: none;
}

.authors-search input::placeholder {
    color: var(--navy);
    opacity: 0.55;
}

.authors-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.authors-filter .shortcut-pill {
    background: transparent;
    cursor: pointer;
}

.authors-filter .shortcut-pill span {
    margin-left: 4px;
    opacity: 0.6;
    font-weight: 400;
}

.authors-filter .shortcut-pill.is-active,
.authors-filter .shortcut-pill:hover {
    background: var(--navy);
    color: var(--white);
}

/* ── A–Z sáv ── */
.authors-az {
    position: relative;
    z-index: 90;
    background: var(--white);
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.authors-az__inner {
    display: flex;
    justify-content: center;
    gap: 2px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.authors-az__inner::-webkit-scrollbar {
    display: none;
}

.authors-az__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

a.authors-az__link:hover,
.authors-az__link.is-current {
    background: var(--coral);
    color: var(--white);
}

.authors-az__link.is-empty,
.authors-az__link.is-filtered {
    opacity: 0.25;
    pointer-events: none;
}

/* ── Betűcsoportok ── */
.authors-index {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 100px;
}

.authors-letter {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 36px 0;
    border-bottom: 1px solid var(--accent);
    scroll-margin-top: 24px;
}

.authors-letter:last-of-type {
    border-bottom: 0;
}

.authors-letter[hidden] {
    display: none;
}

.authors-letter__title {
    align-self: start;
    margin: 0;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    line-height: 0.9;
    color: var(--coral);
}

.authors-letter__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-entry[hidden] {
    display: none;
}

.author-entry__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 14px 16px;
    color: var(--navy);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.author-entry__link:hover,
.author-entry__link:focus-visible {
    background: var(--pink-light);
    border-left-color: var(--coral);
    outline: none;
}

.author-entry__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.author-entry__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
}

.author-entry__count {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--coral);
    white-space: nowrap;
}

.author-entry__meta {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.author-entry__sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.45;
    opacity: 0.85;
}

.authors-empty {
    padding: 60px 0;
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--navy);
}

.authors-empty a {
    color: var(--coral);
}

/* ── Tablet ── */
@media (max-width: 1023px) {
    .authors-letter__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Mobil ── */
@media (max-width: 699px) {
    .authors-tools {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 20px;
    }

    .authors-search {
        width: 100%;
    }

    .authors-filter {
        justify-content: center;
    }

    .authors-az__inner {
        justify-content: flex-start;
        padding: 6px 12px;
    }

    .authors-az__link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .authors-index {
        padding: 8px 16px 72px;
    }

    .authors-letter {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 24px 0;
    }

    .authors-letter__title {
        font-size: 2.6rem;
    }

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

    .author-entry__link {
        padding: 12px 4px 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .author-entry__link,
    .authors-az__link {
        transition: none;
    }
}

/* ── Megjegyzés a kereső alatt ── */
.authors-intro-note {
    max-width: 640px;
    margin: -8px auto 28px;
    padding: 0 24px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--navy);
    opacity: 0.85;
}

.authors-intro-note a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.2s;
}

.authors-intro-note a:hover {
    text-decoration-color: var(--coral);
}

/* ── Megjegyzés a lista végén ── */
.authors-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--pink-light);
    border-left: 4px solid var(--coral);
}

.authors-note p {
    flex: 1 1 360px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--navy);
}

.authors-note .shortcut-pill {
    flex-shrink: 0;
}

@media (max-width: 699px) {
    .authors-note {
        padding: 22px 20px;
        margin-top: 32px;
    }
}
