/**
 * Betformatics Author Bio Styles
 *
 * Styling for the [layout_author_bio] shortcode
 * Displays detailed author information at the bottom of blog posts
 * Horizontal full-width layout design
 *
 * Dependencies: betformatics-variables (loaded via PHP)
 *
 * @package Betformatics
 * @subpackage Assets/CSS
 */

/* ========================================================================
   CONTAINER - Full Width
   ======================================================================== */
.bf-author-bio {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.bf-author-bio-inner {
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-base);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================================================
   HEADER - Horizontal Layout (Avatar + Info)
   ======================================================================== */
.bf-author-bio-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bf-author-bio-avatar-link {
    flex-shrink: 0;
}

.bf-author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bf-border);
    transition: border-color var(--bf-transition-base);
}

.bf-author-bio-avatar-link:hover .bf-author-bio-avatar {
    border-color: var(--bf-primary);
}

.bf-author-bio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.bf-author-bio-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bf-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bf-author-bio-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.bf-author-bio-name a {
    color: var(--bf-text-primary);
    text-decoration: none;
    transition: color var(--bf-transition-base);
}

.bf-author-bio-name a:hover {
    color: var(--bf-primary);
}

.bf-author-bio-posts-count {
    font-size: 13px;
    color: var(--bf-slate-500);
}

/* ========================================================================
   SOCIAL LINKS - Below article count
   ======================================================================== */
.bf-author-bio-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bf-author-bio-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bf-slate-100);
    color: var(--bf-slate-600);
    text-decoration: none;
    transition: background-color var(--bf-transition-base), color var(--bf-transition-base), transform var(--bf-transition-base);
}

.bf-author-bio-social-link:hover {
    transform: translateY(-2px);
}

.bf-author-bio-social-link svg {
    width: 16px;
    height: 16px;
}

/* Social link color variants */
.bf-author-bio-social-website:hover {
    background: var(--bf-primary);
    color: var(--bf-white);
}

.bf-author-bio-social-twitter:hover {
    background: #000;
    color: var(--bf-white);
}

.bf-author-bio-social-facebook:hover {
    background: #1877f2;
    color: var(--bf-white);
}

.bf-author-bio-social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--bf-white);
}

.bf-author-bio-social-linkedin:hover {
    background: #0a66c2;
    color: var(--bf-white);
}

.bf-author-bio-social-youtube:hover {
    background: #ff0000;
    color: var(--bf-white);
}

/* ========================================================================
   BIO/DESCRIPTION - Full width below header
   ======================================================================== */
.bf-author-bio-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--bf-text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--bf-slate-100);
}

.bf-author-bio-description p {
    margin: 0 0 10px;
}

.bf-author-bio-description p:last-child {
    margin-bottom: 0;
}

/* ========================================================================
   RESPONSIVE - Tablet
   ======================================================================== */
@media screen and (max-width: 768px) {
    .bf-author-bio-inner {
        padding: 20px 24px;
        gap: 20px;
    }

    .bf-author-bio-header {
        gap: 16px;
    }

    .bf-author-bio-avatar {
        width: 70px;
        height: 70px;
    }

    .bf-author-bio-name {
        font-size: 18px;
    }
}

/* ========================================================================
   RESPONSIVE - Mobile
   ======================================================================== */
@media screen and (max-width: 480px) {
    .bf-author-bio {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .bf-author-bio-inner {
        padding: 16px;
        gap: 16px;
    }

    .bf-author-bio-header {
        gap: 12px;
    }

    .bf-author-bio-avatar {
        width: 60px;
        height: 60px;
    }

    .bf-author-bio-info {
        min-width: 0;
    }

    .bf-author-bio-name {
        font-size: 17px;
    }

    .bf-author-bio-social-link {
        width: 32px;
        height: 32px;
    }

    .bf-author-bio-social-link svg {
        width: 14px;
        height: 14px;
    }
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    .bf-author-bio-avatar,
    .bf-author-bio-name a,
    .bf-author-bio-social-link {
        transition: none;
    }

    .bf-author-bio-social-link:hover {
        transform: none;
    }
}

.bf-author-bio-name a:focus,
.bf-author-bio-social-link:focus {
    outline: 2px solid var(--bf-primary);
    outline-offset: 2px;
}

.bf-author-bio-name a:focus:not(:focus-visible),
.bf-author-bio-social-link:focus:not(:focus-visible) {
    outline: none;
}

.bf-author-bio-name a:focus-visible,
.bf-author-bio-social-link:focus-visible {
    outline: 2px solid var(--bf-primary);
    outline-offset: 2px;
}

/* ========================================================================
   ELEMENTOR COMPATIBILITY
   ======================================================================== */
.elementor-shortcode .bf-author-bio {
    width: 100%;
}
