/* ============================================
   stickies.css — Sticky Notes board: draggable/resizable notes on a
   dotted-grid canvas.
   Part of the app.css split.
   ============================================ */

.sticky-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.sticky-count {
    font-size: 0.78rem; color: var(--text-muted);
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 10px;
}

.sticky-board {
    position: relative;
    flex: 1;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    min-height: 520px;
    background-color: #0f1014;
    background-image:
      linear-gradient(rgba(186,154,66,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(24,37,81,0.16) 1px, transparent 1px),
      radial-gradient(circle at 20% 15%, rgba(255,255,255,0.03), transparent 45%),
      radial-gradient(circle at 80% 70%, rgba(186,154,66,0.06), transparent 45%);
    background-size: 22px 22px, 22px 22px, auto, auto;
}

.sticky-empty {
    min-height: 460px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
    text-align: center; color: var(--text-muted);
}
.sticky-empty i { font-size: 2rem; color: var(--gold); }
.sticky-empty h3 { color: var(--text-primary); font-size: 1rem; }

.sticky-note {
    position: absolute;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.18);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
    background: var(--sticky-color, #F6D365);
    color: #28220f;
    display: flex; flex-direction: column;
    cursor: default;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sticky-note::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 10px;
    background: linear-gradient(170deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 45%);
    pointer-events: none;
}
.sticky-note:hover {
    box-shadow: 0 12px 22px rgba(0,0,0,0.42), 0 3px 6px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}
.sticky-note.dragging {
    opacity: 0.94;
    box-shadow: 0 16px 28px rgba(0,0,0,0.48);
    transform: scale(1.01);
}

.sticky-note-head {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px 6px;
    border-bottom: 1px dashed rgba(0,0,0,0.2);
    cursor: grab;
    z-index: 1;
}
.sticky-note-head:active { cursor: grabbing; }
.sticky-note-grip {
    font-size: 0.9rem;
    opacity: 0.7;
}
.sticky-note-title {
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.sticky-note-actions {
    display: flex; align-items: center; gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}
.sticky-note:hover .sticky-note-actions { opacity: 1; }
.sticky-note-actions .btn-icon {
    color: rgba(0,0,0,0.62);
    width: 24px; height: 24px;
}
.sticky-note-actions .btn-icon:hover {
    color: #000;
    background: rgba(255,255,255,0.45);
}

.sticky-note-body {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow: hidden;
    word-break: break-word;
}
.sticky-note-foot {
    padding: 6px 10px 8px;
    font-size: 0.68rem;
    color: rgba(0,0,0,0.58);
    border-top: 1px dashed rgba(0,0,0,0.2);
    z-index: 1;
}

@media (max-width: 768px) {
    .sticky-board { min-height: 420px; }
    .sticky-note { width: 210px !important; height: 180px !important; }
}
