/* MDRRMO EWS — weather forecast (desktop + mobile) */
.drrm-weather {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: linear-gradient(
    155deg,
    rgba(8, 62, 78, 0.92) 0%,
    rgba(6, 40, 28, 0.95) 48%,
    rgba(4, 28, 18, 0.98) 100%
  );
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(186, 230, 253, 0.12);
  color: #ecfdf5;
}

.drrm-weather__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(34, 197, 94, 0.12), transparent 50%);
}

.drrm-weather > *:not(.drrm-weather__bg) {
  position: relative;
  z-index: 1;
}

.drrm-weather--state {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drrm-weather--loading {
  border-color: rgba(56, 189, 248, 0.4);
}

.drrm-weather--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(155deg, rgba(40, 20, 20, 0.9), rgba(6, 30, 20, 0.95));
}

.drrm-weather__state-inner {
  text-align: center;
  color: rgba(209, 250, 229, 0.75);
}

.drrm-weather__state-inner i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #7dd3fc;
}

.drrm-weather__state-inner span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.drrm-dash-weather-slot:empty {
  display: none;
}

.drrm-weather__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.drrm-weather__loc {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.drrm-weather__pin {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  font-size: 1rem;
}

.drrm-weather__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.drrm-weather__sub {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: rgba(209, 250, 229, 0.6);
}

.drrm-weather__live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.drrm-weather__live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: drrm-weather-pulse 2s ease-in-out infinite;
}

@keyframes drrm-weather-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.drrm-weather__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.12);
}

.drrm-weather__hero-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.65rem;
  color: #fde68a;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.25), rgba(14, 116, 144, 0.15));
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.drrm-weather__hero-temp {
  margin: 0;
  line-height: 1;
}

.drrm-weather__hero-num {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.drrm-weather__hero-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(209, 250, 229, 0.65);
  margin-left: 0.1rem;
}

.drrm-weather__hero-cond {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(209, 250, 229, 0.78);
}

.drrm-weather__hero-rain {
  text-align: right;
  min-width: 5.5rem;
}

.drrm-weather__hero-rain-lbl {
  display: block;
  font-size: 0.68rem;
  color: rgba(209, 250, 229, 0.55);
  margin-bottom: 0.15rem;
}

.drrm-weather__hero-rain-lbl i {
  margin-right: 0.2rem;
  color: #7dd3fc;
}

.drrm-weather__hero-rain-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #bae6fd;
  margin-bottom: 0.35rem;
}

.drrm-weather__bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.drrm-weather__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.4s ease;
}

.drrm-weather__bar-fill--mid {
  background: linear-gradient(90deg, #22d3ee, #0284c7);
}

.drrm-weather__bar-fill--high {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.drrm-weather__days-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(209, 250, 229, 0.45);
}

.drrm-weather__periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.drrm-weather-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.4rem 0.55rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.12);
  text-align: center;
}

.drrm-weather-period--morning {
  border-color: rgba(250, 204, 21, 0.25);
  background: linear-gradient(165deg, rgba(250, 204, 21, 0.1), rgba(0, 0, 0, 0.22));
}

.drrm-weather-period--afternoon {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.12), rgba(0, 0, 0, 0.22));
}

.drrm-weather-period--evening {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.12), rgba(0, 0, 0, 0.22));
}

.drrm-weather-period--rain-mid {
  border-color: rgba(56, 189, 248, 0.35);
}

.drrm-weather-period--rain-high {
  border-color: rgba(96, 165, 250, 0.45);
}

.drrm-weather-period__label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ecfdf5;
}

.drrm-weather-period__time {
  font-size: 0.58rem;
  color: rgba(209, 250, 229, 0.5);
  margin-bottom: 0.15rem;
}

.drrm-weather-period__icon {
  font-size: 1.35rem;
  color: #bae6fd;
  line-height: 1;
  margin: 0.1rem 0;
}

.drrm-weather-period--morning .drrm-weather-period__icon {
  color: #fde68a;
}

.drrm-weather-period__temp {
  font-size: 1rem;
  font-weight: 800;
}

.drrm-weather-period__cond {
  font-size: 0.62rem;
  color: rgba(209, 250, 229, 0.72);
  line-height: 1.2;
  min-height: 1.5em;
}

.drrm-weather-period__rain {
  font-size: 0.68rem;
  font-weight: 600;
  color: #7dd3fc;
}

.drrm-weather-period__rain i {
  font-size: 0.62rem;
}

.drrm-weather-period .drrm-weather__bar {
  width: 100%;
  margin-top: 0.2rem;
}

.drrm-weather__days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.drrm-weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.4rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.1);
  text-align: center;
}

.drrm-weather-day--today {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.drrm-weather-day--rain-mid {
  border-color: rgba(56, 189, 248, 0.3);
}

.drrm-weather-day--rain-high {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(56, 189, 248, 0.1);
}

.drrm-weather-day__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(209, 250, 229, 0.65);
}

.drrm-weather-day--today .drrm-weather-day__label {
  color: #86efac;
}

.drrm-weather-day__icon {
  font-size: 1.25rem;
  color: #bae6fd;
  line-height: 1;
}

