/* Article Author Box Styles */

/* Ensure Font Awesome icons display properly */
.article-author-box .fa {
    font-family: 'FontAwesome' !important;
    font-style: normal;
    font-weight: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.article-author-box .fa:before {
    font-family: 'FontAwesome' !important;
}

.article-author-box {
    margin: 3rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.article-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ee7601, #ff9500);
}

.author-box-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Photo Section */
.author-photo-section {
    flex-shrink: 0;
}

.author-box-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ee7601, #ff9500);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'SourceSansBold', Tahoma, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Info Section */
.author-info-section {
    flex: 1;
}

.author-box-header {
    margin-bottom: 1rem;
}

.author-box-name {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    font-family: 'SourceSansBold', Tahoma, sans-serif;
}

.author-box-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.author-box-expertise {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

.author-box-bio {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Meta Information */
.author-box-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.author-meta-item i {
    color: #ee7601;
    font-size: 1rem;
    display: inline-block;
    width: 1.1em;
    text-align: center;
    vertical-align: middle;
}

/* Actions */
.author-box-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-view-profile {
    background: linear-gradient(135deg, #ee7601, #ff9500);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 118, 1, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.btn-view-profile i {
    font-size: 1rem;
    display: inline-block;
    width: 1.1em;
    text-align: center;
    vertical-align: middle;
}

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

.author-social-links .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social-links .social-link:hover {
    border-color: #ee7601;
    color: #ee7601;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-social-links .social-link i {
    font-size: 1.1rem;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-author-box {
        padding: 1.5rem;
    }
    
    .author-box-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-photo-section {
        margin-bottom: 1rem;
    }
    
    .author-box-meta {
        justify-content: center;
    }
    
    .author-box-actions {
        justify-content: center;
    }
    
    .author-box-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .author-box-photo,
    .author-box-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }
    
    .author-box-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .btn-view-profile {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support if needed */
@media (prefers-color-scheme: dark) {
    .article-author-box {
        background: #2c3e50;
        border-color: rgba(255,255,255,0.1);
    }
    
    .author-box-name a,
    .author-box-bio {
        color: #ecf0f1;
    }
    
    .author-box-expertise,
    .author-meta-item {
        color: #bdc3c7;
    }
    
    .author-social-links .social-link {
        background: #34495e;
        border-color: #4a5f7f;
        color: #ecf0f1;
    }
}