/* Default author card styles */
.authors-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.authors-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Default popup styles */
.authors-card {
    position: relative;
}

.author-bio-popup {
    position: absolute;
    left: 100%;
    top: 0;
    transform: translate(20px, 0) scale(0.95);
    width: 400px;
    height: 500px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.author-bio-popup-inner {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #666 #f0f0f0;
}

/* Custom scrollbar for Webkit browsers */
.author-bio-popup-inner::-webkit-scrollbar {
    width: 6px;
}

.author-bio-popup-inner::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.author-bio-popup-inner::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 3px;
}

.authors-card:hover .author-bio-popup {
    opacity: 1;
    transform: translate(20px, 0) scale(1);
    pointer-events: auto;
}

/* Responsive adjustments for all popups */
@media (max-width: 1024px) {
    .author-bio-popup {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .author-bio-popup {
        width: 300px;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 20px) scale(0.95) !important;
    }
    
    .authors-card:hover .author-bio-popup {
        transform: translate(-50%, 20px) scale(1) !important;
    }
}

/* General popup styles */
.author-bio-popup p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-bio-popup strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}
