/* === Weather Card 10 – responsive & theme-safe (deep green) === */

.mw-card.card-10 {
  background: #164019;          /* main card background */
  color: #ffffff;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1.08rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Global inside card */
.mw-card.card-10 *,
.mw-card.card-10 *::before,
.mw-card.card-10 *::after {
  box-sizing: border-box;
}

.mw-card.card-10 h1,
.mw-card.card-10 h2,
.mw-card.card-10 h3,
.mw-card.card-10 h4,
.mw-card.card-10 h5,
.mw-card.card-10 h6,
.mw-card.card-10 p {
  margin: 0;
  padding: 0;
}

/* ---------------- Alerts ---------------- */

.mw-card.card-10 .mw-alert-banner {
  background: #d40000;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.mw-card.card-10 .mw-alert-item small {
  display: block;
  font-size: 0.8rem;
  color: #ffeaea;
  margin-top: 2px;
}

.mw-card.card-10 .mw-alert-item.frost-alert {
  background: #e0e0e0;
  color: #111;
  border-left: 6px solid #d40000;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.mw-card.card-10 .mw-alert-item.frost-alert strong .frost-icon {
  font-size: 1.5rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* ---------------- Header ---------------- */

.mw-card.card-10 .mw-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #155c1a;          /* darker green bar */
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mw-card.card-10 .mw-header-left {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.mw-card.card-10 .mw-city {
  font-size: 1.6rem;
}

.mw-card.card-10 .mw-date-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mw-card.card-10 .mw-date {
  font-size: 1.15rem;
}

.mw-card.card-10 .mw-local-time {
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  opacity: 0.9;
  margin-top: 3px;
}

/* ---------------- Layout: current + hourly ---------------- */

.mw-card.card-10 .mw-current-hourly-wrap {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ≥600px: side-by-side */
@media (min-width: 600px) {
  .mw-card.card-10 .mw-current-hourly-wrap {
    flex-wrap: nowrap;
  }

  .mw-card.card-10 .mw-current {
    flex: 0 0 360px;
  }

  .mw-card.card-10 .mw-hourly {
    flex: 1 1 auto;
  }
}

/* <600px: stack vertically */
@media (max-width: 599px) {
  .mw-card.card-10 .mw-current,
  .mw-card.card-10 .mw-hourly {
    flex: 1 1 100%;
  }
}

/* ---------------- Current block ---------------- */

.mw-card.card-10 .mw-current {
  background: #155c1a;          /* darker green panel */
  padding: 1rem;
  border-radius: 8px;
}

.mw-card.card-10 .mw-weather-icon-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.mw-card.card-10 .mw-icon-now {
  font-size: 100px;
  line-height: 1;
  color: #fff;
  display: block;
  margin: 0 auto 0.5rem;
}

/* moon position */
.mw-card.card-10 .mw-moon-img {
  position: absolute;
  top: -10px;
  right: -220px;
  width: 100px;
  height: auto;
  opacity: 0.95;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.mw-card.card-10 .mw-temp {
  font-size: 3.4rem;
  font-weight: bold;
  text-align: center;
}

.mw-card.card-10 .mw-desc {
  font-size: 1.05rem;
  text-align: center;
  text-transform: capitalize;
  margin: 0.25rem 0 1rem;
}

.mw-card.card-10 .mw-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  font-size: 1.05rem;
}

/* ---------------- Hourly grid ---------------- */

.mw-card.card-10 .mw-hourly {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

.mw-card.card-10 .mw-hour-block {
  background: #176a20;          /* slightly lighter than header */
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

.mw-card.card-10 .mw-hour-time {
  font-weight: bold;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.mw-card.card-10 .mw-hour-block i.wi {
  font-size: 32px;
  color: #fff;
}

.mw-card.card-10 .mw-hour-temp {
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.mw-card.card-10 .mw-hour-pop,
.mw-card.card-10 .mw-hour-wind,
.mw-card.card-10 .mw-hour-extra {
  font-size: 1rem;
  margin-top: 0.2rem;
  color: #bbf7d0;               /* mint accent */
}

/* ---------------- Forecast strip (7-day) ---------------- */

.mw-card.card-10 .mw-forecast-title {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  text-align: center;
  color: #d1fae5;               /* soft green heading */
}

.mw-card.card-10 .mw-forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  overflow-x: visible;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.mw-card.card-10 .mw-forecast-item {
  min-width: 0;
  background: #155c1a;
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
}

.mw-card.card-10 .mw-forecast-item i.wi {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.mw-card.card-10 .mw-day {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.mw-card.card-10 .mw-temps {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.mw-card.card-10 .mw-pop,
.mw-card.card-10 .mw-wind {
  font-size: 1rem;
  color: #bbf7d0;
}

/* ---------------- Footer ---------------- */

.mw-card.card-10 .mw-timezone-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 6px;
  margin-bottom: -2px;
  line-height: 1.2;
  pointer-events: none;
}

/* ---------------- Responsive header tweaks ---------------- */

@media (max-width: 480px) {
  .mw-card.card-10 .mw-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .mw-card.card-10 .mw-header-left,
  .mw-card.card-10 .mw-date-wrap {
    width: 100%;
    justify-content: center;
  }

  .mw-card.card-10 .mw-date {
    position: static;
    transform: none;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
}

/* Desktop: center date in header bar */
@media (min-width: 481px) {
  .mw-card.card-10 .mw-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
  }
}
