/* ======================================================
 * Card 38 – Deep Ocean Orb
 * Cool blues + teals, same layout as 37.
 * ==================================================== */

.mw-card.card-38.mw38-shell {
  box-sizing: border-box;
  width: 100%;
  margin: 1.75rem auto;
  display: block;   /* not flex – acts like a normal block */
  clear: both;      /* forces each card onto its own row */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Outer glowing orb */
.mw38-circle {
  position: relative;
  width: 100%;         /* fill the shell width */
  max-width: 340px;    /* but never grow beyond 340px */
  margin: 0 auto;      /* center inside the shell */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 12px;
  /* keep the rest of your background + box-shadow as-is */
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    conic-gradient(
      from 210deg,
      #030814 0deg,
      #093055 80deg,
      #0a5673 150deg,
      #0fa3b8 220deg,
      #0a5673 290deg,
      #030814 360deg
    );
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(15, 163, 184, 0.55),
    0 0 18px rgba(123, 229, 255, 0.45);
}

/* Inner frosted glass */
.mw38-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 1.2rem 1.5rem 1.1rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(160, 233, 255, 0.23), rgba(4, 14, 32, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(159, 221, 255, 0.32);
  color: #fdfcff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Subtle moving sheen */
.mw38-inner::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.3), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.0;
  animation: mw38-sheen 9s ease-in-out infinite;
}

@keyframes mw38-sheen {
  0% { opacity: 0; transform: translate3d(-15%, -15%, 0); }
  25% { opacity: 0.45; }
  60% { opacity: 0.15; transform: translate3d(20%, 20%, 0); }
  100% { opacity: 0; transform: translate3d(25%, 25%, 0); }
}

/* Top row: city + date + clock (centered) */
.mw38-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding-top: 0.1rem;
  margin-bottom: 0.25rem;
  z-index: 1;
}

.mw38-location {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.mw38-city {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(123, 229, 255, 0.8);
}

.mw38-date {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mw38-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.mw38-clock-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
  opacity: 0.8;
}

.mw38-clock-time {
  margin-top: 0.12rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Middle: icon + temps */
.mw38-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.45rem;
  margin-bottom: 0.4rem;
}

.mw38-icon-wrap {
  font-size: 3.6rem;
  text-shadow:
    0 0 10px rgba(123, 229, 255, 0.9),
    0 0 18px rgba(15, 163, 184, 0.75);
}

.mw38-temp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}

.mw38-temp-main {
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}

.mw38-unit {
  margin-left: 0.1rem;
  font-size: 1.4rem;
  opacity: 0.9;
}

.mw38-feels {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mw38-desc {
  font-size: 0.84rem;
  opacity: 0.95;
}

/* Ring row (hi / lo) */
.mw38-ring-row {
  margin: 0.4rem auto 0.6rem;
  width: 88%;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
  color: #ffffff;
}

.mw38-ring-row::before {
  content: "";
  position: absolute;
  inset-inline: 6%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(159, 221, 255, 0),
    rgba(159, 221, 255, 0.7),
    rgba(159, 221, 255, 0)
  );
  opacity: 0.7;
}

.mw38-ring-item {
  position: relative;
  padding-inline: 0;
  background: none;
}

.mw38-hi,
.mw38-lo {
  color: #e6f7ff;
  font-weight: 600;
}

/* Bottom stats */
.mw38-bottom {
  position: relative;
  margin-top: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #ffffff;
  z-index: 1;
}

.mw38-bottom::before {
  content: "";
  position: absolute;
  inset-inline: -10%;
  bottom: -8%;
  height: 120%;
  background: radial-gradient(circle at 50% 100%, rgba(0, 4, 16, 0.75), transparent 65%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.mw38-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  max-width: 90%;
  margin-inline: auto;
}

.mw38-row-small {
  font-size: 0.82rem;
  opacity: 1;
}

.mw38-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.mw38-stat i {
  font-size: 0.95rem;
}

/* Last updated */
.mw38-updated {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mw38-ago {
  margin-left: 0.25rem;
  opacity: 0.9;
}

/* Responsive tweaks */
@media (max-width: 420px) {
  .mw38-inner {
    padding: 1rem 1.15rem 0.85rem;
  }

  .mw38-middle {
    gap: 0.85rem;
  }

  .mw38-temp-main {
    font-size: 3rem;
  }

  .mw38-ring-row {
    width: 92%;
    font-size: 0.85rem;
  }

  .mw38-row {
    gap: 0.35rem 0.8rem;
    max-width: 94%;
  }

  .mw38-stat {
    font-size: 0.8rem;
  }
}
