/* Entry 008 — The confessional
   Scene art direction: 3 a.m. A near-black room, one warm beam of light,
   a single luminous question. The interface as a booth. */

.chapel-scene {
  display: grid;
  place-items: center;
  min-height: 780px;
  padding: 80px 32px;
  border-color: rgba(20, 14, 8, 0.7);
  /* background-first: near-black, one warm shaft over the dark */
  background-image:
    radial-gradient(50% 45% at 50% 0%, rgba(255, 186, 110, 0.11), transparent 60%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.58) 0%, rgba(12, 9, 6, 0.40) 50%, rgba(6, 4, 3, 0.72) 100%),
    url("../../public/media/backgrounds/night-03-andrew.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.beam {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 80%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 198, 130, 0.16), rgba(255, 186, 110, 0.05) 55%, transparent 80%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0% 100%);
  filter: blur(18px);
}

/* ---- the booth -------------------------------------------------------- */

.confessional {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
  font-family: var(--ui-sans);
  text-align: center;
}

.hour {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 216, 168, 0.45);
}

.query-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  padding: 18px 26px;
  border-radius: 999px;
  background: rgba(34, 26, 18, 0.6);
  border: 1px solid rgba(255, 198, 130, 0.28);
  box-shadow:
    0 0 60px rgba(255, 186, 110, 0.08),
    0 30px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.query-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 25px);
  color: #ffeed8;
}

.caret {
  width: 2px;
  height: 1.25em;
  background: #ffc782;
  animation: blink-caret 1.1s steps(1) infinite;
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

.confession-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 216, 168, 0.25);
  border-radius: 999px;
  background: transparent;
  padding: 9px 15px;
  font: 600 12px/1 var(--ui-sans);
  color: rgba(255, 226, 188, 0.6);
  cursor: pointer;
  transition: all 180ms ease;
}

.chip:hover { color: #ffeed8; border-color: rgba(255, 216, 168, 0.5); }

.chip.active {
  background: rgba(255, 198, 130, 0.14);
  border-color: rgba(255, 198, 130, 0.6);
  color: #ffeed8;
}

.mode-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(34, 26, 18, 0.55);
  border: 1px solid rgba(255, 216, 168, 0.16);
}

.cmode {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 9px 16px;
  font: 650 11.5px/1 var(--ui-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 226, 188, 0.5);
  cursor: pointer;
  transition: all 180ms ease;
}

.cmode.active {
  background: #ffeed8;
  color: #241708;
}

/* ---- answers ------------------------------------------------------------ */

.answer { width: 100%; min-height: 180px; }

/* the engine: cold, busy, slightly grim parody */
.serp {
  display: grid;
  gap: 10px;
  text-align: left;
}

.serp-item {
  border-radius: 14px;
  background: rgba(240, 244, 252, 0.04);
  border: 1px solid rgba(200, 215, 240, 0.12);
  padding: 13px 16px;
}

.serp-item .s-title {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 650;
  color: #9fb6e8;
}

.serp-item .s-url {
  margin: 0;
  font-size: 11px;
  color: rgba(200, 215, 240, 0.4);
}

.serp-item.s-ad {
  border-style: dashed;
  border-color: rgba(255, 198, 130, 0.3);
}

.serp-item.s-ad .s-title { color: #d7b98f; }

.s-ad-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 198, 130, 0.18);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc782;
}

/* the confessor: one warm voice */
.confessor-says {
  margin: 6px auto 18px;
  max-width: 46ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.55;
  color: #ffeed8;
  text-wrap: pretty;
}

.not-alone {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 216, 168, 0.55);
}

@media (max-width: 640px) {
  .chapel-scene { padding: 52px 18px; min-height: 0; }
}
