/* ── Journal & Saved Views (Apple Minimalist & Mobile Native) ── */

/* ── Journal Stats Badges ── */
.journal-header-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(229, 125, 144, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c1);
  flex-shrink: 0;
}

.stat-icon svg { width: 20px; height: 20px; stroke: currentColor; }

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Journal Form Card ── */
.journal-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.journal-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  margin-bottom: 18px;
}

.journal-form-title .icon { color: var(--c1); }

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Mood Picker Grid */
.mood-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 500px) {
  .mood-picker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.mood-picker-btn {
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-family: var(--font);
}

.mood-picker-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.mood-picker-btn.active {
  background: rgba(229, 125, 144, 0.12);
  border-color: var(--c1);
  color: var(--c1);
  font-weight: 700;
}

.mood-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mood-label {
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intensity-slider {
  flex: 1;
  accent-color: var(--c1);
  height: 6px;
  border-radius: 4px;
  background: var(--bg-input);
  outline: none;
}

/* Form inputs */
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  background: var(--bg-card);
  border-color: var(--c1);
  box-shadow: 0 0 0 2px rgba(229, 125, 144, 0.2);
}

.form-textarea {
  min-height: 95px;
  resize: vertical;
}

/* Attached Verse Box */
.attached-verse-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(229, 125, 144, 0.1);
  border: 1px dashed var(--c1);
  border-radius: var(--r-md);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text);
}

.clear-attached-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-weight: 700;
  padding: 2px 6px;
}

/* ── Journal Entries List ── */
.journal-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s;
}

.journal-entry-card:hover {
  transform: translateY(-1px);
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.entry-mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c1);
  background: rgba(229, 125, 144, 0.1);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.intensity-tag {
  font-size: 0.7rem;
  color: var(--text-2);
  font-weight: 600;
  margin-left: 2px;
}

.entry-date {
  font-size: 0.74rem;
  color: var(--text-3);
  font-weight: 600;
}

.entry-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.18s;
}

.entry-delete-btn:hover { color: #ef4444; }
.entry-delete-btn svg { width: 16px; height: 16px; stroke: currentColor; }

.entry-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.entry-note-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.entry-verse-callout {
  background: var(--bg);
  border-left: 3px solid var(--c1);
  padding: 8px 12px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 10px;
}

.callout-ref {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c1);
  margin-bottom: 2px;
}

.callout-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-2);
}

/* ── Saved View ── */
.saved-tabs-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--r-full);
  width: fit-content;
  margin-inline: auto;
}

.saved-tab-btn {
  background: transparent;
  border: none;
  padding: 7px 18px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  transition: all 0.2s;
}

.saved-tab-btn.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.saved-tab-btn .icon svg { width: 15px; height: 15px; }

.saved-items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.saved-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.saved-item-header strong {
  font-size: 0.95rem;
  color: var(--c1);
}

.mini-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: var(--r-sm);
}

.mini-icon-btn:hover { background: var(--bg-input); color: #ef4444; }

.saved-item-text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
  font-style: italic;
}

.saved-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.empty-tab-hint {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  padding: 36px 16px;
}