.drrm-weather-day__temp {
  font-size: 0.88rem;
  font-weight: 700;
}

.drrm-weather-day__rain {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7dd3fc;
}

.drrm-weather-day__rain i {
  font-size: 0.65rem;
  opacity: 0.85;
}

.drrm-weather-day .drrm-weather__bar {
  width: 100%;
  margin-top: 0.15rem;
}

.drrm-weather__foot {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(134, 239, 172, 0.1);
  font-size: 0.65rem;
  color: rgba(209, 250, 229, 0.45);
  text-align: center;
}

@media (max-width: 720px) {
  .drrm-weather__hero {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .drrm-weather__hero-rain {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }

  .drrm-weather__periods {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .drrm-weather-period {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.1rem;
    padding: 0.65rem 0.75rem;
    text-align: left;
  }

  .drrm-weather-period__label {
    grid-column: 2;
    grid-row: 1;
  }

  .drrm-weather-period__time {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .drrm-weather-period__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    font-size: 1.65rem;
    margin: 0;
  }

  .drrm-weather-period__temp {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .drrm-weather-period__cond {
    grid-column: 2;
    grid-row: 3;
    min-height: 0;
  }

  .drrm-weather-period__rain {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
  }

  .drrm-weather-period .drrm-weather__bar {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
  }

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

/* ——— Mobile app dashboard ——— */
.drrm-weather--mobile {
  margin-bottom: 0;
  padding: 1.1rem 1rem 0.95rem;
  border-radius: 1.15rem;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(74, 222, 128, 0.08),
    inset 0 1px 0 rgba(186, 230, 253, 0.15);
}

.drrm-weather--mobile .drrm-weather__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(56, 189, 248, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(34, 197, 94, 0.15), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 80%, rgba(250, 204, 21, 0.08), transparent 50%);
}

.drrm-weather--mobile .drrm-weather__pin {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(14, 116, 144, 0.2));
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.drrm-weather--mobile .drrm-weather__title {
  font-size: 0.95rem;
}

.drrm-weather--mobile .drrm-weather__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  padding: 1.35rem 1rem 1.15rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(125, 211, 252, 0.2);
}

.drrm-weather--mobile .drrm-weather__hero::before {
  content: '';
  position: absolute;
  width: 11rem;
  height: 11rem;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.drrm-weather--mobile .drrm-weather__hero-icon {
  width: 4.75rem;
  height: 4.75rem;
  font-size: 2.15rem;
  box-shadow:
    0 8px 28px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.drrm-weather--mobile .drrm-weather__hero-num {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(180deg, #f0fdf4 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.drrm-weather--mobile .drrm-weather__hero-cond {
  font-size: 0.95rem;
  font-weight: 500;
}

.drrm-weather--mobile .drrm-weather__hero-rain {
  width: 100%;
  text-align: left;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.drrm-weather--mobile .drrm-weather__hero-rain-val {
  font-size: 1.45rem;
}

.drrm-weather--mobile .drrm-weather__bar {
  height: 0.45rem;
}

.drrm-weather--mobile .drrm-weather__periods {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.drrm-weather--mobile .drrm-weather-period {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-radius: 0.8rem;
}

.drrm-weather--mobile .drrm-weather-period__icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  font-size: 1.75rem;
}

.drrm-weather--mobile .drrm-weather-period__label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.72rem;
}

.drrm-weather--mobile .drrm-weather-period__time {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
}

.drrm-weather--mobile .drrm-weather-period__temp {
  grid-column: 3;
  grid-row: 1;
  font-size: 1.1rem;
  text-align: right;
}

.drrm-weather--mobile .drrm-weather-period__cond {
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
}

.drrm-weather--mobile .drrm-weather-period__rain {
  grid-column: 3;
  grid-row: 2;
  text-align: right;
}

.drrm-weather--mobile .drrm-weather-period .drrm-weather__bar {
  grid-column: 1 / -1;
}

.drrm-weather--mobile .drrm-weather__days-label {
  margin-bottom: 0.65rem;
}

.drrm-weather--mobile .drrm-weather__days {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.drrm-weather--mobile .drrm-weather__days::-webkit-scrollbar {
  display: none;
}

.drrm-weather--mobile .drrm-weather-day {
  flex: 0 0 5.35rem;
  scroll-snap-align: start;
  min-height: 7.25rem;
  padding: 0.7rem 0.45rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.drrm-weather--mobile .drrm-weather-day--today {
  flex: 0 0 5.65rem;
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.22), rgba(0, 0, 0, 0.28));
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.25),
    0 6px 20px rgba(34, 197, 94, 0.15);
}

.drrm-weather--mobile .drrm-weather-day__icon {
  font-size: 1.45rem;
}

.drrm-weather--mobile .drrm-weather-day__temp {
  font-size: 0.92rem;
}

/* Desktop dashboard styles: drrm-weather-dashboard.css (linked in head_end.php) */

/* Legacy dashboard overrides (kept minimal) */
.drrm-weather--dashboard {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .drrm-weather__live-dot {
    animation: none;
  }
}
