/* Authors Block Styles */

/* This block now uses the exact same HTML structure and CSS classes as regular posts */
/* All styling is handled by the existing theme CSS */

.aces-authors-block {
    /* Inherits all styles from the theme */
}

/* Fix spacing between authors for the block */
.aces-authors-block .space-page-content-meta {
    gap: 15px !important; /* Reduce gap between author blocks */
}

.aces-authors-block .space-page-content-meta-author-block {
    flex: 0 0 auto !important; /* Prevent expansion */
    min-width: auto !important; /* Remove minimum width constraint */
    max-width: 300px; /* Set reasonable maximum width */
}

/* Ensure co-authors don't have extra margins */
.aces-authors-block .co-author-block {
    margin-left: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aces-authors-block .space-page-content-meta {
        gap: 10px !important; /* Even smaller gap on mobile */
    }
    
    .aces-authors-block .space-page-content-meta-author-block {
        max-width: none; /* Full width on mobile */
        flex: 0 0 100% !important; /* Stack vertically on mobile */
    }
}

/* ACES Author Modal Styles */
.aces-author-modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Debug: Make modal visible for testing */
.aces-author-modal.visible {
    display: block !important;
}

.aces-author-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: acesModalSlideIn 0.3s ease-out;
}

@keyframes acesModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aces-author-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.aces-author-modal-close:hover {
    color: #333;
}

.aces-author-modal-header {
    display: flex;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.aces-author-modal-avatar {
    margin-right: 20px;
}

.aces-author-modal-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.aces-author-modal-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}

.aces-author-modal-role {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.aces-author-modal-bio {
    padding: 20px 30px;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

.aces-author-modal-social {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.aces-author-modal-social-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.aces-author-modal-social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aces-author-modal-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aces-author-modal-social-icons a:hover {
    background-color: #007cba;
    color: #fff;
    transform: translateY(-2px);
}

.aces-author-modal-footer {
    padding: 20px 30px;
    text-align: center;
}

.aces-author-modal-posts-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.aces-author-modal-posts-link:hover {
    background-color: #005a87;
    color: #fff;
}

/* Responsive modal */
@media (max-width: 768px) {
    .aces-author-modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .aces-author-modal-header {
        padding: 20px 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .aces-author-modal-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .aces-author-modal-bio,
    .aces-author-modal-social,
    .aces-author-modal-footer {
        padding: 15px 20px;
    }
}
