/* Snippets: post-it note collector (extracted from inline + JS-injected keyframes).
   Per-note rotation is passed via the --note-rot custom property. */

@keyframes sl-note-appear {
    0%   { opacity: 0; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1); }
}

.sl-notes-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    position: relative;
    min-height: 120px;
}

.sl-notes-hint {
    position: absolute;
    inset: 12px;
    border: 2px dashed rgba(255, 220, 100, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 220, 100, 0.5);
    font-size: 13px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sl-notes-hint.is-faded {
    opacity: 0;
}

.sl-postit-note {
    background: linear-gradient(135deg, #fff9c4 0%, #fff176 100%);
    color: #5d4037;
    padding: 10px 28px 10px 12px;
    border-radius: 3px;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 9px;
    line-height: 1.35;
    min-width: 80px;
    max-width: 220px;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    transform: rotate(var(--note-rot, 0deg));
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sl-postit-note:hover {
    transform: rotate(var(--note-rot, 0deg)) translateY(-2px);
    box-shadow: 3px 5px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
}

.sl-postit-note.is-dragging {
    opacity: 0.6;
}

.sl-postit-note.is-copied {
    outline: 2px solid rgba(93, 64, 55, 0.4);
}

.sl-postit-note-appear {
    animation: sl-note-appear 0.3s ease-out;
}

.sl-postit-content {
    margin: 0;
    max-height: 150px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    font: inherit;
}

.sl-postit-close {
    position: absolute;
    top: 2px;
    right: 6px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(93, 64, 55, 0.3);
    line-height: 1;
}

.sl-postit-close:hover {
    color: rgba(93, 64, 55, 0.9);
}
