/* Card 13 – Royal Purple */

.mw-card.card-13 {
  background: #4c1d95;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(88, 28, 135, 0.7);
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  text-align: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.mw-card.card-13 *,
.mw-card.card-13 *::before,
.mw-card.card-13 *::after {
  box-sizing: border-box;
}

.mw-card.card-13 .mw-title {
  color: #f9fafb;
  font-size: 1.7em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mw-card.card-13 .mw-main-icon {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.mw-card.card-13 .mw-temp {
  font-size: 2em;
  font-weight: bold;
  color: #fdf2ff;
}

.mw-card.card-13 .mw-desc {
  color: #e9d5ff;
  font-size: 1em;
  margin-top: 0.25rem;
  text-transform: capitalize;
}

/* stats */

.mw-card.card-13 .mw-stats-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9em;
  justify-items: center;
  text-align: center;
}

.mw-card.card-13 .mw-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1em;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hourly */

.mw-card.card-13 .mw-hourly-strip {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.mw-card.card-13 .mw-hourly-strip::-webkit-scrollbar {
  display: none;
}

.mw-card.card-13 .mw-hour {
  flex: 0 0 auto;
  width: 70px;
  text-align: center;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mw-card.card-13 .mw-hour-time {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #f9fafb;
  line-height: 1.2;
  white-space: nowrap;
}

.mw-card.card-13 .mw-hour-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 0.25rem;
}

.mw-card.card-13 .mw-hour-temp {
  font-size: 1em;
  font-weight: 600;
  background: #6b21a8;
  color: #fdf2ff;
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* forecast */

.mw-card.card-13 .mw-forecast-title {
  font-size: 1.1em;
  color: #f9fafb;
  margin-top: 1.5rem;
}

.mw-card.card-13 .mw-forecast-strip {
  display: flex;
  gap: 0.2rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  justify-content: center;
  scrollbar-width: none;
}

.mw-card.card-13 .mw-forecast-strip::-webkit-scrollbar {
  display: none;
}

.mw-card.card-13 .mw-forecast-item {
  background: #581c87;
  border-radius: 8px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  flex: 0 0 auto;
  min-width: 85px;
  transform: scale(0.9);
  color: #f9fafb;
}

.mw-card.card-13 .mw-day {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #f472b6;
}

.mw-card.card-13 .mw-temps {
  font-size: 0.9em;
  font-weight: 600;
  color: #fdf2ff;
}

.mw-card.card-13 .mw-cond {
  font-size: 0.75em;
  line-height: 1.2;
  color: #e9d5ff;
}

/* freshness */

.mw-card.card-13 .mw-freshness {
  margin-top: 1rem;
  font-size: 0.75em;
  color: #e9d5ff;
  font-style: italic;
  text-align: center;
}

/* responsive */

@media screen and (max-width: 767px) {
  .mw-card.card-13 {
    width: 100%;
    max-width: 100%;
  }

  .mw-card.card-13 .mw-forecast-item {
    min-width: 110px;
    flex: 0 0 auto;
    padding: 0.5rem 0.4rem;
  }

  .mw-card.card-13 .mw-forecast-strip {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (min-width: 768px) {
  .mw-card.card-13 .mw-stats-wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    gap: 0.75rem 2rem;
    margin-top: 0.75rem;
  }

  .mw-card.card-13 .mw-stat {
    font-size: 1.1em;
  }

  .mw-card.card-13 .mw-hourly-strip {
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .mw-card.card-13 .mw-hour {
    width: 80px;
    font-size: 0.95em;
  }

  .mw-card.card-13 .mw-hour-temp {
    font-size: 1.05em;
  }

  .mw-card.card-13 .mw-forecast-item {
    padding: 0.75rem 0.6rem;
    min-width: 130px;
    min-height: 140px;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  }

  .mw-card.card-13 .mw-hourly-strip::before {
    content: "";
    flex: 0 0 1rem;
  }
}
