/* StatsBet Author Box Styles */

.sb-author-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sb-author-box-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Avatar */
.sb-author-avatar-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.sb-author-avatar,
.sb-author-box .avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sb-author-avatar-link:hover .sb-author-avatar,
.sb-author-avatar-link:hover .avatar {
    border-color: #10b981;
    transform: scale(1.05);
}

/* Content */
.sb-author-content {
    flex: 1;
    min-width: 0;
}

.sb-author-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.sb-author-header-left {
    flex: 1;
    min-width: 0;
}

.sb-author-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

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

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

.sb-author-name a:hover {
    color: #10b981;
}

/* Bio */
.sb-author-bio {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Social Links */
.sb-author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sb-author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

/* Platform-specific colors on hover */
.sb-author-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.sb-author-social-telegram:hover {
    background: #0088cc;
    color: #ffffff;
}

.sb-author-social-twitter:hover {
    background: #000000;
    color: #ffffff;
}

.sb-author-social-facebook:hover {
    background: #1877f2;
    color: #ffffff;
}

.sb-author-social-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
}

.sb-author-social-youtube:hover {
    background: #ff0000;
    color: #ffffff;
}

/* Focus states for accessibility */
.sb-author-social-link:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.sb-author-name a:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Fact-check badge */
.sb-author-fact-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #065f46;
    white-space: nowrap;
}

.sb-fact-check-icon {
    flex-shrink: 0;
    color: #10b981;
}

.sb-fact-check-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sb-fact-check-separator {
    color: #6ee7b7;
}

.sb-fact-check-text time {
    color: #047857;
}

/* Author Stats - Full width, positioned below avatar alignment */
.sb-author-stats {
    display: block;
    margin: 20px 0 0;
    padding: 16px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background: none;
}

/* Post Dates Shortcode - designed for dark backgrounds */
.sb-post-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.sb-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sb-post-date-icon {
    flex-shrink: 0;
    color: #9ca3af;
}

.sb-post-date-label {
    font-weight: 500;
    color: #10b981;
}

.sb-post-date time {
    color: #f3f4f6;
}

.sb-post-date-author-name {
    font-weight: 500;
    color: #f3f4f6;
}

/* Push author to far right */
.sb-post-date-author {
    margin-left: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .sb-author-box {
        padding: 20px;
    }

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

    .sb-author-avatar,
    .sb-author-box .avatar {
        width: 72px !important;
        height: 72px !important;
    }

    .sb-author-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .sb-author-fact-check {
        margin-top: 8px;
    }

    .sb-author-bio {
        text-align: center;
    }

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

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

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

    .sb-author-stats {
        text-align: center;
    }

    .sb-post-dates {
        justify-content: center;
        gap: 8px;
        font-size: 9px;
    }

    .sb-post-date {
        gap: 4px;
    }

    .sb-post-date-icon {
        width: 12px;
        height: 12px;
    }

    .sb-post-date-label {
        color: #10b981;
    }

    .sb-post-date-author {
        margin-left: 0;
    }
}

/* Dark theme support (if needed) */
@media (prefers-color-scheme: dark) {
    .sb-author-box {
        background: #1f2937;
        border-color: #374151;
    }

    .sb-author-name a {
        color: #f9fafb;
    }

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

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

    .sb-author-avatar,
    .sb-author-box .avatar {
        border-color: #374151;
    }

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

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