/* =====================================================
   AUTHOR BOX — author-box.css
   Selectors use .authorbox prefix for high specificity
   to prevent Twenty Twenty-Five global style overrides.
   ===================================================== */

.authorbox {
    margin: 48px 0 32px;
    padding: 0;
    border-top: 3px solid #2563eb;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Section Title */
.authorbox .authorbox__title {
    margin: 0;
    padding: 20px 28px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.authorbox .authorbox__inner {
    display: flex;
    gap: 24px;
    padding: 20px 28px 24px;
    align-items: flex-start;
}

/* Photo */
.authorbox .authorbox__photo {
    flex-shrink: 0;
}

.authorbox .authorbox__photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.authorbox .authorbox__photo a:hover img {
    border-color: #2563eb;
}

/* Info */
.authorbox .authorbox__info {
    flex: 1;
    min-width: 0;
}

.authorbox .authorbox__header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.authorbox h4.authorbox__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.authorbox h4.authorbox__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.authorbox h4.authorbox__name a:hover {
    color: #2563eb;
}

/* Expertise Badge */
.authorbox .authorbox__badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Bio */
.authorbox p.authorbox__bio {
    margin: 0 0 14px;
    font-size: 0.935rem;
    line-height: 1.65;
    color: #475569;
}

/* Footer */
.authorbox .authorbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

/* Article Count */
.authorbox a.authorbox__posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.authorbox a.authorbox__posts:hover {
    color: #2563eb;
}

.authorbox .authorbox__posts svg {
    flex-shrink: 0;
}

/* Social Icons */
.authorbox .authorbox__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.authorbox .authorbox__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #64748b;
    background: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.authorbox .authorbox__social a:hover {
    color: #ffffff;
    background: #2563eb;
    transform: translateY(-1px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 600px) {
    .authorbox .authorbox__title {
        text-align: center;
    }

    .authorbox .authorbox__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 20px 20px;
        gap: 16px;
    }

    .authorbox .authorbox__photo img {
        width: 90px;
        height: 90px;
    }

    .authorbox .authorbox__header {
        justify-content: center;
    }

    .authorbox .authorbox__footer {
        justify-content: center;
    }
}