/* ============================================================
   Suththa.org — Notes page
   ============================================================ */

.notes-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
}

.notes-title {
  font-family: var(--font-sinhala-heading);
  font-weight: 800;
  color: var(--accent-deep);
  font-size: 1.6rem;
  margin: 0.4rem 0 0.2rem;
}

.notes-sub {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* note editor */
.note-editor {
  background: var(--paper-light);
  border: 1px solid var(--paper-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  margin-bottom: 1.4rem;
}
.note-editor .ne-title {
  border: none;
  background: transparent;
  font-family: var(--font-sinhala-heading);
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px dashed var(--paper-dark);
  margin-bottom: 0.6rem;
}
.note-editor .ne-title:focus { outline: none; border-bottom-color: var(--accent); }
.note-editor textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.7;
  padding: 0.4rem 0.1rem;
}
.note-editor textarea:focus { outline: none; }
.note-editor .ne-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.note-editor .ne-meta input[type='text'] {
  border: 1px solid var(--paper-dark);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  min-width: 8rem;
}
.note-editor .ne-meta .spacer { flex: 1; }

/* note list */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.note-item {
  background: var(--paper-light);
  border: 1px solid var(--paper-edge);
  border-left: 5px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.note-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.note-item .note-body {
  white-space: pre-wrap;
  margin: 0.4rem 0 0.5rem;
  color: var(--ink);
  font-size: 0.97rem;
}
.note-item .note-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-right: 0.6rem;
}
.note-item .note-date {
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.note-item .note-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.2rem;
}
.note-item .note-actions button {
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 0.3rem;
}
.note-item .note-actions button:hover { color: var(--error); }
.note-item .note-actions button.edit:hover { color: var(--accent-deep); }
.note-item.editing {
  border-style: dashed;
  border-left: 5px solid var(--gold);
}
