/**
 * Guest Authors CSS
 * Styling for author boxes and author-related elements
 */

/* Author Box Container */
.author-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
}

.author-box-horizontal {
    flex-direction: row;
    align-items: flex-start;
}

.author-box-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Author Box Inner */
.author-box-inner {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.author-box-vertical .author-box-inner {
    flex-direction: column;
    align-items: center;
}

/* Author Avatar */
.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-box-vertical .author-avatar {
    margin-bottom: 8px;
}

/* Author Info */
.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Author Header */
.author-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Author Name */
.author-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #0066cc;
}

/* Author Role/Title */
.author-role {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    font-style: italic;
}

/* Inline Author Role (for byline) */
.author-role-inline {
    font-size: 0.9em;
    font-weight: 400;
    color: #888;
    font-style: italic;
}

/* Author Bio */
.author-bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Author Links Container */
.author-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Author Link Styles */
.author-link,
.author-archive-link,
.author-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-link:hover,
.author-archive-link:hover,
.author-website:hover {
    color: #0052a3;
    text-decoration: underline;
}

.author-website svg {
    flex-shrink: 0;
}

/* Multiple Authors in Post Meta */
.post-meta-authors {
    display: inline-block;
    margin-right: 16px;
}

.post-meta-authors a.author-link {
    display: inline;
    margin: 0;
}

.post-meta-authors a.author-link + a.author-link::before {
    content: ", ";
    margin: 0 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-box {
        padding: 16px;
        gap: 12px;
    }
    
    .author-box-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-box-inner {
        flex-direction: column;
        align-items: center;
    }
    
    .author-avatar {
        width: 64px;
        height: 64px;
    }
    
    .author-info {
        width: 100%;
    }
    
    .author-name {
        font-size: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .author-box {
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .author-bio {
        color: #aaa;
    }
    
    .author-name a:hover {
        color: #66b3ff;
    }
    
    .author-link {
        color: #66b3ff;
    }
    
    .author-link:hover {
        color: #99ccff;
    }
}
