/* ============================================
   REAL TREE GUY — WEATHER CENTER UI
   Cinematic Storm Ops Dashboard • Tactical Theme
   ============================================ */

body.rtg-weather {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at 50% 20%, #0f120f, #050505);
  color: #ffffff;
  overflow-x: hidden;
  animation: bgPulse 12s infinite alternate;
}

@keyframes bgPulse {
  0% { background-color: #0d0f0d; }
  100% { background-color: #050605; }
}

/* HEADER */
.weather-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  border-bottom: 2px solid #2e6b33;
  box-shadow: 0 0 25px rgba(46,107,51,0.4);
  position: relative;
}

.weather-header h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #caffca;
  text-shadow: 0 0 18px #1f5f2b, 0 0 4px #2e6b33;
  letter-spacing: 1px;
  animation: titleGlow 3s infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 10px #1f5f2b; }
  100% { text-shadow: 0 0 22px #2e6b33; }
}

.weather-header .sub {
  font-size: 1rem;
  color: #9ddf9d;
  margin-top: 4px;
  opacity: 0.85;
}

.user-info {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #caffca;
}

#rtgUserLabel {
  color: #ff8c42;
  font-weight: 800;
}

#rtgLocationLabel {
  color: #9ddf9d;
  font-weight: 600;
}

#rtgConditionLabel {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.05rem;
  color: #ffebc2;
  text-shadow: 0 0 10px rgba(255, 200, 120, 0.7);
  animation: condGlow 2.8s infinite alternate;
}

@keyframes condGlow {
  0% { opacity: 0.8; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-1px); }
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: #ff8c42;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.back-link:hover {
  color: #ffb673;
  text-shadow: 0 0 8px #ff8c42;
}

/* MAIN SHELL */
.weather-shell {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* MODULE CARDS */
.module-card {
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #2e6b33;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 0 18px rgba(46, 107, 51, 0.4);
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
  position: relative;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
}

.module-card:hover {
  box-shadow: 0 0 28px rgba(46, 107, 51, 0.6);
  transform: translateY(-2px);
}

.module-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: #caffca;
  text-shadow: 0 0 8px #1f5f2b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* LOCATION SELECTOR */
.location-card h2::before {
  content: "📍";
}

.location-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.location-row input {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 2px solid #ff8c42;
  background: #000;
  color: #fff;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.location-row input:focus {
  border-color: #ffb673;
  box-shadow: 0 0 10px #ff8c42;
  outline: none;
}

.rtg-btn.small {
  padding: 6px 12px;
  background: transparent;
  border: 2px solid #ff8c42;
  border-radius: 8px;
  color: #ff8c42;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.rtg-btn.small:hover {
  background: #ff8c42;
  color: #000;
  box-shadow: 0 0 12px #ff8c42;
}

#locationStatus {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #9ddf9d;
}

/* CURRENT CONDITIONS */
.module-card:nth-of-type(2) h2::before {
  content: "🌤️";
}

.current-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-temp {
  font-size: 3.8rem;
  font-weight: 900;
  color: #ff8c42;
  text-shadow: 0 0 18px #ff8c42;
  animation: tempPulse 2.5s infinite alternate;
}

@keyframes tempPulse {
  0% { text-shadow: 0 0 12px #ff8c42; transform: scale(1); }
  100% { text-shadow: 0 0 22px #ffb673; transform: scale(1.03); }
}

.current-details p {
  margin: 3px 0;
  font-size: 0.98rem;
  opacity: 0.9;
}

/* TICKERS */
.ticker {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 140, 66, 0.15);
  border-left: 4px solid #ff8c42;
  font-weight: 700;
  animation: tickerPulse 3s infinite alternate;
  font-size: 0.95rem;
}

@keyframes tickerPulse {
  0% { border-left-color: #ff8c42; }
  100% { border-left-color: #ffb673; }
}

.ticker.hazard {
  background: rgba(255, 0, 0, 0.15);
  border-left-color: #ff4444;
  animation: hazardPulse 1.2s infinite alternate;
}

@keyframes hazardPulse {
  0% { border-left-color: #ff4444; }
  100% { border-left-color: #ff0000; }
}

/* HOURLY STRIP */
.module-card:nth-of-type(3) h2::before {
  content: "⏱️";
}

.hourly-strip {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
}

.hourly-strip::-webkit-scrollbar {
  height: 6px;
}

.hourly-strip::-webkit-scrollbar-thumb {
  background: #2e6b33;
  border-radius: 4px;
}

.hour-card {
  min-width: 90px;
  background: rgba(0,0,0,0.65);
  border: 1px solid #2e6b33;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(46,107,51,0.3);
  transition: 0.25s ease;
  position: relative;
}

.hour-card::before {
  content: "🌡️";
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.hour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(46,107,51,0.6);
}

.h-time {
  font-size: 0.85rem;
  opacity: 0.8;
}

.h-temp {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff8c42;
}

.h-cond {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* DAILY STRIP */
.module-card:nth-of-type(4) h2::before {
  content: "📅";
}

.daily-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-card {
  background: rgba(0,0,0,0.65);
  border: 1px solid #2e6b33;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 0 10px rgba(46,107,51,0.3);
  transition: 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(46,107,51,0.6);
}

.d-day {
  font-size: 1rem;
  font-weight: 700;
}

.d-temp {
  font-size: 1.2rem;
  color: #ff8c42;
}

.d-cond {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* INFO GRID (Wind / Pressure / Risk / Hazard) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  font-size: 0.95rem;
}

.info-grid div span {
  color: #ffebc2;
}

/* WIND INTELLIGENCE */
.module-card:nth-of-type(5) h2::before {
  content: "💨";
}

/* PRESSURE TREND */
.module-card:nth-of-type(6) h2::before {
  content: "📉";
}

/* STORM RISK */
.module-card:nth-of-type(7) h2::before {
  content: "⚠️";
}

/* TREE HAZARD */
.module-card:nth-of-type(8) h2::before {
  content: "🌲";
}

/* RADAR */
.module-card:nth-of-type(9) h2::before {
  content: "📡";
}

.radar-container {
  margin-top: 8px;
}

.radar-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(46, 107, 51, 0.5);
  animation: radarGlow 4s infinite alternate;
}

@keyframes radarGlow {
  0% { box-shadow: 0 0 18px rgba(46,107,51,0.4); }
  100% { box-shadow: 0 0 28px rgba(46,107,51,0.7); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .current-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .current-temp {
    font-size: 2.8rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .radar-frame {
    height: 300px;
  }

  .weather-shell {
    padding: 0 14px 30px;
  }
}
