/* Entry 004 — Notifications as weather
   Scene art direction: a living sky. Mauve-violet cloudscape whose
   color temperature follows attention pressure. Glass instruments float
   in front, like a cockpit reading the conditions. */

.sky-scene {
  display: grid;
  place-items: center;
  min-height: 740px;
  padding: 72px 32px;
  border-color: rgba(44, 36, 60, 0.45);
  transition: background 1100ms ease;
  background:
    radial-gradient(80% 42% at 50% 114%, rgba(222, 196, 228, 0.42), transparent 64%),
    linear-gradient(180deg, #423858 0%, #65547d 34%, #917597 62%, #c6a0b2 100%);
}

/* weather states recolor the whole sky */
.sky-scene[data-weather="storm"] {
  background:
    radial-gradient(ellipse 80% 40% at 50% 112%, rgba(140, 116, 160, 0.55), transparent 65%),
    linear-gradient(180deg, #211d31 0%, #322a49 38%, #4a3a5e 68%, #6a4f6e 100%);
}

.sky-scene[data-weather="clearing"] {
  background:
    radial-gradient(ellipse 80% 42% at 50% 108%, rgba(255, 206, 180, 0.55), transparent 65%),
    linear-gradient(180deg, #5e5478 0%, #8a6f93 36%, #c490a0 66%, #eec3ab 100%);
}

.sky-scene[data-weather="clear"] {
  background:
    radial-gradient(ellipse 80% 42% at 50% 108%, rgba(255, 232, 198, 0.6), transparent 65%),
    linear-gradient(180deg, #7e90b0 0%, #a4aec4 34%, #d3c8cd 62%, #f4ddc4 100%);
}

/* drifting cloud bands */
.cloud-layer {
  position: absolute;
  inset: -12%;
  z-index: 0;
  /* real clouds, drifting and tinted by whichever weather the sky is in */
  background-image: url("../../public/media/backgrounds/pastel-07-mohammad.jpg");
  background-size: cover;
  background-position: center 40%;
  mix-blend-mode: soft-light;
  opacity: 0.72;
  filter: blur(1px) saturate(1.05);
  animation: drift 26s ease-in-out infinite alternate;
  transition: opacity 1100ms ease;
}

.sky-scene[data-weather="storm"] .cloud-layer { opacity: 0.55; }
.sky-scene[data-weather="clear"] .cloud-layer { opacity: 0.8; }

@keyframes drift {
  from { transform: translateX(-2.5%); }
  to { transform: translateX(2.5%); }
}

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

/* ---- instruments ------------------------------------------------------ */

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

.sky-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 250, 245, 0.6);
}

.sky-state {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 84px);
  font-weight: 450;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fdf9f4;
  text-shadow: 0 4px 40px rgba(30, 20, 50, 0.35);
}

.sky-read {
  margin: 0;
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 250, 245, 0.78);
}

/* the one approaching front — a glass pill, like a now-playing capsule */
.front-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: rgba(28, 22, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(18, 12, 36, 0.35);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  text-align: left;
  transition: opacity 600ms ease, transform 600ms ease;
}

.front-pill.gone {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.front-dot {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 60% 65%, #b9a0e8, #6d5b9e);
  box-shadow: 0 0 18px rgba(185, 160, 232, 0.6);
}

.front-text { display: grid; gap: 2px; }

.front-text strong {
  font-size: 14px;
  font-weight: 650;
  color: #fdf9f4;
}

.front-text small {
  font-size: 12px;
  color: rgba(255, 250, 245, 0.62);
}

.front-time {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(255, 250, 245, 0.8);
  white-space: nowrap;
}

/* forecast strip */
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 26px;
  background: rgba(28, 22, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 60px rgba(18, 12, 36, 0.3);
}

.wbtn {
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  padding: 12px 8px;
  cursor: pointer;
  transition: background 200ms ease;
}

.wbtn-state {
  font: 650 13px/1.1 var(--ui-sans);
  color: rgba(255, 250, 245, 0.85);
}

.wbtn-when {
  font: 500 11px/1 var(--ui-sans);
  color: rgba(255, 250, 245, 0.5);
}

.wbtn:hover { background: rgba(255, 255, 255, 0.08); }

.wbtn.active { background: rgba(253, 249, 244, 0.92); }
.wbtn.active .wbtn-state { color: #2c2438; }
.wbtn.active .wbtn-when { color: rgba(44, 36, 56, 0.55); }

@media (max-width: 640px) {
  .sky-scene { padding: 48px 18px; min-height: 620px; }

  .forecast-strip { grid-template-columns: repeat(2, 1fr); }

  .front-pill { width: 100%; }
}
