/* ==========================================================================
   Author Page — Isolated Styles
   ========================================================================== */

.sl-author-page {
    padding-top: var(--sl-space-3xl);
}

/* Profile Card */
.sl-author-profile {
    display: flex;
    gap: var(--sl-space-2xl);
    align-items: flex-start;
    padding-bottom: var(--sl-space-3xl);
    border-bottom: 1px solid rgba(77, 157, 232, 0.1);
    margin-bottom: var(--sl-space-3xl);
}

.sl-author-profile__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sl-tertiary);
}

.sl-author-profile__placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--sl-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sl-text-muted);
}

.sl-author-profile__name {
    font-size: var(--sl-text-4xl);
    font-weight: 800;
    color: var(--sl-text);
    margin-bottom: var(--sl-space-xs);
}

.sl-author-profile__title {
    font-size: var(--sl-text-base);
    color: var(--sl-secondary);
    font-weight: 500;
    margin-bottom: var(--sl-space-md);
}

.sl-author-profile__bio {
    font-size: var(--sl-text-base);
    color: var(--sl-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: var(--sl-space-md);
}

.sl-author-profile__meta {
    display: flex;
    align-items: center;
    gap: var(--sl-space-lg);
    font-size: var(--sl-text-sm);
    color: var(--sl-text-muted);
}

.sl-author-profile__meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sl-secondary);
    text-decoration: none;
    font-weight: 500;
}

.sl-author-profile__meta a:hover {
    text-decoration: underline;
}

/* Posts Grid */
.sl-author-posts__heading {
    font-size: var(--sl-text-2xl);
    font-weight: 700;
    color: var(--sl-text);
    margin-bottom: var(--sl-space-xl);
}

.sl-author-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sl-space-xl);
}

@media (min-width: 768px) {
    .sl-author-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sl-author-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sl-author-post-card {
    background: var(--sl-bg-white);
    border: 1px solid rgba(77, 157, 232, 0.08);
    border-radius: var(--sl-radius-md);
    overflow: hidden;
    transition: transform var(--sl-transition-base), box-shadow var(--sl-transition-base);
}

.sl-author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sl-shadow-md);
}

.sl-author-post-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sl-author-post-card__body {
    padding: var(--sl-space-lg);
}

.sl-author-post-card__cat {
    display: inline-block;
    font-size: var(--sl-text-xs);
    font-weight: 600;
    color: var(--sl-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--sl-space-sm);
}

.sl-author-post-card__body h3 {
    font-size: var(--sl-text-lg);
    font-weight: 700;
    margin-bottom: var(--sl-space-sm);
    line-height: 1.3;
}

.sl-author-post-card__body h3 a {
    color: var(--sl-text);
    text-decoration: none;
}

.sl-author-post-card__body h3 a:hover {
    color: var(--sl-secondary);
}

.sl-author-post-card__body p {
    font-size: var(--sl-text-sm);
    color: var(--sl-text-muted);
    line-height: 1.6;
    margin-bottom: var(--sl-space-sm);
}

.sl-author-post-card__body time {
    font-size: var(--sl-text-xs);
    color: var(--sl-text-light);
}

/* Mobile */
@media (max-width: 767px) {
    .sl-author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sl-author-profile__bio {
        max-width: 100%;
    }

    .sl-author-profile__meta {
        justify-content: center;
    }
}
