/* notes-card.css — self-contained styles for the Notes + Tasks card.
 *
 * Single source of truth, loaded by notes-card.php on every page that uses the card.
 * Uses INDEPENDENT class names (.notes-section / .notes-card / .notes-head /
 * .notes-head-right / .notes-title) so the card shares nothing with other cards
 * (Phone / About / Travel keep .city-info-* / .card-* in city-template.php).
 *
 * var(--x, fallback) is used throughout so the card looks correct with OR without a
 * host theme — city-template.php defines the vars on city pages; the fallbacks cover
 * standalone use elsewhere. Dark values are the fallbacks; light theme is at the bottom.
 */

/* ── Container + header (independent, not the shared .city-info-* / .card-*) ── */
.notes-section { padding: 0 28px 28px; }
.notes-card {
  max-width: 480px; margin: 0 auto;
  background: var(--surface, rgba(255,255,255,.04));
  border: 1.5px solid var(--border, rgba(255,255,255,.08));
  border-radius: 24px; padding: 22px 26px 18px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.notes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.notes-head .card-head-right { display: flex; align-items: center; gap: 6px; }  /* shared hook (reorder ▲▼ inject here); scoped so it can't affect other cards */
.notes-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim, rgba(241,240,249,.28)); font-family: 'Inter', sans-serif; }

/* ── Notes textarea + header buttons ── */
.notes-copy-btn { background: none; border: none; color: var(--dim, rgba(241,240,249,.28)); font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1; transition: color .15s, background .15s; }
.notes-copy-btn:hover { color: var(--text, #f1f0f9); background: rgba(255,255,255,.06); }
.notes-area { width: 100%; min-height: 80px; resize: none; overflow: hidden; background: transparent; border: none; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); color: var(--mid, rgba(241,240,249,.55)); font: 15px/1.65 'Inter', sans-serif; padding: 0 0 14px; outline: none; display: block; box-sizing: border-box; margin-bottom: 16px; transition: color .2s; }
.notes-area::placeholder { color: var(--dim, rgba(241,240,249,.28)); font-style: italic; }
.notes-color-palette { display: none; flex-wrap: wrap; gap: 7px; padding: 0 0 14px; }

/* ── Add-task row ── */
.notes-task-row { display: flex; gap: 8px; margin-bottom: 10px; }
.notes-task-in { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(129,140,248,.3); border-radius: 8px; padding: 7px 12px; font-size: 14px; color: var(--text, #f1f0f9); font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s; }
.notes-task-in:focus { border-color: rgba(129,140,248,.55); }
.notes-task-in::placeholder { color: var(--dim, rgba(241,240,249,.28)); }
.notes-task-add { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: rgba(129,140,248,.15); border: none; cursor: pointer; color: var(--accent2, #a5b4fc); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.notes-task-add:hover { background: rgba(129,140,248,.28); }

/* ── Progress + task list ── */
.notes-progress { font-size: 13px; color: var(--dim, rgba(241,240,249,.28)); text-align: right; margin: -4px 0 8px; min-height: 15px; letter-spacing: .03em; }
.notes-progress.complete { color: var(--accent2, #a5b4fc); font-weight: 600; }
.notes-task-list { display: flex; flex-direction: column; }
.notes-task-item { display: flex; flex-direction: column; padding: 2px 4px; border-radius: 6px; transition: background .12s; }
.notes-task-item:hover { background: rgba(255,255,255,.04); }
.notes-task-main { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 3px 0; }
.notes-task-cb { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--border, rgba(255,255,255,.08)); border-radius: 4px; cursor: pointer; transition: background .15s, border-color .15s; display: flex; align-items: center; justify-content: center; }
.notes-task-cb:hover { border-color: var(--accent2, #a5b4fc); }
.notes-task-item.done .notes-task-cb { background: var(--accent2, #a5b4fc); border-color: var(--accent2, #a5b4fc); }
.notes-task-item.done .notes-task-cb::after { content: '✓'; font-size: 9px; color: #fff; font-weight: 800; line-height: 1; }
.notes-task-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--mid, rgba(241,240,249,.55)); line-height: 1.5; transition: color .2s; overflow-wrap: break-word; word-break: break-word; }
.notes-task-item.done .notes-task-txt { text-decoration: line-through; color: var(--dim, rgba(241,240,249,.28)); }
.notes-task-del { opacity: 0; pointer-events: none; flex-shrink: 0; background: none; border: none; color: var(--dim, rgba(241,240,249,.28)); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; margin-left: 6px; transition: opacity .15s, color .15s; }
.notes-task-item.done .notes-task-del { opacity: .5; pointer-events: auto; }
.notes-task-item.done:hover .notes-task-del { opacity: 1; }
.notes-task-del:hover { color: var(--text, #f1f0f9); }
.notes-task-move { opacity: 0; flex-shrink: 0; background: none; border: none; color: var(--dim, rgba(241,240,249,.28)); font-size: 12px; line-height: 1; cursor: pointer; padding: 0 1px; transition: opacity .15s, color .15s; }
.notes-task-item:hover .notes-task-move { opacity: .6; }
.notes-task-move:hover { opacity: 1 !important; color: var(--text, #f1f0f9); }
.notes-task-move:disabled { opacity: 0 !important; pointer-events: none; }
.notes-task-pin { opacity: 0; flex-shrink: 0; background: none; border: none; font-size: 12px; line-height: 1; cursor: pointer; padding: 0 1px; color: var(--dim, rgba(241,240,249,.28)); transition: opacity .15s, color .15s; }
.notes-task-item:hover .notes-task-pin { opacity: .5; }
.notes-task-pin:hover { opacity: 1 !important; }
.notes-task-pin.active { opacity: 1 !important; color: var(--accent2, #a5b4fc); }
.notes-task-item.pinned .notes-task-pin { opacity: 1; color: var(--accent2, #a5b4fc); }
.notes-task-color { opacity: 0; flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0 2px; transition: opacity .15s; display: flex; align-items: center; }
.notes-task-item:hover .notes-task-color { opacity: 1; }
.notes-color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.15); }
.notes-swatches { display: flex; gap: 7px; padding: 4px 0 5px 30px; flex-wrap: wrap; }
.notes-swatch { width: 17px; height: 17px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: transform .12s, border-color .12s; }
.notes-swatch:hover { transform: scale(1.2); }
.notes-swatch.active { border-color: rgba(255,255,255,.6); }
.notes-swatch[data-color=""] { background: var(--border, rgba(255,255,255,.08)) !important; position: relative; overflow: hidden; }
.notes-swatch[data-color=""]::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px; background: var(--dim, rgba(241,240,249,.28)); transform: translateY(-50%) rotate(-45deg); }

/* ── Light theme ── */
[data-theme="light"] .notes-card { background: rgba(255,255,255,.78); border-color: rgba(0,0,0,.09); }
[data-theme="light"] .notes-copy-btn:hover { background: rgba(0,0,0,.05); }
[data-theme="light"] .notes-area { color: var(--text, #181827); }
[data-theme="light"] .notes-task-in { background: rgba(0,0,0,.04); border-color: rgba(91,95,232,.25); }
[data-theme="light"] .notes-task-item:hover { background: rgba(0,0,0,.025); }
[data-theme="light"] .notes-swatch.active { border-color: rgba(0,0,0,.5); }
[data-theme="light"] .notes-color-dot { border-color: rgba(0,0,0,.15); }
