/**
 * Enhanced Author Archive - Flatsome Mode Styles
 * Path: assets/css/eaa-flatsome.css
 * Specific styles for Flatsome theme compatibility
 */

/* ==========================================================================
   Author Info Section (Flatsome Style)
   ========================================================================== */

.eaa-author-section {
    padding: 30px 0;
    border-radius: 8px;
    color: white;
}

.author-info {
    width: 100%;
}

.author-info-top {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar-author {
    flex-shrink: 0;
}

.avatar-author .image-cover {
    overflow: hidden;
    border-radius: 50%;
}

.author-info-inner {
    flex: 1;
}

.name-job {
    margin-bottom: 15px;
}

.name-job h1 {
    color: white;
}

.name-author {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    /* color: white; */
}

.job-author,
.work-author {
    display: block;
    font-size: 16px;
    /* color: whitesmoke; */
    margin-top: 5px;
}

/* Social Links */
.social_links {
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    gap: 15px;
    margin-top: 15px;
}

.box .social_links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.social_links a:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Author Description */
.author-info-description {
    padding: 20px 0;
    line-height: 1.8;
    /* color: whitesmoke; */
}

.author-info-description p {
    margin-bottom: 15px;
}

/* ==========================================================================
   Posts Section (Flatsome Compatible)
   ========================================================================== */

.eaa-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #333;
}

/* Post List Container */
#post-list {
    margin-bottom: 30px;
}

/* Load More Container */
#load-more-archive {
    display: flex;
    justify-content: center;
    align-items: center;
}

#archive-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* ==========================================================================
   Sidebar (Flatsome Style)
   ========================================================================== */

.eaa-other-authors {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-left: 30px;
}

.eaa-other-authors h2, .eaa-other-authors h3 {
    color: white;
}

.eaa-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* Author List */
.author-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* .author-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
} */

.author-list a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.author-list a:hover {
    opacity: 0.8;
}

/* Author Item */
.author-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-item .avatar-author {
    flex-shrink: 0;
}

.author-item .author-info {
    flex: 1;
}

.person-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.author-description {
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive Adjustments for Flatsome
   ========================================================================== */

@media (max-width: 768px) {
    .author-info-top {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-author {
        width: 30% !important;
    }
    
    .social_links {
        justify-content: center;
    }
    
    .name-author {
        font-size: 24px;
    }
    
    .eaa-other-authors,
    .my-other-author-list {
        margin-top: 30px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .avatar-author {
        width: 25% !important;
    }
}

/* ==========================================================================
   Integration with Flatsome Blog Posts Shortcode
   ========================================================================== */
/* Ensure Flatsome blog posts display correctly */
.blog-posts .row {
    margin-bottom: 0;
}

/* .blog-posts .post-item {
    margin-bottom: 30px;
} */

/* Badge styling for Flatsome */
.post-date.badge {
    font-size: 12px;
}

.post-date-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.post-date-month {
    display: block;
    text-transform: uppercase;
}

/* ==========================================================================
   Custom Enhancements for Flatsome
   ========================================================================== */
.eaa-posts-title {
    margin-top: 9px;
}

/* Hover effects on post items */
.box-blog-post.has-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Better spacing for post titles */
.box-blog-post .post-title {
    margin-bottom: 10px;
}

/* Divider styling */
.is-divider {
    margin: 15px 0;
}

/* ==========================================================================
   Gap Elements (Flatsome Specific)
   ========================================================================== */

.gap-element {
    clear: both;
}

.gap-element.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Print Styles for Flatsome
   ========================================================================== */

@media print {
    .social_links,
    .eaa-sidebar-title,
    .my-other-authors-title,
    .author-list {
        display: none !important;
    }
    
    .author-info-top {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}