/**
 * Author Box Component
 * Displays author information below post content
 * Redesigned from Figma - matches design system
 *
 * @package Bonusovekody
 * @since 2.0.0
 */

/* ============================================
 * MAIN CONTAINER
 * ============================================ */

.author-box {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--container-padding);
    background-color: #EAF2FD;
    border-radius: var(--radius-md);
    margin-top: var(--space-9);
}

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

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

.author-box__photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md) !important;
    flex-shrink: 0;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    margin: 0 !important;
}

.author-box__header-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.entry-content .author-box__name {
    color: #1A1A1A;
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-h3);
    margin: 0;
    padding: 0;
}

.entry-content .author-box__position {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    color: #666;
    margin: 0;
    padding: 0;
}

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

.author-box__description {
    margin: 0 !important;
    padding: 0;
    color: #666;
}

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

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

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

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

.author-box__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-box__social-link svg {
    width: 22px;
    height: 22px;
    fill: #666;
    transition: all var(--transition-base) var(--ease-out);
}

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

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

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

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

    .author-box__photo {
        width: 72px;
        height: 72px;
    }
}

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

@media (max-width: 767px) {
    .author-box {
        margin-top: 24px;
    }
    
    .author-box__header {
        gap: var(--space-4);
    }

    .author-box__photo {
        width: 64px;
        height: 64px;
    }

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

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