/*
 * Nur Wetter-Generator-spezifisches Layout. Farben/Typografie/Buttons/
 * Karten/Tags/Toggles kommen aus public/css/wmg-shared.css (siehe .wmg-app-
 * Klasse auf dem Root-Container), damit sie nicht pro Generator dupliziert
 * werden.
 *
 * Bewusst NICHT uebernommen aus dem urspruenglichen Entwurf: eine eigene
 * "--wm-magenta"-Akzentfarbe fuer den Primary-Button-Hover. Das WordPress-
 * Theme dieser Seite erzwingt sonst ohnehin ein eigenes Magenta auf
 * Buttons/aktive Zustaende, was schon einmal zu schlecht lesbaren
 * Farbkombinationen gefuehrt hat (siehe wmg-shared.css) - der Generate-
 * Button nutzt daher denselben petrolfarbenen .wm-btn-primary-Stil wie bei
 * allen anderen Generatoren.
 */
.wm-weather-app, .wm-weather-shell, .wm-weather-controls, .wm-weather-card { overflow: visible !important; }

.wm-weather-shell{
  display:grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 980px){
  .wm-weather-shell{ grid-template-columns: 1fr; }
  .wm-weather-output{ position:relative !important; top:auto !important; }
}

.wm-weather-controls{ display:flex; flex-direction:column; gap: 14px; min-width:0; }
.wm-weather-brand{ padding: 0 2px; }
.wm-weather-title{ font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.wm-weather-sub{ font-size: 12.5px; color: var(--wm-muted2); margin-top: 2px; }

.wm-weather-card,
.wm-weather-output{
  background: var(--wm-surface);
  border: 1px solid var(--wm-divider);
  box-shadow: none;
  border-radius: var(--wm-radius);
}

.wm-weather-card{ padding: 14px; background: var(--wm-surface-2); }
.wm-weather-mini{ padding: 12px 14px; }

.wm-weather-card-h{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .35px;
  color: var(--wm-ink);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wm-weather-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px){ .wm-weather-grid{ grid-template-columns: 1fr; } }

.wm-weather-field{ display:flex; flex-direction:column; gap: 6px; min-width:0; }
.wm-weather-label{ font-size: 11px; color: var(--wm-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.wm-weather-select{
  width:100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--wm-divider);
  background: #fff;
  color: var(--wm-text);
  outline: none;
  font-family: inherit;
}
.wm-weather-select:focus{ border-color: var(--wm-teal); box-shadow: 0 0 0 2px var(--wm-teal-tint); }
.wm-weather-select option{ color:#111; }

.wm-weather-row{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin: 12px 0 10px;
}

.wm-weather-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 560px){ .wm-weather-actions{ grid-template-columns: 1fr; } }

.wm-weather-mini-text{ font-size: 12.5px; color: var(--wm-muted2); line-height: 1.45; }

.wm-weather-output{ position: sticky; top: 14px; min-width:0; }
.wm-weather-output-head{
  padding: 16px 16px 12px;
  border-bottom: 2px solid var(--wm-teal);
}

.wm-weather-out-title{ display:flex; align-items:center; gap: 10px; }
.wm-weather-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--wm-teal);
  flex: 0 0 auto;
}
#wmOutName{ font-size: 20px; margin: 0; font-weight: 700; letter-spacing: .2px; }

.wm-weather-tags{ display:flex; gap: 8px; flex-wrap:wrap; margin-top: 10px; }

.wm-weather-meta{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 760px){ .wm-weather-meta{ grid-template-columns: 1fr; } }

.wm-weather-cards{
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px){ .wm-weather-cards{ grid-template-columns: 1fr; } }

/* "Include Mechanics"/"Magic Influence" sind reine CSS-Sichtbarkeits-
   Schalter auf bereits gerendertes (uebersetztes) Markup - es wird nie Text
   per JS neu geschrieben. Fuer die Magie-Verzerrung liegen beide Varianten
   (echter Text und "OFF"-Hinweis) immer im DOM, nur eine ist sichtbar. */
#wmMechCard.is-hidden{ display: none; }

#wmMagicCard .wm-weather-magic-off{ display: none; }
#wmMagicCard.is-off .wm-weather-magic-text{ display: none; }
#wmMagicCard.is-off .wm-weather-magic-off{ display: block; }

.wm-weather-footer{
  padding: 0 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.wm-weather-status{
  font-size: 12px;
  font-weight: 700;
  color: var(--wm-muted2);
}
