/* ============================================================================
   JL Writer Shortcodes — Styles
   Matches the original HTML design exactly
   ============================================================================ */

/* ─── Hero Author ([hero_author]) ──────────────────────────────────────────── */

.jl-hero-author {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    padding-top: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jl-hero-author-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jl-hero-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.jl-hero-author-info {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jl-hero-author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 2px;
    line-height: 1.3;
}

.jl-hero-author-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.4;
}

.jl-hero-author-title span {
    color: #a08668 !important;
}

.jl-hero-author-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.jl-hero-author-logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 150ms ease;
}

.jl-hero-author-logos img:hover {
    opacity: 1;
}

/* ─── Author Box ([author_box]) ────────────────────────────────────────────── */

.jl-author-box {
    background: #ffffff;
    padding: 32px;
    margin-top: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    align-items: start;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jl-author-box .jl-author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F4F4F4;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -5px rgba(0, 0, 0, 0.03);
}

.jl-author-box .jl-author-info h4 {
    font-size: 0.75rem;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jl-author-box .jl-author-info h3 {
    font-size: 1.375rem;
    margin: 0 0 4px 0;
    padding: 0;
    color: #0F0F0F;
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

.jl-author-box .jl-author-credentials {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    color: #666666;
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.5;
}

.jl-author-box .jl-author-bio {
    font-size: 0.9375rem;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 0;
}

.jl-author-box .jl-author-bio p {
    margin: 0;
    padding: 0;
}

.jl-author-box .jl-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #8B7355;
    text-decoration: none;
    transition: color 150ms ease;
}

.jl-author-box .jl-author-link:hover {
    color: #7A6548;
}

.jl-author-box .jl-author-link svg {
    width: 16px;
    height: 16px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .jl-author-box {
        grid-template-columns: 100px 1fr;
        gap: 20px;
    }

    .jl-author-box .jl-author-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .jl-hero-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .jl-hero-author-avatar {
        width: 48px;
        height: 48px;
    }

    .jl-hero-author-name {
        font-size: 0.9375rem;
    }

    .jl-hero-author-title {
        font-size: 0.8125rem;
    }

    .jl-hero-author-logos img {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .jl-author-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .jl-author-box .jl-author-image {
        margin: 0 auto;
    }
}
