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

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

.oe-author-box {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    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-avatar-wrapper {
    flex-shrink: 0;
}

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

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

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

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

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

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

.oe-author-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.oe-author-name a:hover {
    color: #2563eb;
}

.oe-author-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin-top: 2px;
}

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

.oe-author-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-fact-check-icon {
    flex-shrink: 0;
    color: #28a745;
}

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

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

.oe-author-bio {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

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

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

.oe-author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

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

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

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

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

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

.oe-author-social-email:hover {
    background-color: #6c757d;
    color: #fff;
}

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

.oe-author-stats {
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

/* ==========================================================================
   Responsive: Mobile (≤600px)
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ==========================================================================
   Dark Mode
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .oe-author-box {
        background-color: #1e1e2e;
        border-color: #374151;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    }

    .oe-author-label {
        color: #9ca3af;
    }

    .oe-author-name a {
        color: #f3f4f6;
    }

    .oe-author-name a:hover {
        color: #60a5fa;
    }

    .oe-author-title {
        color: #9ca3af;
    }

    .oe-author-fact-check {
        background-color: #064e3b;
        color: #a7f3d0;
    }

    .oe-author-fact-check-icon {
        color: #34d399;
    }

    .oe-author-bio {
        color: #d1d5db;
    }

    .oe-author-social-link {
        background-color: #374151;
        color: #d1d5db;
    }

    .oe-author-stats {
        border-top-color: #374151;
        color: #9ca3af;
    }
}
