/**
 * Author Card Styles
 * ===================
 * Styling for author cards with badges, social links, and theme support
 */

/* Author Card Container */
.author-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.author-card-inner {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
}

/* Dark Theme */
[data-theme="dark"] .author-card {
    background: var(--faq-card-bg);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Author Avatar */
.author-avatar-wrapper {
    position: relative;
}

.author-avatar-link {
    display: block;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.author-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #D4AF37;
    display: block;
    transition: border-color 0.3s ease;
}

[data-theme="dark"] .author-avatar-img {
    border-color: #D4AF37;
}

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

/* Author Type Badge */
.author-badge-wrapper {
    margin-bottom: 4px;
}

.author-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* BB Desk Badge */
.author-badge-bb-desk {
    background: linear-gradient(135deg, #003265 0%, #00274D 100%);
    color: #D4AF37;
    border: 1px solid #D4AF37;
}

[data-theme="dark"] .author-badge-bb-desk {
    background: linear-gradient(135deg, #00274D 0%, #003265 100%);
    color: #D4AF37;
    border-color: #D4AF37;
}

/* Guest Author Badge */
.author-badge-guest {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #0A1628;
    border: 1px solid #B8941F;
}

[data-theme="dark"] .author-badge-guest {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #0A1628;
    border-color: #B8941F;
}

/* Podcast Guest Badge */
.author-badge-podcast {
    background: linear-gradient(135deg, #1A4D5C 0%, #003265 100%);
    color: #D4AF37;
    border: 1px solid #D4AF37;
}

[data-theme="dark"] .author-badge-podcast {
    background: linear-gradient(135deg, #003265 0%, #1A4D5C 100%);
    color: #D4AF37;
    border-color: #D4AF37;
}

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

.author-name {
    font-family: var(--font-headline, 'Playfair Display', serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #0A0A0A;
}

[data-theme="dark"] .author-name {
    color: #ffffff;
}

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

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

[data-theme="dark"] .author-name a:hover {
    color: #D4AF37;
}

/* Author Title/Position */
.author-title {
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    margin: 0;
}

[data-theme="dark"] .author-title {
    color: #D1D5DB;
}

.author-title-separator {
    font-weight: 400;
    opacity: 0.7;
}

/* Podcast Episode */
.author-podcast-episode {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #D4AF37;
    margin: 4px 0 0;
}

.podcast-icon {
    flex-shrink: 0;
    stroke: #D4AF37;
}

/* Author Bio */
.author-bio {
    font-family: var(--font-body, 'Lora', serif);
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

[data-theme="dark"] .author-bio {
    color: #D1D5DB;
}

.author-bio p {
    margin: 0 0 12px;
}

.author-bio p:last-child {
    margin-bottom: 0;
}

/* Author Footer (Social + View All) */
.author-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #E5E7EB;
}

[data-theme="dark"] .author-footer {
    border-top-color: rgba(212, 175, 55, 0.2);
}

/* Social Links */
.author-social-links {
    display: flex;
    gap: 12px;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #003265;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-link:hover {
    background: #003265;
    color: #D4AF37;
    transform: translateY(-2px);
}

[data-theme="dark"] .author-social-link {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

[data-theme="dark"] .author-social-link:hover {
    background: #D4AF37;
    color: #0A1628;
}

.author-social-link svg {
    width: 18px;
    height: 18px;
}

/* View All Link */
.author-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #003265;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-view-all:hover {
    color: #D4AF37;
    gap: 8px;
}

[data-theme="dark"] .author-view-all {
    color: #D4AF37;
}

[data-theme="dark"] .author-view-all:hover {
    color: #ffffff;
}

.author-view-all svg {
    transition: transform 0.3s ease;
}

.author-view-all:hover svg {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-card {
        padding: 24px;
        margin: 32px 0;
    }
    
    .author-card-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .author-avatar-wrapper {
        text-align: center;
    }
    
    .author-badge-wrapper {
        text-align: center;
    }
    
    .author-header {
        text-align: center;
    }
    
    .author-name {
        font-size: 22px;
    }
    
    .author-bio {
        text-align: center;
    }
    
    .author-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .author-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .author-card {
        padding: 20px;
    }
    
    .author-name {
        font-size: 20px;
    }
    
    .author-title {
        font-size: 13px;
    }
    
    .author-bio {
        font-size: 14px;
    }
    
    .author-avatar-img {
        width: 80px;
        height: 80px;
    }
}

/* Alternative Compact Style for Non-Opinion Articles */
.author-card.compact {
    padding: 20px 24px;
    margin: 24px 0;
}

.author-card.compact .author-card-inner {
    grid-template-columns: 64px 1fr;
    gap: 16px;
}

.author-card.compact .author-avatar-img {
    width: 64px;
    height: 64px;
    border-width: 2px;
}

.author-card.compact .author-name {
    font-size: 18px;
}

.author-card.compact .author-bio {
    display: none;
}

@media (max-width: 768px) {
    .author-card.compact .author-card-inner {
        grid-template-columns: 1fr;
    }
}
