/* Ensephra — reflect: a quiet private journaling prompt */

.rf-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(20, 28, 22, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}
.rf-overlay.rf-open { opacity: 1; pointer-events: auto; }

.rf-card {
  position: relative;
  background: #FBFCFA;
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(20,30,24,0.35);
}
.rf-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none; border: none;
  font-size: 1.4rem; line-height: 1;
  color: #a8b2a9; cursor: pointer; padding: 0.3rem;
}
.rf-close:hover { color: var(--ink, #1E2820); }

.rf-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage, #7A9E87); font-weight: 600; margin-bottom: 0.75rem;
}
.rf-prompt {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.3rem; font-weight: 400; color: var(--ink, #1E2820);
  line-height: 1.4; margin-bottom: 1.25rem;
}
.rf-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(122,158,135,0.35);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: var(--sans, inherit);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink, #1E2820);
  background: #fff;
  margin-bottom: 0.5rem;
}
.rf-textarea:focus { outline: none; border-color: var(--sage, #7A9E87); }

.rf-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: #98a199; margin-bottom: 1.35rem;
}
.rf-privacy { display: flex; align-items: center; gap: 0.4rem; }
.rf-privacy svg { width: 12px; height: 12px; stroke: #98a199; fill: none; stroke-width: 1.6; }

.rf-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.rf-btn {
  border-radius: 100px; padding: 0.62rem 1.2rem; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; border: none; transition: transform 0.15s ease, background 0.2s ease;
}
.rf-btn-primary { background: var(--sage, #7A9E87); color: #fff; }
.rf-btn-primary:hover { background: #6a8c77; transform: translateY(-1px); }
.rf-btn-ghost { background: transparent; color: #6b746c; border: 1px solid rgba(122,158,135,0.3); }
.rf-btn-ghost:hover { border-color: var(--sage, #7A9E87); color: var(--ink, #1E2820); }

@media (prefers-reduced-motion: reduce) {
  .rf-overlay { transition: none; }
}
