/* Footnote Frontend Styles */
.se-footnote {
    border-bottom: 2px dashed #6366f1;
    cursor: help;
    transition: all 0.2s ease;
    padding: 0 2px;
    border-radius: 2px;
}

.se-footnote:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.se-footnote-popup {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.se-footnote-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.se-footnote-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
    padding: 12px 16px;
}

.se-footnote-popup-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.se-footnote-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.se-footnote-load-more {
    font-size: 11px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.se-footnote-load-more:hover {
    background: #6366f1;
    color: #ffffff;
}

.se-footnote-close {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
}

.se-footnote-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.se-footnote-close .material-icons {
    font-size: 16px;
    font-weight: bold;
}

.se-footnote-popup-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    overflow-y: auto;
}

/* Mobile adjustments handled by JS (fixed positioning) */
@media (max-width: 640px) {
    .se-footnote-popup {
        border-radius: 16px 16px 0 0;
    }
}
