/* Observer Weather Intelligence Shell — shared across ecosystem sites */

.obs-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #eef4fc;
  background: #060d18;
}

.obs-shell__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02);
  z-index: 0;
}

.obs-shell__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    118deg,
    rgba(6, 12, 22, 0.92) 0%,
    rgba(8, 18, 34, 0.78) 42%,
    rgba(5, 10, 18, 0.88) 100%
  );
}

.obs-shell__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 24px;
}

.obs-shell__grid {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: stretch;
}

.obs-shell__device-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.obs-shell__device-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.obs-shell__device-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 62%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126, 184, 247, 0.45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.obs-shell__device-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: min(62vh, 520px);
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}

.obs-shell__brand {
  margin-top: 18px;
  text-align: center;
}

.obs-shell__brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.obs-shell__brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.obs-shell__brand-name {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.obs-shell__brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7eb8f7;
}

.obs-shell__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(126, 184, 247, 0.22);
  background: linear-gradient(155deg, rgba(12, 22, 38, 0.94), rgba(8, 14, 26, 0.88));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  min-height: 420px;
}

.obs-shell__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.obs-shell__kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7eb8f7;
}

.obs-shell__location-select {
  min-width: min(100%, 280px);
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid rgba(126, 184, 247, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.obs-shell__hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.obs-shell__temp {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

.obs-shell__condition {
  font-size: 14px;
  font-weight: 600;
  color: rgba(220, 232, 248, 0.88);
}

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

.obs-shell__metric {
  padding: 12px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.obs-shell__metric-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 220, 245, 0.72);
  margin-bottom: 6px;
}

.obs-shell__metric-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.obs-shell__score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid rgba(126, 184, 247, 0.2);
  background: rgba(126, 184, 247, 0.06);
}

.obs-shell__score-ring {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.obs-shell__score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}

.obs-shell__score-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.obs-shell__score-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7eb8f7;
}

.obs-shell__score-copy span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(220, 232, 248, 0.86);
  line-height: 1.4;
}

.obs-shell__forecast {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obs-shell__forecast-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.obs-shell__forecast-hour {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
}

.obs-shell__forecast-hour time {
  display: block;
  font-weight: 700;
  color: rgba(200, 220, 245, 0.75);
  margin-bottom: 4px;
}

.obs-shell__forecast-hour strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.obs-shell__best-window {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(220, 232, 248, 0.9);
}

.obs-shell__best-window em {
  font-style: normal;
  font-weight: 800;
  color: #7eb8f7;
}

.obs-shell__toggle {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(126, 184, 247, 0.35);
  border-radius: 2px;
  background: rgba(126, 184, 247, 0.1);
  color: #d8ebff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.obs-shell__toggle:hover,
.obs-shell__toggle:focus-visible {
  background: rgba(126, 184, 247, 0.18);
  border-color: rgba(126, 184, 247, 0.55);
  outline: none;
}

.obs-shell__toggle-icon {
  transition: transform 0.25s ease;
}

.obs-shell.is-intelligence-open .obs-shell__toggle-icon {
  transform: rotate(180deg);
}

.obs-shell__intelligence {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.obs-shell.is-intelligence-open .obs-shell__intelligence {
  grid-template-rows: 1fr;
}

.obs-shell__intelligence-inner {
  overflow: hidden;
}

.obs-shell__intelligence-panel {
  margin-top: 16px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(126, 184, 247, 0.18);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.96), rgba(5, 10, 18, 0.98));
}

.obs-shell__intelligence-head {
  margin-bottom: 14px;
}

.obs-shell__intelligence-head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

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

.obs-shell__intel-item {
  padding: 14px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.obs-shell__intel-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 220, 245, 0.7);
  margin-bottom: 6px;
}

.obs-shell__intel-item strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.obs-shell__recommendation {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid #7eb8f7;
  background: rgba(126, 184, 247, 0.08);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(230, 240, 252, 0.92);
}

.obs-shell__status {
  padding: 18px;
  font-size: 14px;
  color: rgba(220, 232, 248, 0.78);
}

.obs-shell__status--error {
  color: #ffb4b4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .obs-shell__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .obs-shell__device-col {
    min-height: 320px;
  }

  .obs-shell__device-img {
    height: min(48vh, 380px);
  }

  .obs-shell__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .obs-shell__intel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .obs-shell__inner {
    padding: 18px 14px 16px;
  }

  .obs-shell__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .obs-shell__device-col {
    min-height: auto;
    padding-top: 4px;
  }

  .obs-shell__device-wrap {
    max-width: 220px;
  }

  .obs-shell__device-img {
    height: min(36vh, 280px);
    max-height: 280px;
  }

  .obs-shell__panel {
    min-height: 0;
    padding: 16px 14px 14px;
  }

  .obs-shell__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .obs-shell__intel-grid {
    grid-template-columns: 1fr;
  }

  .obs-shell__location-select {
    width: 100%;
  }
}
