/* Entry 006 — Inbox by emotional weight (rebuilt)
   Scene art direction: a real over-/under-water photograph — warm light at the
   surface falling to dark teal deep. Light messages float bright near the top;
   the one heavy message sinks into the dark, lit by a single warm glow that
   echoes the sunset above. One accent: that warm amber, the heavy message only.
   Crisper glass, fewer cards. Serif voice (Lora) for what actually matters. */

.ocean-scene {
  --warm: #f3a268;            /* the one accent — the heavy message's glow */
  --warm-glow: rgba(243, 162, 104, 0.5);
  position: relative;
  display: grid;
  place-items: center;
  min-height: 800px;
  padding: 64px 32px;
  border-color: rgba(6, 24, 30, 0.7);
  /* the photo carries the depth; the scrim only deepens the very bottom,
     layered (radial + soft linear) so the long ramp never bands */
  background:
    radial-gradient(120% 80% at 50% 4%, rgba(255, 232, 200, 0.12), transparent 46%),
    linear-gradient(180deg, transparent 0%, transparent 54%, rgba(5, 18, 28, 0.34) 78%, rgba(3, 12, 22, 0.72) 100%),
    url("../../public/media/backgrounds/dark-green-05-cristian.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* light shafts from the surface */
.sun-shafts {
  position: absolute;
  inset: -4% -10% auto;
  height: 64%;
  z-index: 0;
  background:
    linear-gradient(168deg, transparent 30%, rgba(255, 240, 214, 0.12) 32%, transparent 37%),
    linear-gradient(172deg, transparent 44%, rgba(255, 240, 214, 0.09) 46%, transparent 52%),
    linear-gradient(165deg, transparent 58%, rgba(255, 240, 214, 0.07) 60%, transparent 66%);
  filter: blur(10px);
  mask-image: linear-gradient(180deg, black, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 90%);
}

/* ---- ui ------------------------------------------------------------------ */
.ocean-ui {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  display: grid;
  gap: 18px;
  font-family: var(--ui-sans);
}

.ocean-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.depth-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 252, 250, 0.78);
}
.depth-meter i {
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 244, 224, 0.9), rgba(120, 180, 180, 0.2));
}

.dive-toggle {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(8, 28, 38, 0.4);
  padding: 11px 18px;
  font: 600 12.5px/1 var(--ui-sans);
  color: #f2fbf9;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background 200ms ease, border-color 200ms ease;
}
.dive-toggle:hover { background: rgba(8, 28, 38, 0.6); border-color: rgba(255, 255, 255, 0.75); }

/* ---- the water column ------------------------------------------------------ */
.float-zone {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 440px;
  align-content: start;
}

.msg {
  width: min(400px, 92%);
  border-radius: 20px;
  padding: 15px 17px;
  cursor: pointer;
  outline: none;
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 300ms ease, opacity 600ms ease, filter 600ms ease;
  animation: bob 7s ease-in-out infinite alternate;
}
.msg:nth-child(odd) { animation-duration: 8.5s; animation-delay: -3s; }

@keyframes bob {
  from { translate: 0 -3px; }
  to { translate: 0 3px; }
}
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }

.msg-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}
.msg strong { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.msg p { margin: 0; font-size: 13px; line-height: 1.42; }

.w-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* depth 1: floating in the sun — bright paper */
.depth-1 {
  justify-self: start;
  margin-left: 4%;
  background: rgba(253, 255, 254, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(8, 50, 58, 0.28);
  color: #163b40;
}
.depth-1 p { color: #4a6e6c; }
.depth-1 .w-tag { color: #7c9a96; }      /* cool, recessive — not an accent */

.msg-b { justify-self: end; margin-right: 6%; margin-top: -2px; }

/* depth 2: mid-water glass — crisper */
.depth-2 {
  justify-self: center;
  margin-top: 26px;
  background: rgba(214, 240, 238, 0.16);
  border: 1px solid rgba(236, 252, 250, 0.45);
  box-shadow: 0 22px 50px rgba(5, 36, 46, 0.4);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  color: #f1fcfa;
}
.depth-2 p { color: rgba(241, 252, 250, 0.82); }
.depth-2 .w-tag { color: rgba(200, 236, 232, 0.85); }   /* cool */

/* depth 3: the deep — dark glass, the ONE warm glow */
.depth-3 {
  justify-self: start;
  margin-left: 9%;
  margin-top: 44px;
  background: rgba(5, 22, 32, 0.5);
  border: 1px solid rgba(243, 162, 104, 0.3);
  box-shadow:
    0 28px 64px rgba(2, 12, 20, 0.6),
    0 0 44px var(--warm-glow);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: #fdf3ea;
}
.depth-3 .w-tag { color: var(--warm); }
.msg-quote {
  font-family: "Lora", var(--serif);
  font-style: italic;
  font-size: 15px !important;
  line-height: 1.4;
  color: #fbe6d4 !important;
}

.msg:hover,
.msg:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 30px 70px rgba(2, 12, 20, 0.55);
  z-index: 2;
}
.depth-3:hover, .depth-3:focus-visible {
  box-shadow: 0 32px 76px rgba(2, 12, 20, 0.62), 0 0 56px var(--warm-glow);
}

/* ---- dive mode: shallows blur away, the deep comes close ---------------------- */
.ocean-scene.diving .depth-1 { opacity: 0.22; filter: blur(3px); transform: translateY(-28px) scale(0.96); }
.ocean-scene.diving .depth-2 { opacity: 0.46; filter: blur(1.5px); transform: translateY(-14px); }
.ocean-scene.diving .depth-3 {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 36px 84px rgba(2, 12, 20, 0.68), 0 0 64px var(--warm-glow);
}

.ocean-note {
  margin: 4px auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: "Lora", var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(245, 250, 248, 0.82);
  text-shadow: 0 2px 18px rgba(2, 12, 20, 0.5);
}

@media (max-width: 640px) {
  .ocean-scene { padding: 36px 16px; min-height: 0; }
  .ocean-head { flex-direction: column; align-items: stretch; }
  .depth-meter { justify-content: center; }
  .msg, .depth-1, .msg-b, .depth-2, .depth-3 {
    justify-self: stretch; width: 100%; margin-left: 0; margin-right: 0;
  }
}
