/* ============================================================================
   archive.css — category / tag / author archive pages.
   Component: .aa-archive (header + post grid)
              .aa-author-card / .aa-author-grid (authors index)
   ============================================================================ */

.aa-archive .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ----- HERO ----- */
.aa-archive__hero {
    background: linear-gradient(135deg, #604580 0%, #a27dcb 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}
.aa-archive__hero--tag      { background: linear-gradient(135deg, #2a1850, #604580); }
.aa-archive__hero--author   { background: linear-gradient(135deg, #4f3669, #a27dcb); padding-top: 50px; }
.aa-archive__hero--authors  { background: linear-gradient(135deg, #2a1850, #4f3669); }

.aa-archive__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    color: #fff;
}
.aa-archive__avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.28);
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.aa-archive__kicker {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.78);
    font-weight: 700;
    margin: 0 0 6px;
}
.aa-archive__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.15;
    color: #fff;
}
.aa-archive__lede {
    max-width: 660px;
    margin: 0 auto 12px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
}
.aa-archive__meta {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

.aa-archive__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}
.aa-archive__social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.aa-archive__social a:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-2px);
    color: #fff;
}

/* ----- POST GRID ----- */
.aa-archive__posts { background: #fff; padding: 50px 0 60px; }

.aa-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.aa-archive__card {
    background: #fff;
    border: 1px solid #eef;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.aa-archive__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(96, 69, 128, 0.12);
}
.aa-archive__card-link { display: block; text-decoration: none; color: inherit; }
.aa-archive__card-img {
    width: 100%; height: 190px; object-fit: cover; display: block;
}
.aa-archive__card-img--placeholder {
    background: linear-gradient(135deg, #604580, #a27dcb);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 42px;
}
.aa-archive__card-body { padding: 18px 20px 20px; }
.aa-archive__card-cat {
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: #a27dcb; font-weight: 700; margin-bottom: 8px;
}
.aa-archive__card-title {
    font-size: 17px; line-height: 1.35; margin: 0 0 10px; color: #2a1850; font-weight: 700;
}
.aa-archive__card-excerpt {
    font-size: 13.5px; line-height: 1.55; color: #666; margin: 0 0 14px;
}
.aa-archive__card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11.5px; color: #999;
}

.aa-archive__empty {
    text-align: center; padding: 60px 20px;
    background: #faf5ff; border-radius: 14px;
    color: #604580; font-size: 15px;
}

/* ============================================================================
   AUTHORS INDEX (/authors)
   ============================================================================ */

.aa-author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.aa-author-card {
    background: #fff;
    border: 1px solid #ece4f7;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.aa-author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(96, 69, 128, 0.15);
    border-color: #a27dcb;
    color: inherit;
}
.aa-author-card__avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    background: #faf5ff;
}
.aa-author-card__avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #604580, #a27dcb);
    color: #fff; font-size: 30px; font-weight: 700;
}
.aa-author-card__name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2a1850;
}
.aa-author-card__bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 14px;
    flex-grow: 1;
}
.aa-author-card__count {
    margin: 0;
    font-size: 11.5px;
    color: #a27dcb;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* ----- MOBILE ----- */
@media (max-width: 640px) {
    .aa-archive__hero { padding: 44px 0 38px; }
    .aa-archive__posts { padding: 36px 0 50px; }
    .aa-archive__grid { gap: 18px; }
    .aa-archive__card-img { height: 170px; }
}
