/* Invisible Ink Notes — Exhibit 03. */

.notes-app {
  padding: 2.5rem 1.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 238, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(0, 0, 238, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    #f6f8ff;
  border-bottom: 4px solid var(--ink);
}

.app-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.compose-panel { min-width: 0; }

#noteForm label { display: block; font-weight: bold; margin-bottom: 0.35rem; }
#noteForm textarea {
  width: 100%;
  padding: 0.75rem;
  border: 4px solid var(--ink);
  background: #fff;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  resize: vertical;
}
.compose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}
.char-count { font-family: "Courier New", monospace; font-size: 0.85rem; color: #444; }

.status {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 1.05rem;
  border-left: 8px solid var(--blue);
  background: #fff;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0 1rem;
}

/* Note cards: metadata everywhere, content nowhere. */
.note-list { list-style: none; margin: 0; padding: 0; }

.note {
  border: 3px solid var(--ink);
  background: #fff;
  margin-bottom: 0.9rem;
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.25);
  /* Each note carries its own ink shade and bar height; both are plain
     numbers chosen at save time, not anything to do with the words. */
  --note-ink: var(--ink);
  --note-bar-h: 1.05rem;
}

.note-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 3px dashed var(--note-ink, var(--ink));
  background: #eef;
}
.note-title {
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.note-when {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #444;
}

.note-body { padding: 0.9rem; }

/* Redaction bars sized from the real words, so the shape leaks and the
   content does not. */
.redacted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  min-height: 2.4rem;
  align-content: flex-start;
}
.ink-bar {
  display: block;
  height: var(--note-bar-h, 1.05rem);
  background: var(--note-ink, var(--ink));
  border-radius: 2px;
}

.note-meta {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #555;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}
.note-actions .btn { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.note-shred { background: #fff; }
.note-shred:hover { background: var(--red); color: #fff; }

.note-flash {
  margin: 0 0.9rem 0.9rem;
  padding: 0.5rem 0.75rem;
  border-left: 6px solid var(--magenta);
  background: #fff5fb;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 0.95rem;
}

.empty { font-family: "Courier New", monospace; color: #555; }

/* Secrecy panel */
.secrecy-panel {
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.25rem;
}
.secrecy-panel h2 { font-size: 1.6rem; margin-top: 0; }
.secrecy-fill { width: 0%; background: var(--blue); }
.secrecy-note { font-size: 0.85rem; color: #444; }

.tally { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 0; }
.tally div { border: 3px solid var(--ink); padding: 0.6rem 0.9rem; flex: 1 1 8rem; }
.tally dt { font-family: Impact, sans-serif; font-size: 2rem; line-height: 1; }
.tally dd { margin: 0.2rem 0 0; font-size: 0.85rem; }

/* Featured feature */
.deink {
  padding: 2.5rem 1.5rem;
  background: #fff8e1;
  border-bottom: 4px solid var(--ink);
}
.deink-intro { max-width: 44rem; }
.deink-controls { margin: 1.5rem 0 1.25rem; }
.deink-progress { max-width: 34rem; }
.deink-fill { width: 0%; background: repeating-linear-gradient(-45deg, var(--lime) 0 12px, var(--yellow) 12px 24px); }
.deink-output {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 1.25rem;
  border: 4px dashed var(--magenta);
  background: #fff;
  padding: 1rem 1.25rem;
  max-width: 44rem;
  margin: 1.5rem 0 0.5rem;
  min-height: 3em;
}
.deink-note { color: #444; }

@media (max-width: 50rem) {
  .app-grid { grid-template-columns: 1fr; }
}
