/* Entry 003 — Negotiating settings
   Scene art direction: dusk over still water. A dark frosted-glass
   consent object floats against a mauve-rose horizon. One yellow accent. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

.settings-scene {
  display: grid;
  place-items: center;
  min-height: 740px;
  padding: 72px 32px;
  border-color: rgba(54, 36, 52, 0.5);
  /* background-first: dusk over still water carries the scene */
  background-image:
    linear-gradient(180deg, rgba(40, 32, 52, 0.34) 0%, rgba(58, 46, 72, 0.18) 42%, rgba(28, 22, 38, 0.62) 100%),
    url("../../public/media/backgrounds/cool-07-dejan.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* dunes replaced by the photograph */
.dune {
  display: none;
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(22px);
}

.dune-far {
  left: -12%;
  right: 38%;
  top: 48%;
  height: 30%;
  background: rgba(94, 64, 92, 0.55);
}

.dune-near {
  left: 30%;
  right: -15%;
  top: 56%;
  height: 42%;
  background: rgba(58, 40, 66, 0.7);
}

/* ---- the consent object: dark frosted glass ------------------------- */

.settings-app {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 168px 1fr 220px;
  gap: 14px;
  border-radius: 36px;
  background: linear-gradient(165deg, rgba(52, 40, 56, 0.55), rgba(28, 22, 36, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 48px 110px rgba(24, 12, 30, 0.55);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  padding: 20px;
  font-family: var(--ui-sans);
  color: #f6efe7;
}

/* ---- nav ---------------------------------------------------------------- */

.settings-nav {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  padding: 8px 4px;
}

.settings-nav span {
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(246, 239, 231, 0.65);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

.settings-nav span:first-child {
  background: #f6efe7;
  color: #241c2c;
}

/* ---- negotiation ---------------------------------------------------------- */

.negotiation-panel {
  padding: 22px 18px;
}

.agent-label {
  margin: 0 0 10px;
  color: #f3cf5a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.negotiation-panel h3 {
  margin: 0 0 22px;
  max-width: 440px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.04;
  color: #fdf8f1;
}

.dialogue {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.dialogue p {
  margin: 0;
  max-width: 540px;
  border-radius: 22px;
  padding: 15px 18px;
  font-size: 13.5px;
  line-height: 1.45;
}

.dialogue .user {
  justify-self: end;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f6efe7;
}

.dialogue .agent {
  background: #f3cf5a;
  color: #33270a;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bundle {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bundle span {
  color: #fdf8f1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bundle small {
  color: rgba(246, 239, 231, 0.6);
  font-size: 11px;
  line-height: 1.4;
}

.bundle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.bundle.active {
  border-color: #f3cf5a;
  background: #f3cf5a;
}

.bundle.active span { color: #33270a; }
.bundle.active small { color: rgba(51, 39, 10, 0.7); }

/* ---- tradeoffs --------------------------------------------------------------- */

.tradeoff-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(20, 15, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tradeoff-panel > p {
  margin: 0;
  color: rgba(246, 239, 231, 0.55);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tradeoff {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 11px;
}

.tradeoff span,
.tradeoff strong {
  display: block;
}

.tradeoff span {
  color: rgba(246, 239, 231, 0.55);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tradeoff strong {
  margin-top: 5px;
  color: #fdf8f1;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: opacity 160ms ease;
}

.tradeoff strong.swapping { opacity: 0; }

/* ---- small screens ------------------------------------------------------------- */

@media (max-width: 880px) {
  .settings-scene { padding: 44px 18px; min-height: 0; }

  .settings-app {
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

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

  .dialogue,
  .bundle-grid {
    grid-template-columns: 1fr;
  }
}
