/*
 * notes.css — Notes tab styles for contacts-slider
 * Uses CSS variables from index.html for theme support.
 */

/* ── Notes pane layout (override sl-pane inside universal Slider) ── */

.nc-feed-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nc-add {
    flex-shrink: 0;
    padding: 12px 20px 16px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Empty state ─────────────────────────────────────────── */

.nc-empty {
    text-align: center;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.7;
    padding: 28px 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Note card ───────────────────────────────────────────── */

.nc-card {
    position: relative;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 10px 36px 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.12s;
    flex-shrink: 0;
}

.nc-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

/* ── Pinned card ─────────────────────────────────────────── */

.nc-card--pinned {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent);
    border-style: dashed;
    border-left-style: solid;
}

/* ── Top-right action area ───────────────────────────────── */

.nc-card__top-right {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Action buttons (hover-only for unpinned; edit+delete hover for pinned) */
.nc-card__actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
}

.nc-card:hover .nc-card__actions {
    opacity: 1;
    pointer-events: auto;
}

.nc-card__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.1s, color 0.1s;
}

.nc-card__action:hover {
    background: var(--sidebar-active);
    color: var(--text-1);
}

/* Pin badge — always visible on pinned cards */
.nc-card__pin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.15s;
}

/* On hover of pinned card: rotate + gray out → hint "click to unpin" */
.nc-card--pinned:hover .nc-card__pin-badge {
    transform: rotate(45deg);
    opacity: 0.45;
}

/* ── Card content ────────────────────────────────────────── */

.nc-card__text {
    font-size: 13px;
    color: var(--text-1);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
}

.nc-card__text--editing {
    border-bottom: 1px solid var(--accent);
    cursor: text;
}

.nc-card__meta {
    font-size: 11px;
    color: var(--text-2);
    text-align: right;
    opacity: 0.7;
}
