/* Author Box Container */
.aab-author-box-wrapper {
    margin: 30px 0;
    clear: both;
}

.aab-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.aab-author-box:hover {
    background: #f5f5f5;
}

/* Author Photo */
.aab-author-photo {
    flex-shrink: 0;
}

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

/* Author Info */
.aab-author-info {
    flex: 1;
    min-width: 0;
}

.aab-author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.aab-author-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.aab-author-designation {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Info Button */
.aab-info-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.aab-info-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Bio Tooltip */
.aab-author-bio-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.aab-author-bio-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 24px;
    border: 8px solid transparent;
    border-top-color: #fff;
}

.aab-author-bio-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 23px;
    border: 9px solid transparent;
    border-top-color: #ddd;
}

/* Show tooltip when hovering info button or the tooltip itself */
.aab-author-name-wrapper:hover .aab-author-bio-tooltip,
.aab-author-bio-tooltip:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* When tooltip is positioned below (for edge cases) */
.aab-tooltip-bottom::after {
    top: auto !important;
    bottom: 100% !important;
    border-top-color: transparent !important;
    border-bottom-color: #fff !important;
}

.aab-tooltip-bottom::before {
    top: auto !important;
    bottom: 100% !important;
    border-top-color: transparent !important;
    border-bottom-color: #ddd !important;
}

.aab-tooltip-content {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.aab-tooltip-content p {
    margin: 0 0 8px 0;
}

.aab-tooltip-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .aab-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .aab-author-photo img {
        width: 70px;
        height: 70px;
    }
    
    .aab-author-name-wrapper {
        justify-content: center;
    }
    
    .aab-author-bio-tooltip {
        left: 16px;
        right: 16px;
        max-width: none;
        transform: none;
    }
    
    .aab-author-bio-tooltip::after,
    .aab-author-bio-tooltip::before {
        left: 50%;
    }
}

/* Multiple Authors Spacing */
.aab-author-box-wrapper .aab-author-box:last-child {
    margin-bottom: 0;
}
