/* ── AskAncients Journal Page CSS ──
   Styles specific to the wisdom journal page.
   Overrides shared.css where the journal differs.
*/

/* ── Layout overrides (journal differs from shared defaults) ── */
body {
  align-items: flex-start;
}

.container {
  margin-top: 10px;
}

.header {
  padding: 30px 30px;
}

.header-top {
  margin-bottom: 8px;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 0;
}

.header p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 550px;
  line-height: 1.5;
}

.content {
  padding: 30px;
}

/* .back-link styles are defined in shared.css */

/* ── Journal controls ── */
.journal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.journal-count {
  font-size: 13px;
  color: #888;
}

.journal-sort {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.journal-sort select {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  background: white;
}

/* Parchment sort select */
.page-journal .journal-sort select {
  background: rgba(255, 250, 240, 0.6);
  border-color: rgba(200, 190, 170, 0.4);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h2 {
  font-size: 20px;
  color: #555;
  margin-bottom: 10px;
  font-weight: 600;
}

.empty-state p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
}

.empty-state a {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.empty-state a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* ── Composition Profile ── */
.composition-profile {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin: 0 20px 20px 20px;
  display: none;
}

/* Parchment composition profile */
.page-journal .composition-profile {
  background: transparent;
  border-color: rgba(160, 140, 110, 0.2);
}

.composition-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.composition-subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
}

.composition-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.composition-bar-row:last-child {
  margin-bottom: 0;
}

.composition-bar-label {
  font-size: 13px;
  color: #444;
  width: 140px;
  flex-shrink: 0;
}

.composition-bar-track {
  flex: 1;
  height: 16px;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
}

/* Parchment bar track */
.page-journal .composition-bar-track {
  background: rgba(255, 250, 240, 0.4);
}

.composition-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.composition-bar-pct {
  font-size: 12px;
  color: #888;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.composition-empty {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 8px 0;
}

/* ── Filter bar ── */
.journal-filter-bar {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.journal-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #98a0ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 52px;
  flex-shrink: 0;
}

.journal-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.jf-pill {
  padding: 4px 12px;
  border: 1px solid #e0e3ea;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #5e6470;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.jf-pill:hover {
  border-color: #c0c5d0;
  background: #f7f8fb;
}

/* Parchment filter pills */
.page-journal .jf-pill {
  background: rgba(255, 250, 240, 0.4);
  border-color: rgba(160, 140, 110, 0.2);
}
.page-journal .jf-pill:hover {
  background: rgba(255, 250, 240, 0.6);
}

.jf-pill.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.jf-pill.mood-pill.active {
  background: #764ba2;
  border-color: #764ba2;
}

.jf-pill.source-pill.active {
  background: #2d8a6e;
  border-color: #2d8a6e;
}

.journal-sort-toggle {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #e0e3ea;
  border-radius: 6px;
  font-size: 11px;
  color: #98a0ad;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

/* Parchment sort toggle */
.page-journal .journal-sort-toggle {
  background: rgba(255, 250, 240, 0.4);
  border-color: rgba(160, 140, 110, 0.2);
}

.journal-sort-toggle:hover {
  border-color: #c0c5d0;
  color: #5e6470;
}

/* ── Source indicators ── */
.dr-source {
  font-size: 11px;
  font-weight: 500;
  color: #98a0ad;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dr-source-link {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
}

.dr-source-link:hover {
  text-decoration: underline;
}

.dr-source-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c0c5d0;
  flex-shrink: 0;
}

/* ── Tag pills on entries ── */
.dr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  align-items: center;
}

.dr-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: #f0f1f5;
  color: #5e6470;
  border: 1px solid #e0e3ea;
  cursor: default;
  transition: all 0.15s;
}

