/* Yuelao Love Oracle — RT-CHN-105
   月老靈籤 (love / 姻緣 oracle). Widget styling scopes the yl-* result
   components; the form shell + ad/section styling come from the platform
   tool layout. ROSE / pink theme (accent #DB2777). Loaded automatically by
   show.blade.php when present. Folklore / entertainment only. */

.yl-form { display: flex; flex-direction: column; gap: 14px; }

.yl-disclaimer {
  padding: 10px 14px; background: #FCE7F3; border-left: 3px solid #DB2777;
  border-radius: 0 6px 6px 0; font-size: 12.5px; color: var(--rt-accent); line-height: 1.5;
}

.yl-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px;
  background: var(--rt-surface-2); border: 1px solid var(--rt-hairline); border-radius: 8px;
}
.yl-field { display: flex; flex-direction: column; gap: 4px; }
.yl-field label {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.yl-field input {
  padding: 10px 12px; border: 1px solid var(--rt-hairline); border-radius: 6px;
  font-size: 15px; background: #fff; width: 110px;
}
.yl-field input:focus {
  outline: none; border-color: #DB2777; box-shadow: 0 0 0 3px rgba(219,39,119,.12);
}

.yl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yl-btn {
  padding: 10px 18px; font-size: 13px; border-radius: 6px; cursor: pointer;
  font-family: var(--rt-font-mono); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.yl-btn-go { background: #DB2777; color: #fff; border: 1px solid #BE185D; }
.yl-btn-go:hover { background: #BE185D; }
.yl-btn-alt { background: #fff; color: #BE185D; border: 1px solid rgba(219,39,119,.4); }
.yl-btn-alt:hover { background: #FCE7F3; }

.yl-results { padding: 0; background: transparent; }
.yl-empty { padding: 16px; text-align: center; color: var(--rt-ink-muted); font-style: italic; }

/* ====================================================================
   籤紙 — the physical oracle-lot paper (replaces the old dark result box).
   Warm parchment ground + thick RED frame; dark ink on cream. A rose accent
   is reserved for the love/姻緣 note to keep the 月老 framing.
   ==================================================================== */
.yl-paper {
  --yl-paper-bg: #FBF4DD;
  --yl-paper-bg2: #F6ECCB;
  --yl-red: #B0282C;
  --yl-ink: #3A2A18;
  --yl-ink-muted: #7A6A52;

  border: 3px solid var(--yl-red);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--yl-paper-bg) 0%, var(--yl-paper-bg2) 100%);
  color: var(--yl-ink);
  padding: 24px 26px 22px;
  box-shadow: 0 2px 10px rgba(176,40,44,.10), inset 0 0 0 1px rgba(176,40,44,.14);
}

.yl-paper-head {
  display: flex; align-items: center; gap: 10px 14px;
  flex-wrap: wrap; margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(176,40,44,.35);
}
.yl-paper-title {
  font-family: var(--rt-font-serif, serif);
  font-size: 16px; font-weight: 700; color: var(--yl-red); letter-spacing: .12em;
}
.yl-paper-no {
  font-family: var(--rt-font-serif, serif);
  font-size: 24px; font-weight: 800; color: var(--yl-red);
  letter-spacing: .02em; margin-right: auto;
}
.yl-level {
  font-family: var(--rt-font-mono, monospace);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.yl-lvl-best.yl-level { background: #DDF0DD; color: #1F6B33; border-color: rgba(31,107,51,.35); }
.yl-lvl-mid.yl-level  { background: #F7E9C4; color: #8A5A12; border-color: rgba(138,90,18,.35); }
.yl-lvl-bad.yl-level  { background: #F3D9C9; color: #9A3324; border-color: rgba(154,51,36,.35); }

/* 籤詩 (poem): red, larger, centred. */
.yl-poem { text-align: center; margin-bottom: 14px; }
.yl-poem-line {
  margin: 0 0 8px;
  font-family: var(--rt-font-serif, serif);
  font-size: 20px; line-height: 1.85; color: var(--yl-red);
  font-weight: 600; letter-spacing: .02em;
}
.yl-poem-gloss {
  margin: 0 0 12px;
  font-size: 13px; line-height: 1.6; color: var(--yl-ink-muted); font-style: italic;
}
.yl-poem-gloss:last-child, .yl-poem-line:last-child { margin-bottom: 0; }

/* 典故名 (gushiName) — rarely present for yuelao. */
.yl-gushi {
  margin: 0 0 14px; text-align: center;
  font-size: 14px; color: var(--yl-ink); line-height: 1.6;
}
.yl-gushi-tag { font-weight: 700; color: var(--yl-red); }
.yl-gushi-en { display: block; font-size: 12.5px; color: var(--yl-ink-muted); font-style: italic; }

/* 解曰 (jie) reading block. */
.yl-section { margin: 0 0 14px; }
.yl-section-head {
  margin: 0 0 8px;
  font-family: var(--rt-font-serif, serif);
  font-size: 15px; font-weight: 700; color: var(--yl-red); letter-spacing: .04em;
  padding-bottom: 4px; border-bottom: 1px solid rgba(176,40,44,.22);
}
.yl-block { margin: 0; }
.yl-block-line { margin: 0 0 5px; font-size: 14px; line-height: 1.7; color: var(--yl-ink); }
.yl-block-line:last-child { margin-bottom: 0; }
.yl-block-en { color: var(--yl-ink-muted); }

.yl-block-sub { margin-top: 10px; }
.yl-sub-label {
  display: inline-block; margin-bottom: 5px;
  font-family: var(--rt-font-mono, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--yl-ink-muted);
  padding: 2px 8px; border: 1px solid rgba(122,106,82,.35);
  border-radius: 999px; background: rgba(255,255,255,.35);
}

/* 典故 (story) — collapsible (omitted entirely for yuelao's empty stories). */
.yl-story { border-top: 1px dashed rgba(176,40,44,.35); padding-top: 12px; margin-bottom: 14px; }
.yl-story-summary {
  cursor: pointer; list-style: none;
  font-family: var(--rt-font-serif, serif);
  font-size: 15px; font-weight: 700; color: var(--yl-red); letter-spacing: .04em;
  display: flex; align-items: center; gap: 6px;
}
.yl-story-summary::-webkit-details-marker { display: none; }
.yl-story-summary::before {
  content: '▸'; font-size: 12px; transition: transform .15s ease; color: var(--yl-red);
}
.yl-story[open] > .yl-story-summary::before { transform: rotate(90deg); }
.yl-story-body { margin-top: 10px; }

/* Love / 姻緣 note — keeps the 月老 framing, rose accent on the parchment. */
.yl-love-note {
  margin: 0; padding: 12px 16px;
  background: rgba(252,231,243,.55); border-left: 3px solid #DB2777;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px; color: var(--yl-ink); line-height: 1.6;
}
.yl-level-legend { font-size: 11.5px; color: var(--yl-ink-muted); margin-top: 12px; }

/* Browse-all list */
.yl-browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.yl-browse-card {
  padding: 12px 14px; background: #fff; border: 1px solid var(--rt-hairline);
  border-radius: 8px; cursor: pointer; transition: border-color 140ms ease, box-shadow 140ms ease;
}
.yl-browse-card:hover { border-color: #DB2777; box-shadow: 0 0 0 3px rgba(219,39,119,.10); }
.yl-browse-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.yl-browse-num { font-family: var(--rt-font-mono); font-size: 12px; color: var(--rt-ink-muted); font-weight: 700; }
.yl-browse-level { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; }
.yl-browse-poem {
  font-family: var(--rt-font-serif, var(--rt-font-sans)); font-size: 14px; line-height: 1.6;
  color: var(--rt-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
