
/* Literary Parlor - Dialogue Ledger Widget Styles */
.parlor-ledger {
  background: #FAF3F0;
  border: 4px double #7A1C1C;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(122, 28, 28, 0.15);
  color: #3E0F0F;
  font-family: var(--cosy-font-serif, 'Fraunces', Georgia, serif), serif;
  text-align: left;
}
.ledger-header {
  border-bottom: 2px solid #7A1C1C;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--cosy-font-sans, system-ui, sans-serif), sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A1C1C;
  font-weight: 700;
}
.ledger-screen {
  background: #FFFDF9;
  border: 1px solid #D7CCC8;
  border-radius: 6px;
  padding: 1.2rem;
  min-height: 120px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  overflow-y: auto;
}
.ledger-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2rem;
  background: #7A1C1C;
  margin-left: 2px;
  animation: ledger-blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes ledger-blink {
  from, to { background-color: transparent }
  50% { background-color: #7A1C1C }
}
.ledger-input-wrapper {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}
.ledger-input {
  flex-grow: 1;
  background: #FFF;
  border: 1px solid #7A1C1C;
  border-radius: 6px;
  color: #3E0F0F;
  padding: 0.6rem;
  font-family: var(--cosy-font-sans, system-ui, sans-serif), sans-serif;
  font-size: 0.9rem;
}
.ledger-input:focus {
  outline: none;
  border-color: #A34E4E;
  box-shadow: 0 0 8px rgba(163, 78, 78, 0.4);
}
.ledger-btn {
  background: #7A1C1C;
  color: #FFFEFB;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-family: var(--cosy-font-sans, system-ui, sans-serif), sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ledger-btn:hover {
  background: #A34E4E;
  transform: translateY(-1px);
}
.ledger-hint {
  font-size: 0.72rem;
  font-family: var(--cosy-font-sans, system-ui, sans-serif), sans-serif;
  color: #A34E4E;
  margin-top: 0.5rem;
  text-align: right;
}

/* ─── CLASS-BASED BACKGROUND GRADIENTS FOR SESSION HEROS ─── */
body[class*="theme-longreads-"] {
  --longreads-theme-hero: linear-gradient(135deg, #7A1C1C, #3E0F0F);
}

body[class*="theme-longreads-"] .session-hero {
  background: var(--longreads-theme-hero, linear-gradient(135deg, #7A1C1C, #3E0F0F)) !important;
}

body.theme-longreads-addict .session-hero {
  background: linear-gradient(135deg, #29696D, #153638) !important;
  border-bottom: 2px solid #4E9FA3;
}

body.theme-longreads-attention .session-hero {
  background: linear-gradient(135deg, #1A4345, #0C1F20) !important;
  border-bottom: 2px solid #2B6D70;
}

body.theme-longreads-brains .session-hero {
  background: linear-gradient(135deg, #1E3A3B, #102829) !important;
  border-bottom: 2px solid #335355;
}

body.theme-longreads-breakup .session-hero {
  background: linear-gradient(135deg, #2F797D, #143436) !important;
  border-bottom: 2px solid #399195;
}

/* ─── THEME WATERMARKS ─── */
body[class*="theme-longreads-"]::after {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

body.theme-longreads-addict::after { content: "📱"; }
body.theme-longreads-attention::after { content: "⌛"; }
body.theme-longreads-brains::after { content: "🧠"; }
body.theme-longreads-breakup::after { content: "💔"; }

/* ---------------------------------------------------------------------
 * BRAND THEME OVERRIDE
 *
 * Session themes each carried their own palette, so one page could be
 * pink, another indigo, another amber. They are all the brand ramp now:
 * the theme classes survive as hooks, but they resolve to teal. The
 * attribute selectors outrank the per-theme class rules above.
 * ------------------------------------------------------------------ */

body[class*="theme-longreads-"] {
  --longreads-theme-hero: linear-gradient(135deg, #087A80, #0B4749);
}
