/* ============================================
   ASP Author Bio Box & Byline System
   Consistent with the existing design language
   ============================================ */

/* ─── Author Byline (under title) ─── */
.asp-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.asp-byline-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--sp-single-primary, #2e7d32);
}

.asp-byline-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-size: 14px;
    line-height: 1.5;
}

.asp-byline-author {
    color: #333;
    font-weight: 500;
}

.asp-byline-author a {
    color: var(--sp-single-primary, #2e7d32);
    text-decoration: none;
    font-weight: 600;
}

.asp-byline-author a:hover {
    text-decoration: underline;
}

.asp-byline-title {
    color: #777;
    font-size: 13px;
    font-style: italic;
}

.asp-byline-date {
    color: #888;
    font-size: 13px;
}

/* ─── Author Bio Box (after content) ─── */
.asp-author-bio-box {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.asp-author-bio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--sp-single-primary, #2e7d32),
        #4caf50,
        #81c784
    );
}

.asp-author-bio-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.asp-author-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--sp-single-primary, #2e7d32);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asp-author-avatar img:hover {
    transform: scale(1.05);
}

.asp-author-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sp-single-primary, #2e7d32);
    margin: 0 0 4px;
}

.asp-author-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.asp-author-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.asp-author-name a:hover {
    color: var(--sp-single-primary, #2e7d32);
}

.asp-author-title {
    display: inline-block;
    font-size: 14px;
    color: #555;
    font-style: italic;
    padding: 2px 10px;
    background: rgba(46, 125, 50, 0.08);
    border-radius: 20px;
}

.asp-author-bio-content {
    margin-bottom: 16px;
}

.asp-author-bio-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 12px;
}

.asp-author-credentials {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    border-left: 3px solid var(--sp-single-primary, #2e7d32);
}

.asp-author-bio-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.asp-author-all-posts {
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-single-primary, #2e7d32);
    text-decoration: none;
    transition: color 0.2s;
}

.asp-author-all-posts:hover {
    color: #1b5e20;
    text-decoration: underline;
}

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

    .asp-author-bio-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .asp-author-avatar img {
        width: 72px;
        height: 72px;
    }

    .asp-author-name {
        font-size: 19px;
    }

    .asp-author-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .asp-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
