/**
 * Author Block — Static Styles v3.6.
 *
 * Avatar, content, social links, posts list (cacheable).
 * Dynamic CSS (preset, color scheme, avatar radius) in render.php $css_parts.
 *
 * @package Boost Theme Framework
 * @since 3.6.0
 */

/* /blocks/author/style.css */

/* =============================================================================
   BASE
   ============================================================================= */

.boost-author {
    position: relative;
    overflow: hidden;
    background: var(--boost-bg);
    color: var(--boost-text);
    padding: 3rem 1rem;
}

.boost-author__box {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: var(--boost-card-bg, #fff);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid var(--boost-border, #e2e8f0);
}

/* =============================================================================
   LAYOUT VARIANTS
   ============================================================================= */

/* Horizontal (default) */
.boost-author--layout-horizontal .boost-author__box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Vertical */
.boost-author--layout-vertical .boost-author__box {
    text-align: left;
}

.boost-author--layout-vertical .boost-author__avatar {
    margin-bottom: 1.5rem;
}

/* Centered */
.boost-author--layout-centered .boost-author__box {
    text-align: center;
}

.boost-author--layout-centered .boost-author__avatar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* =============================================================================
   AVATAR
   ============================================================================= */

.boost-author__avatar {
    /* Prevent clipping on hover effects (zoom, tilt, etc.).
       Effects scale the <img> inside — overflow must be visible. */
    overflow: visible;
    flex-shrink: 0;
}

.boost-author__avatar-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.boost-author__avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--boost-accent, var(--boost-primary));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boost-author--layout-vertical .boost-author__avatar-img,
.boost-author--layout-centered .boost-author__avatar-img {
    width: 120px;
    height: 120px;
}

.boost-author__avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   CONTENT
   ============================================================================= */

.boost-author--layout-horizontal .boost-author__content {
    padding-top: 0.25rem;
}

.boost-author__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--boost-accent, var(--boost-primary));
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.boost-author__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--boost-text);
}

.boost-author__name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.boost-author__name-link:hover {
    color: var(--boost-accent, var(--boost-primary));
}

.boost-author__role {
    color: var(--boost-text-muted, var(--boost-text-muted));
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.boost-author__bio {
    color: var(--boost-text-muted, var(--boost-text-muted));
    line-height: 1.7;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

/* =============================================================================
   SOCIAL (uses shared .boost-social-links from tokens/social.css)
   ============================================================================= */

.boost-author__social,
.boost-author .boost-social-links {
    margin-top: 0;
}

/* =============================================================================
   RECENT POSTS
   ============================================================================= */

.boost-author__posts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--boost-border);
}

.boost-author__posts-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--boost-text-muted, var(--boost-text-muted));
    margin: 0 0 1rem;
    font-weight: 600;
}

.boost-author__posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.boost-author__post-link {
    color: var(--boost-text);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.boost-author__post-link::before {
    content: '→';
    color: var(--boost-accent, var(--boost-primary));
    flex-shrink: 0;
}

.boost-author__post-icon {
    color: var(--boost-accent, var(--boost-primary));
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.boost-author__post-link:hover {
    color: var(--boost-accent, var(--boost-primary));
}

/* Thumbnail variant */
.boost-author__post-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.boost-author__posts-list--has-thumb .boost-author__post-link {
    align-items: center;
    gap: 0.75rem;
}

.boost-author__posts-list--has-thumb .boost-author__post-link::before {
    display: none;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 640px) {
    .boost-author--layout-horizontal .boost-author__box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .boost-author--layout-horizontal .boost-author__avatar {
        margin: 0 auto 1rem;
        display: flex;
        justify-content: center;
    }
    
    .boost-author--layout-horizontal .boost-social-links {
        justify-content: center;
    }
}