/* Notes page — extracted from inline <style>, upgrade #126 */
/* ── Feed layout ─────────────────────────── */
.notes-feed { max-width: 1200px; margin: 0 auto; padding: 20px 24px; }

/* ── Search ──────────────────────────────── */
.notes-search { margin-bottom: 16px; }
.notes-search input { width: 100%; padding: 10px 16px; border: 1px solid rgba(148,137,202,0.15);
    border-radius: 24px; background: rgba(148,137,202,0.03); color: rgba(148,137,202,0.9);
    font-size: 14px; outline: none; font-family: inherit; transition: all .2s; box-sizing: border-box; }
.notes-search input:focus { border-color: rgba(148,137,202,0.4); background: rgba(148,137,202,0.06); }
.notes-search input::placeholder { color: rgba(148,137,202,0.25); }
body.light .notes-search input { border-color: rgba(83,74,128,0.12); background: rgba(83,74,128,0.02); color: rgba(83,74,128,0.85); }
body.light .notes-search input:focus { border-color: rgba(83,74,128,0.35); background: rgba(83,74,128,0.04); }
body.light .notes-search input::placeholder { color: rgba(83,74,128,0.25); }

/* ── Hashtag bar ─────────────────────────── */
.notes-tags { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.notes-tags::-webkit-scrollbar { display: none; }
.notes-tags .tag-pill { flex-shrink: 0; padding: 5px 14px; border-radius: 16px; font-size: 12px;
    cursor: pointer; border: 1px solid rgba(148,137,202,0.15); background: transparent;
    color: rgba(148,137,202,0.5); transition: all .2s; font-family: inherit; white-space: nowrap; }
.notes-tags .tag-pill:hover { border-color: rgba(148,137,202,0.4); color: rgba(148,137,202,0.8); }
.notes-tags .tag-pill.active { background: rgba(148,137,202,0.2); border-color: #9489ca; color: #9489ca; }
body.light .notes-tags .tag-pill { border-color: rgba(83,74,128,0.12); color: rgba(83,74,128,0.5); }
body.light .notes-tags .tag-pill:hover { border-color: rgba(83,74,128,0.35); color: rgba(83,74,128,0.8); }
body.light .notes-tags .tag-pill.active { background: rgba(83,74,128,0.12); border-color: #534A80; color: #534A80; }

/* ── Waterfall grid ──────────────────────── */
.notes-grid { column-count: 2; column-gap: 12px; }
@media (min-width: 768px) { .notes-grid { column-count: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .notes-grid { column-count: 4; column-gap: 20px; } }

/* ── Note card ───────────────────────────── */
.note-card { break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
    background: rgba(148,137,202,0.03); transition: transform .2s, box-shadow .2s; cursor: pointer;
    text-decoration: none; color: inherit; display: block; position: relative; }
.note-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(148,137,202,0.08); }
body.light .note-card { background: #fff; border: 1px solid rgba(0,0,0,0.04); }
body.light .note-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.note-card-img-wrap { position: relative; width: 100%; overflow: hidden; background: rgba(148,137,202,0.05); min-height: 120px; }
body.light .note-card-img-wrap { background: rgba(83,74,128,0.03); }
.note-card-img { width: 100%; display: block; object-fit: cover; min-height: 120px; }

/* Title overlay at image bottom */
.note-card-title-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.note-card-title-overlay span { font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.4; }

/* Card footer: author + stats */
.note-card-footer { display: flex; align-items: center; padding: 8px 10px 10px; gap: 8px; }
.note-card-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: rgba(148,137,202,0.1); }
body.light .note-card-avatar { background: rgba(83,74,128,0.08); }
.note-card-avatar-placeholder { width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #9489ca, #c0a0d0); display: flex; align-items: center;
    justify-content: center; font-size: 10px; color: #fff; flex-shrink: 0; }
body.light .note-card-avatar-placeholder { background: linear-gradient(135deg, #534A80, #9989c0); }
.note-card-nickname { font-size: 11px; color: rgba(148,137,202,0.5); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.light .note-card-nickname { color: rgba(83,74,128,0.5); }
.note-card-verified { display: inline-block; width: 13px; height: 13px; background: #3498db;
    border-radius: 50%; font-size: 9px; color: #fff; text-align: center; line-height: 13px;
    margin-left: 2px; vertical-align: middle; }
.note-card-stats { display: flex; gap: 6px; align-items: center; font-size: 10px; color: rgba(148,137,202,0.3); flex-shrink: 0; }
body.light .note-card-stats { color: rgba(83,74,128,0.3); }
.note-card-stat { display: flex; align-items: center; gap: 2px; }
.note-card-stat svg { width: 12px; height: 12px; opacity: 0.5; }

/* ── Empty state ─────────────────────────── */
.notes-empty { text-align: center; padding: 60px 20px; color: rgba(148,137,202,0.3); font-size: 14px; }
body.light .notes-empty { color: rgba(83,74,128,0.3); }

/* ── Mobile: 2 cols already default, tighten on very small screens ── */
@media (max-width: 480px) {
  .notes-feed { padding: 12px 10px; }
  .notes-grid { column-count: 2; column-gap: 8px; }
  .note-card { margin-bottom: 8px; border-radius: 10px; }
  .note-card-footer { padding: 6px 8px 8px; }
  .note-card-nickname { font-size: 10px; }
}
