/*
 * reader-notes.css — notes de la Lecture, partagées avec le livre affiché par le quiz (« Voir dans le livre », doc 4.22) :
 * barre de sélection (#note-popup : Note / Copier / Rechercher) et fenêtre de détail d'une note (#note-detail-popup).
 * Code : js/reader-notes-ui.js. Chargé par pages/lecture.js (avant Lecture-style.css, qui garde les variantes par thème du lecteur)
 * et par pages/quiz.js. Couleurs du thème du site : variables --note-popup-* de common-styles-themes.css.
 */

/* Boutons d'action de sélection (note, copier, rechercher) */
.selection-action-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.selection-action-btn:hover {
    background: var(--panel);
    transform: scale(1.08);
}

.selection-action-btn:active {
    transform: scale(0.95);
}

.selection-action-btn svg {
    display: block;
}

/* Visual style for actions that require login: appear disabled but still show a message on click */
.selection-action-btn.requires-login {
    opacity: 0.5;
    cursor: default;
    filter: grayscale(0.6);
}

#note-popup {
    background: var(--note-popup-bg, white);
    border-color: var(--note-popup-border, rgba(26, 82, 56, 0.3));
    box-shadow: var(--note-popup-shadow, 0 4px 14px rgba(0,0,0,0.15));
}

/* Popup de détail de note */
#note-detail-popup {
    animation: notePopupFadeIn 0.15s ease-out;
}

@keyframes notePopupFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.note-detail-edit-btn:hover {
    color: var(--text-primary) !important;
}

.note-detail-delete-btn:hover {
    color: var(--danger-hover) !important;
}

.note-detail-close-btn:hover {
    color: var(--text-primary) !important;
}