/* Parchment tags */
.page-journal .dr-tag {
  background: rgba(255, 250, 240, 0.4);
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-tag.removable {
  cursor: pointer;
}

.dr-tag.removable:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.dr-tag-add {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: none;
  color: #667eea;
  border: 1px dashed #667eea;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.dr-tag-add:hover {
  background: #f0f0ff;
}

/* ── Tag picker inline ── */
.dr-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  padding: 8px 10px;
  background: #f7f8fb;
  border-radius: 8px;
  border: 1px solid #e6e8ee;
  align-items: center;
}

/* Parchment tag picker */
.page-journal .dr-tag-picker {
  background: rgba(255, 250, 240, 0.35);
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-tag-picker-item {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: #fff;
  color: #5e6470;
  border: 1px solid #e0e3ea;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

/* Parchment tag picker items */
.page-journal .dr-tag-picker-item {
  background: rgba(255, 250, 240, 0.5);
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-tag-picker-item:hover {
  border-color: #667eea;
  color: #667eea;
}

.dr-tag-picker-item.suggested {
  border-style: dashed;
  color: #98a0ad;
}

.dr-tag-picker-item.suggested:hover {
  border-style: solid;
  color: #667eea;
  border-color: #667eea;
}

.dr-tag-picker-input {
  border: none;
  outline: none;
  font-size: 11px;
  font-family: inherit;
  color: #333;
  background: transparent;
  width: 100px;
  padding: 3px 4px;
}

.dr-tag-picker-input::placeholder {
  color: #c0c5d0;
}

/* ── Mood label on entries ── */
.dr-mood {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #764ba2;
  margin-top: 8px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 10px;
  background: #faf0ff;
  border: 1px solid #e4dff0;
  transition: all 0.15s;
}

/* Parchment mood badge */
.page-journal .dr-mood {
  background: rgba(255, 250, 240, 0.5);
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-mood:hover {
  background: #f0e0ff;
}

.dr-mood-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dr-mood-dot.mood-inspired { background: #f59e0b; }
.dr-mood-dot.mood-challenged { background: #ef4444; }
.dr-mood-dot.mood-calm { background: #10b981; }
.dr-mood-dot.mood-uncertain { background: #8b5cf6; }
.dr-mood-dot.mood-motivated { background: #3b82f6; }

/* ── Mood picker inline ── */
.dr-mood-picker {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.dr-mood-option {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e0e3ea;
  background: #fff;
  color: #5e6470;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Parchment mood options */
.page-journal .dr-mood-option {
  background: rgba(255, 250, 240, 0.5);
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-mood-option:hover {
  border-color: #764ba2;
  color: #764ba2;
}

.dr-mood-option.active {
  background: #764ba2;
  color: #fff;
  border-color: #764ba2;
}

/* ── Save-time tag/mood prompts ── */
.reflection-meta-prompts {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f7f8fb;
  border-radius: 8px;
  border: 1px solid #e6e8ee;
}

/* Parchment meta prompts */
.page-journal .reflection-meta-prompts {
  background: rgba(255, 250, 240, 0.35);
  border-color: rgba(160, 140, 110, 0.2);
}

.reflection-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #98a0ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.reflection-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  align-items: center;
}

.reflection-meta-moods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Delete reflection button ── */
.dr-entry-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.dr-delete-btn {
  font-size: 11px;
  color: #c0c5d0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 6px;
  transition: color 0.15s;
}

.dr-delete-btn:hover {
  color: #dc2626;
}

/* ── Empty journal state ── */
.journal-empty {
  text-align: center;
  padding: 50px 20px;
  color: #98a0ad;
}

.journal-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.journal-empty h2 {
  font-size: 18px;
  color: #5e6470;
  font-weight: 600;
  margin-bottom: 8px;
}

.journal-empty p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 20px;
}

.journal-empty a {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.journal-empty-distinction {
  font-size: 12px;
  color: #98a0ad;
  margin-bottom: 16px;
}
.journal-empty-distinction a {
  display: inline;
  padding: 0;
  background: none;
  color: #8b6914;
  font-weight: 500;
  font-size: inherit;
  text-decoration: none;
}
.journal-empty-distinction a:hover { text-decoration: underline; }

/* ── Daily Reflections section ── */
.daily-reflections-section {
  margin-bottom: 20px;
}

.dr-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dr-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1d23;
}

.dr-subtitle {
  font-size: 12px;
  color: #98a0ad;
  font-weight: 500;
}

.dr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dr-entry {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 18px 20px;
}

/* Parchment daily reflection entries */
.page-journal .dr-entry {
  background: transparent;
  border-color: rgba(160, 140, 110, 0.2);
}

.dr-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dr-mono {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dr-entry-meta {
  min-width: 0;
}

.dr-philosopher {
  font-size: 13px;
  font-weight: 600;
  color: #1a1d23;
}

.dr-date {
  font-size: 11px;
  color: #98a0ad;
}

.dr-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-style: italic;
  color: #5e6470;
  line-height: 1.55;
  margin-bottom: 10px;
}

.dr-prompt {
  font-size: 13px;
  color: #5e6470;
  line-height: 1.5;
  margin-bottom: 10px;
}

.dr-response {
  font-size: 14px;
  color: #1a1d23;
  line-height: 1.6;
  padding: 12px 14px;
  background: #f7f8fb;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

/* Parchment response area */
.page-journal .dr-response {
  background: rgba(255, 250, 240, 0.35);
}

/* ── Journal entries ── */
.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-entry {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.journal-entry:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Parchment journal entries */
.page-journal .journal-entry {
  background: transparent;
  border-color: rgba(160, 140, 110, 0.2);
  box-shadow: none;
}
.page-journal .journal-entry:hover {
  background: rgba(255, 250, 240, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(160, 140, 110, 0.35);
  box-shadow: none;
}

.journal-entry-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.journal-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.journal-entry-header-text {
  flex: 1;
}

.journal-entry-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.journal-entry-header .entry-framework {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

.journal-entry-bio {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.journal-school-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.12);
}

.journal-entry-meta {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  flex-shrink: 0;
}

.entry-section {
  margin-bottom: 12px;
}

.entry-section:last-of-type {
  margin-bottom: 0;
}

.entry-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.entry-section-text {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.entry-quote {
  font-size: 14px;
  line-height: 1.6;
  color: #667eea;
  font-style: italic;
  padding: 10px 16px;
  background: #f8f8ff;
  border-radius: 6px;
  margin-top: 4px;
}

/* Parchment entry quote */
.page-journal .entry-quote {
  background: rgba(255, 250, 240, 0.35);
}

.entry-context {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* Parchment context border */
.page-journal .entry-context {
  border-top-color: rgba(160, 140, 110, 0.15);
}

.entry-context-label {
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.entry-context-text {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  font-style: italic;
}

/* ── Featured reflection card ── */
.reflection-featured {
  display: none;
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f7ff 0%, #faf0ff 100%);
  border: 1px solid #e4dff0;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(118, 75, 162, 0.08);
}

/* Parchment featured reflection */
.page-journal .reflection-featured {
  background: rgba(255, 250, 240, 0.4);
  border-color: rgba(160, 140, 110, 0.25);
  box-shadow: none;
}

.reflection-featured.active {
  display: block;
}

.reflection-featured-label {
  font-size: 11px;
  font-weight: 600;
  color: #764ba2;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.reflection-featured-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.reflection-featured-monogram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  flex-shrink: 0;
}

.reflection-featured-philosopher {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.reflection-featured-context {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 2px;
}

.reflection-prompt-text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
  font-style: italic;
}

.reflection-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.7;
  color: #333;
  transition: border-color 0.3s;
  background: white;
}

/* Parchment reflection textarea */
.page-journal .reflection-textarea {
  background: rgba(255, 250, 240, 0.6);
  border-color: rgba(200, 190, 170, 0.4);
}

.reflection-textarea:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.08);
}

.reflection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.reflection-save-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.reflection-save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reflection-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reflection-skip-btn {
  padding: 8px 16px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.reflection-skip-btn:hover {
  background: #f5f5f5;
  color: #666;
}

/* Parchment skip button */
.page-journal .reflection-skip-btn {
  border-color: rgba(160, 140, 110, 0.25);
}
.page-journal .reflection-skip-btn:hover {
  background: rgba(255, 250, 240, 0.5);
}

.reflection-saved-msg {
  display: none;
  font-size: 13px;
  color: #764ba2;
  font-weight: 500;
}

.reflection-saved-msg.visible {
  display: inline;
}

.reflection-refresh-btn {
  padding: 8px 16px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reflection-refresh-btn:hover {
  background: #f5f5f5;
  color: #666;
}

/* Parchment refresh button */
.page-journal .reflection-refresh-btn {
  border-color: rgba(160, 140, 110, 0.25);
}
.page-journal .reflection-refresh-btn:hover {
  background: rgba(255, 250, 240, 0.5);
}

.reflection-refresh-btn .refresh-icon {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.reflection-refresh-btn:active .refresh-icon {
  transform: rotate(180deg);
}

.reflection-nudge {
  display: none;
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 6px;
}

.reflection-nudge.visible {
  display: block;
}

/* ── Saved reflection on entries ── */
.entry-reflection {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f7ff 0%, #faf0ff 100%);
  border-radius: 8px;
}

/* Parchment saved reflection */
.page-journal .entry-reflection {
  background: rgba(255, 250, 240, 0.35);
}

.entry-reflection.active {
  display: block;
}

.entry-reflection-label {
  font-size: 11px;
  font-weight: 600;
  color: #764ba2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.entry-reflection-prompt {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}

.entry-reflection-text {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.entry-reflection-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 8px;
}

/* ── Entry actions ── */
.entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* Parchment entry action borders */
.page-journal .entry-actions {
  border-top-color: rgba(160, 140, 110, 0.15);
}

.entry-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: #888;
  font-family: inherit;
}

/* Parchment action buttons */
.page-journal .entry-action-btn {
  background: transparent;
  border-color: rgba(160, 140, 110, 0.2);
}
.page-journal .entry-action-btn:hover {
  background: rgba(255, 250, 240, 0.5);
}

.entry-action-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
  color: #666;
}

.entry-action-btn.remove-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.entry-actions-spacer {
  flex: 1;
}

/* ── Next step card variant ── */
.journal-entry.next-step-entry {
  border-left: 3px solid #764ba2;
}

/* ── Vent prompt ── */
.vent-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  margin-top: 24px;
  background: #fafafe;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.vent-prompt:hover {
  background: #f0f0ff;
  border-color: #d0d0ee;
}

/* Parchment vent prompt */
.page-journal .vent-prompt {
  background: transparent;
  border-color: rgba(160, 140, 110, 0.2);
}
.page-journal .vent-prompt:hover {
  background: rgba(255, 250, 240, 0.45);
  border-color: rgba(160, 140, 110, 0.35);
}

.vent-prompt-icon {
  font-size: 20px;
}

.vent-prompt-text {
  font-size: 14px;
  color: #666;
}

.vent-prompt-text strong {
  color: #444;
}

/* ── Mobile responsive: journal-specific ── */
@media (max-width: 600px) {
  .header h1 {
    font-size: 22px;
  }

  .header-top {
    flex-direction: column;
    gap: 10px;
  }

  /* .back-link mobile rules in shared.css */

  .content {
    padding: 20px 15px;
  }

  .journal-entry {
    padding: 18px;
  }

  .journal-monogram {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .journal-entry-header {
    flex-wrap: wrap;
  }

  .journal-entry-meta {
    text-align: left;
    width: 100%;
    margin-top: 4px;
  }

  .journal-filter-label {
    width: 100%;
    margin-bottom: -2px;
  }

  .journal-filter-row {
    flex-wrap: wrap;
  }

  .journal-sort-toggle {
    margin-left: 0;
  }
}
