/**
 * Archive Template Styles
 * Specific styles for archive pages
 *
 * @package Bonusovekody
 * @since 2.0.0
 */

/* ============================================
 * AUTHOR ARCHIVE HERO
 * Matches author-box component design
 * ============================================ */

.author-archive-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ============================================
 * HEADER (Photo + Name and Position)
 * ============================================ */

.author-archive-hero__header {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.author-archive-hero__photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.author-archive-hero__header-text {
    display: flex;
    flex-direction: column;
}

.author-archive-hero__name {
    color: #fff;
    margin: 0;
}

.author-archive-hero__position {
    color: #fff;
    opacity: 0.8;
    margin: 0;
    padding: 0;
}

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

.archive-posts.related-articles {
    display: grid;
    gap: var(--space-5);
    margin: 0;
}

/* ============================================
 * ARCHIVE DESCRIPTION BOX
 * ============================================ */

.archive-description-box {
    margin-bottom: var(--container-padding);
}

.archive.tag .archive-description .topics-cards {
    margin-bottom: 0;
}

/* ============================================
 * DESCRIPTION
 * ============================================ */

.author-archive-hero__description {
    margin: 0;
    padding: 0;
    color: #fff;
}

.author-archive-hero__description p {
    margin-bottom: var(--space-3);
}

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

/* ============================================
 * FOOTER (Social icons and button)
 * ============================================ */

.author-archive-hero__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    margin-top: auto;
}

/* ============================================
 * SOCIAL ICONS
 * ============================================ */

.author-archive-hero__social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-archive-hero__social-link {
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid #E9EBF8;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    transition: all var(--transition-base) var(--ease-out);
    text-decoration: none;
}

.author-archive-hero__social-link:hover {
    background: #EAF2FD;
}

.author-archive-hero__social-link svg {
    width: 22px;
    height: 22px;
    fill: #2D7AE9;
    transition: all var(--transition-base) var(--ease-out);
}

.author-archive-hero__social-link:hover svg {
    fill: #2D7AE9;
}

/* ============================================
 * BUTTON
 * Button uses global btn btn-primary classes
 * ============================================ */

/* ============================================
 * RESPONSIVE - MOBILE
 * ============================================ */

@media (max-width: 767px) {
    .author-archive-hero {
        gap: var(--space-4);
        padding: var(--card-padding-mobile);
    }

    .author-archive-hero__header {
        gap: var(--space-4);
    }

    .author-archive-hero__photo {
        width: 64px;
        height: 64px;
    }

    .author-archive-hero__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .author-archive-hero .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
 * RESPONSIVE - TABLET
 * ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    .author-archive-hero {
        gap: var(--space-5);
    }

    .author-archive-hero__header {
        gap: var(--space-5);
    }

    .author-archive-hero__photo {
        width: 72px;
        height: 72px;
    }
}
