/* AA Authors Public Display Styles */

:root {
    --aa-primary: #2271b1;
    --aa-secondary: #00a0d2;
    --aa-success: #46b450;
    --aa-warning: #ffb900;
    --aa-danger: #d63638;
    --aa-dark: #1d2327;
    --aa-light: #f6f7f7;
    --aa-white: #ffffff;
    --aa-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --aa-radius: 12px;
}

/* Enhanced Author Box */
.aa-author-profile-box {
    background: var(--aa-white);
    border: 1px solid #e1e5e9;
    border-radius: var(--aa-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--aa-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aa-author-header {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.aa-author-headshot,
.aa-author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.aa-author-info {
    flex: 1;
}

.aa-author-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--aa-dark);
}

.aa-author-expertise {
    margin-bottom: 15px;
}

.aa-expertise-primary {
    background: var(--aa-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.aa-expertise-secondary {
    background: #f0f6fc;
    color: var(--aa-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.aa-author-bio {
    line-height: 1.6;
    color: #3c434a;
    font-size: 15px;
}

.aa-author-bio p {
    margin: 0 0 15px 0;
}

.aa-author-bio p:last-child {
    margin-bottom: 0;
}

/* Social Links */
.aa-author-social {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
}

.aa-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aa-social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.aa-social-linkedin { background: #0077b5; color: white; }
.aa-social-twitter { background: #1da1f2; color: white; }
.aa-social-facebook { background: #1877f2; color: white; }
.aa-social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.aa-social-youtube { background: #ff0000; color: white; }

/* Credentials */
.aa-author-credentials {
    margin: 20px 0;
}

.aa-credentials-section {
    margin-bottom: 20px;
}

.aa-credentials-section:last-child {
    margin-bottom: 0;
}

.aa-credentials-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--aa-dark);
}

.aa-credentials-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aa-credentials-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #3c434a;
}

.aa-credentials-list li:last-child {
    border-bottom: none;
}

/* Website Link */
.aa-author-website {
    margin-top: 20px;
    text-align: center;
}

.aa-website-link {
    display: inline-block;
    background: var(--aa-primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.aa-website-link:hover {
    background: #135e96;
}

/* Enhanced Footer Author Box */
.aa-enhanced-author-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 50px 0;
    border: 1px solid #dee2e6;
}

.aa-footer-author-bio {
    margin-bottom: 30px;
}

.aa-author-mini-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aa-mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--aa-primary);
}

.aa-mini-info {
    flex: 1;
}

.aa-mini-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--aa-dark);
}

.aa-mini-expertise {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.aa-author-stats-mini {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.aa-author-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aa-view-all-btn, .aa-website-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aa-view-all-btn {
    background: var(--aa-primary);
    color: white;
}

.aa-website-btn {
    background: #f8f9fa;
    color: var(--aa-primary);
    border: 1px solid var(--aa-primary);
}

/* Related Posts Grid */
.aa-author-related-posts {
    margin-bottom: 30px;
}

.aa-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.aa-related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.aa-related-post-card:hover {
    transform: translateY(-2px);
}

.aa-post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.aa-post-content {
    padding: 15px;
}

.aa-post-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.aa-post-content h4 a {
    color: var(--aa-dark);
    text-decoration: none;
}

.aa-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.aa-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Expertise Tags */
.aa-author-expertise-tags {
    margin-bottom: 25px;
}

.aa-expertise-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.aa-expertise-tag {
    background: #e7f3ff;
    color: var(--aa-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.aa-expertise-tag a {
    color: inherit;
    text-decoration: none;
}

/* Trust Signals */
.aa-author-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--aa-success);
}

.aa-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.aa-trust-icon {
    font-size: 16px;
}

/* Credibility Badges */
.aa-author-badges {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.aa-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aa-badge-elite {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
}

.aa-badge-top {
    background: var(--aa-primary);
    color: white;
}

.aa-badge-prolific {
    background: var(--aa-success);
    color: white;
}

.aa-badge-verified {
    background: #0073aa;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aa-author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .aa-author-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .aa-related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .aa-enhanced-author-footer {
        padding: 20px;
    }
    
    .aa-author-mini-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .aa-author-trust-signals {
        flex-direction: column;
        gap: 10px;
    }
}
