/* =========================================================
   IMO WEATHER SYSTEM
   ========================================================= */

.imo-weather-wrapper {
  position: relative;
  padding: 40px;
  border-radius: 12px;
  overflow: hidden;
}

/* Optional background (reuse your gradient style) */
.imo-weather-wrapper.gradient {
  background: linear-gradient(135deg, #005EB8, #93C950);
}

.imo-weather-wrapper.gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(3) rotate(125)'><rect width='100%' height='100%' fill='%23005eb8ff'/><path d='M10-10L20 0v10L10 0zM20 0L10-10V0l10 10zm0 10L10 0v10l10 10zm0 10L10 10v10l10 10zM0 20l10-10v10L0 30zm0-10L10 0v10L0 20zM0 0l10-10V0L0 10z' stroke-width='1' stroke='%2393c950ff' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(-27,-75)' fill='url(%23a)'/></svg>");
}

/* =========================================================
   GRID
   ========================================================= */

.imo-weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   CARD BASE (adapts your .stats)
   ========================================================= */

.imo-weather .stats {
  background: #fff;
  border: 2px solid #ddd;
  box-shadow: 
    0 4px 8px rgba(0,0,0,.15),
    0 0 30px 4px rgba(0,95,184,0.2);
  padding: 18px 16px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.imo-weather .stats:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 5px 3px rgba(0,95,184,0.25),
    0 0 20px 3px rgba(0,95,184,0.1);
  border-color: rgba(125,125,125,0.4);
}

/* =========================================================
   PRIMARY STAT (Temperature)
   ========================================================= */

.imo-weather .stats.primary {
  grid-column: span 2;
  background: linear-gradient(135deg, #005EB8, #5FB0B7);
  color: #fff;
  border-color: transparent;
}

.imo-weather .stats.primary:hover {
  transform: translateY(-3px);
}

/* =========================================================
   STAT CONTENT
   ========================================================= */

.imo-weather .stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.imo-weather .stats.primary .stat-value {
  font-size: 48px;
}

.imo-weather .stat-label {
  font-size: 16px; 
  color: #666;
  margin-top: 4px;
}

.imo-weather .stats.primary .stat-label {
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   OPTIONAL: ICON SUPPORT
   ========================================================= */

.imo-weather .stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

/* =========================================================
   UPDATED TIMESTAMP
   ========================================================= */

.imo-weather-updated {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  margin-top: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   MOBILE TWEAKS
   ========================================================= */

@media (max-width: 600px) {
  .imo-weather .stats.primary {
    grid-column: span 1;
  }

  .imo-weather .stats.primary .stat-value {
    font-size: 36px;
  }
}