/* ==========================================================================
   Screen 7 — EU MRL Alert (red-zone pesticide)
   ========================================================================== */

/* ---- Hero: alert band --------------------------------------------------- */

/* An alert, so the header's accents are danger red rather than the stage colour */
.alert-hero {
  border-color: var(--danger-line);
  background:
    radial-gradient(520px 260px at 100% 0%, rgb(198 40 40 / 0.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fffafa 100%);
}

.alert-hero .page-head__visual {
  background:
    radial-gradient(260px 200px at 70% 30%, rgb(255 138 128 / 0.35), transparent 70%),
    linear-gradient(135deg, #7f1010 0%, #b71c1c 55%, #e53935 100%);
  box-shadow: 0 18px 34px -20px rgb(183 28 28 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.alert-flag {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
}

.alert-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  color: var(--danger-ink);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
}

/* Big "prohibited" seal with pulsing warning rings */
.alert-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 55%),
    rgba(255, 255, 255, 0.14);
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

.alert-seal::before,
.alert-seal::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 205, 210, 0.7);
  animation: alert-ring 2.4s var(--ease-out) infinite;
}

.alert-seal::after {
  animation-delay: 1.2s;
}

@keyframes alert-ring {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.alert-seal__icon {
  font-size: 68px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

/* ---- Detected chemical -------------------------------------------------- */

.detect-card {
  display: flex;
  flex-direction: column;
  border-color: var(--tone-line);
}

.detect-card .card__strip-title {
  font-size: var(--fs-md);
  line-height: 1.4;
}

.detect-card .card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 24px;
}

.detect-kv .kv__row {
  align-items: center;
  padding: 12px 0;
}

.detect-kv .kv__key {
  font-size: var(--fs-sm);
}

.detect-kv .kv__val {
  font-size: var(--fs-base);
}

.detect-kv__risk .kv__val {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
}

.detect-chain {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.75;
  font-weight: 550;
  color: #b71c1c;
  background: var(--danger-soft);
  border-left: 3px solid #c62828;
}

/* ---- Traffic light ------------------------------------------------------ */

.lights {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.light {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}

.light:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.light__dot {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent),
    0 0 14px 2px color-mix(in srgb, var(--tone) 45%, transparent),
    inset 0 -3px 5px rgba(0, 0, 0, 0.2);
}

.light__body {
  min-width: 0;
}

.light__name {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--tone-ink);
}

.light__desc {
  margin-top: 4px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-600);
}

/* ---- Substitutes -------------------------------------------------------- */

.subs {
  padding: 0;
  list-style: none;
}

.sub-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tone-line);
}

.sub-option__name {
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.45;
  color: #2e7d32;
}

.sub-option .tag--solid {
  flex-shrink: 0;
  background: #1b5e20;
}

/* ---- Two side-by-side CTAs --------------------------------------------- */

.alert-actions .action-bar__actions {
  flex: 1;
  flex-wrap: nowrap;
}

.alert-actions .action-bar__actions > .btn {
  flex: 1 1 0;
}

.btn:hover .btn__icon--lead {
  transform: none;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .alert-seal {
    width: 112px;
    height: 112px;
  }

  .alert-seal__icon {
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  .alert-actions .action-bar__actions > .btn {
    flex: none;
  }
}
