/**
 * Post Author / Author Box Shortcode Styles
 *
 * @since 1.2.0
 */

/* ==========================================================================
   Author Box Container
   ========================================================================== */

.oe-author-box {
    background-color: #fff;
    border: 1px solid var(--oe-color-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 32px 0;
}

.oe-author-box__inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ==========================================================================
   Avatar
   ========================================================================== */

.oe-author-box__avatar {
    flex-shrink: 0;
}

.oe-author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 12px !important;
    object-fit: cover;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.oe-author-box__content {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Header Row
   ========================================================================== */

.oe-author-box__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.oe-author-box__header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oe-author-box__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oe-author-box__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.oe-author-box__name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.oe-author-box__name a:hover {
    color: var(--oe-color-primary);
}

.oe-author-box__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    margin-top: 2px;
}

/* ==========================================================================
   Fact-Check Badge
   ========================================================================== */

.oe-author-box__fact-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.oe-author-box__fact-check-icon {
    flex-shrink: 0;
    color: var(--oe-color-success);
}

.oe-author-box__fact-check time {
    font-weight: 400;
}

/* ==========================================================================
   Biography
   ========================================================================== */

.oe-author-box__bio {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--oe-color-text);
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.oe-author-box__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oe-author-box__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--oe-color-bg-alt);
    color: var(--oe-color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.oe-author-box__social-link:hover {
    transform: translateY(-2px);
}

.oe-author-box__social-link svg {
    width: 18px;
    height: 18px;
}

/* Platform-specific hover colors */
.oe-author-box__social-facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.oe-author-box__social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.oe-author-box__social-twitter:hover {
    background-color: #000;
    color: #fff;
}

.oe-author-box__social-linkedin:hover {
    background-color: #0a66c2;
    color: #fff;
}

.oe-author-box__social-telegram:hover {
    background-color: #0088cc;
    color: #fff;
}

.oe-author-box__social-youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.oe-author-box__social-tiktok:hover {
    background-color: #000;
    color: #fff;
}

.oe-author-box__social-email:hover {
    background-color: var(--oe-color-text-light);
    color: #fff;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.oe-author-box__stats {
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--oe-color-border);
    font-size: 13px;
    color: var(--oe-color-text-light);
    text-align: center;
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */

@media (max-width: 640px) {
    .oe-author-box {
        padding: 20px;
    }

    .oe-author-box__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .oe-author-box__avatar img {
        width: 72px;
        height: 72px;
        border-radius: 10px !important;
    }

    .oe-author-box__header {
        flex-direction: column;
        align-items: center;
    }

    .oe-author-box__header-left {
        align-items: center;
    }

    .oe-author-box__name {
        font-size: 16px;
    }

    .oe-author-box__bio {
        font-size: 13px;
    }

    .oe-author-box__social {
        justify-content: center;
    }
}

