/**
 * Frontend Styles for LNH Smart Author Box
 * 6 Modern Styles + Responsive + Dark Mode
 */

:root {
    --lnh-sab-accent: #4f46e5;
    --lnh-sab-accent-hover: #4338ca;
}

.lnh-smart-author-box {
    margin: 35px 0 25px 0;
    font-family: inherit;
    box-sizing: border-box;
    clear: both;
}

.lnh-smart-author-box *,
.lnh-smart-author-box *::before,
.lnh-smart-author-box *::after {
    box-sizing: border-box;
}

.lnh-sab-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Avatar Column */
.lnh-sab-avatar-col {
    flex-shrink: 0;
}

.lnh-sab-avatar {
    width: 90px;
    height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
}

.lnh-sab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.lnh-avatar-round {
    border-radius: 50%;
}

.lnh-avatar-rounded {
    border-radius: 14px;
}

.lnh-avatar-square {
    border-radius: 0;
}

/* Content Column */
.lnh-sab-content-col {
    flex: 1;
    min-width: 0;
}

.lnh-sab-header-row {
    margin-bottom: 10px;
}

.lnh-sab-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lnh-sab-name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.lnh-sab-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lnh-sab-name a:hover {
    color: var(--lnh-sab-accent, #4f46e5);
}

/* Verified Badge */
.lnh-sab-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.lnh-sab-verified-badge svg {
    flex-shrink: 0;
}

/* Job Title & Meta */
.lnh-sab-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.lnh-sab-title {
    color: var(--lnh-sab-accent, #4f46e5);
    font-weight: 600;
}

.lnh-sab-workplace {
    color: #64748b;
}

/* Bio */
.lnh-sab-bio {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
}

.lnh-sab-bio p:last-child {
    margin-bottom: 0;
}

/* Footer Row */
.lnh-sab-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

/* Social Icons */
.lnh-sab-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lnh-sab-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s ease;
}

.lnh-sab-social-icon:hover {
    background: var(--lnh-sab-accent, #4f46e5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.lnh-sab-posts-link a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--lnh-sab-accent, #4f46e5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lnh-sab-posts-link a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ==========================================================================
   STYLE 1: Modern Card (Mặc định tinh tế)
   ========================================================================== */
.lnh-sab-style-1 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.lnh-sab-style-1 .lnh-sab-avatar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   STYLE 2: Minimalist Editorial (Báo chí tối giản)
   ========================================================================== */
.lnh-sab-style-2 {
    background: transparent;
    border-top: 2px solid #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 0;
    border-radius: 0;
}

.lnh-sab-style-2 .lnh-sab-name {
    font-size: 20px;
    letter-spacing: -0.01em;
}

.lnh-sab-style-2 .lnh-sab-social-icon {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 6px;
}

.lnh-sab-style-2 .lnh-sab-social-icon:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* ==========================================================================
   STYLE 3: Gradient Tech (Công nghệ hiện đại)
   ========================================================================== */
.lnh-sab-style-3 {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08);
    overflow: hidden;
}

.lnh-sab-style-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #ec4899 100%);
}

.lnh-sab-style-3 .lnh-sab-avatar {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--lnh-sab-accent, #4f46e5);
}

.lnh-sab-style-3 .lnh-sab-title {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ==========================================================================
   STYLE 4: Glassmorphism (Kính mờ sang trọng)
   ========================================================================== */
.lnh-sab-style-4 {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.lnh-sab-style-4 .lnh-sab-avatar {
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   STYLE 5: Compact Ribbon (Thanh lịch & Tiết kiệm diện tích)
   ========================================================================== */
.lnh-sab-style-5 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--lnh-sab-accent, #4f46e5);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
}

.lnh-sab-style-5 .lnh-sab-avatar {
    width: 72px;
    height: 72px;
}

.lnh-sab-style-5 .lnh-sab-bio {
    font-size: 13.5px;
    margin-bottom: 10px;
}

/* ==========================================================================
   STYLE 6: E-E-A-T Verified Authority (Chuyên gia uy tín)
   ========================================================================== */
.lnh-sab-style-6 {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.08);
}

.lnh-sab-style-6 .lnh-sab-avatar {
    border: 3px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.lnh-sab-style-6 .lnh-sab-name {
    color: #064e3b;
}

.lnh-sab-style-6 .lnh-sab-verified-badge {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}

.lnh-sab-style-6 .lnh-sab-verified-badge svg path {
    fill: #ffffff;
}

/* ==========================================================================
   Responsive Mobile Optimization
   ========================================================================== */
@media (max-width: 640px) {
    .lnh-sab-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .lnh-sab-header-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lnh-sab-name-wrap {
        justify-content: center;
    }

    .lnh-sab-footer-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .lnh-sab-social {
        justify-content: center;
    }

    .lnh-sab-style-5 {
        border-left: 1px solid #e2e8f0;
        border-top: 4px solid var(--lnh-sab-accent, #4f46e5);
        border-radius: 12px;
    }
}
