/* Indoor Weather Template styles */
:root{
  --iwt-primary: #0b132b;
  --iwt-accent: #00c2ff;            /* pode usar em detalhes se quiser */
  --iwt-text: #ffffff;
  --iwt-panel: rgba(0,0,0,0.55);
}

.iwt-wrap{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Inter', sans-serif;
  color: var(--iwt-text);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--iwt-primary);
  position: relative;
  --bg-url: var(--iwt-bg, none);
  padding-bottom: 170px;            /* reserva espaço pro rodapé */
}

.iwt-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  z-index: 0;
}

/* ===== Faixa superior (ponta a ponta) ===== */
.iwt-header{
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 40px;
  background: var(--iwt-panel);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.iwt-head{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.iwt-bigicon .iwt-icon,
.iwt-bigicon img{
  width: clamp(64px, 10vw, 120px);
  height: auto;     /* mantém proporção */
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

.iwt-city-name{
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
}

.iwt-temp{
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  line-height: 1;
  margin-top: 6px;
}

.iwt-desc, .iwt-source{
  font-size: clamp(13px, 1.6vw, 16px);
  opacity: .92;
}

/* ===== Hero com relógio flutuante à direita ===== */
.iwt-hero{
  position: relative;
  flex: 1;
  z-index: 1;
}

.iwt-clock-float{
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.iwt-clock-float .iwt-time{
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 900;
  line-height: 1;
}

.iwt-clock-float .iwt-date{
  font-size: clamp(14px, 2vw, 20px);
  opacity: .95;
}

/* ===== Rodapé fixo com os dias ===== */
.iwt-forecast{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 260px);
  justify-content: center;
  gap: 16px;
}
.iwt-forecast::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--iwt-panel);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -10px 24px rgba(0,0,0,.25);
  z-index: 0;
}

.iwt-day{
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.45);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.iwt-day-name{
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
}

.iwt-day .iwt-icon,
.iwt-day img.iwt-icon{
  width: 48px;      /* define só a largura */
  height: auto;     /* deixa a altura proporcional */
  display:block;
  margin: 8px auto 6px;
}

.iwt-day-temps{
  font-size: clamp(14px, 2.5vw, 20px);
  display:flex; justify-content:center; gap:10px; align-items: baseline;
}
.iwt-day-temps .max{ font-weight: 800; }
.iwt-day-temps .min{ opacity: .9; }

.iwt-day-desc{
  font-size: clamp(12px, 2vw, 16px);
  opacity: .95;
}

/* ===== Responsivo ===== */
@media (max-width: 980px){
  .iwt-forecast{ grid-template-columns: repeat(2, 260px); gap: 12px; }
  .iwt-header{ padding: 16px 20px; }
  .iwt-wrap{ padding-bottom: 210px; }
  .iwt-clock-float{ right: 20px; }
}

@media (max-width: 560px){
  .iwt-forecast{ grid-template-columns: 1fr; }
  .iwt-wrap{ padding-bottom: 260px; }
}

/* Theme overrides via JS (se usar tema por JS) */
body.iwt-theme-loaded .iwt-wrap{
  --iwt-primary: var(--theme-primary, #0b132b);
  --iwt-accent: var(--theme-accent, #00c2ff);
  --iwt-text: var(--theme-text, #ffffff);
  --iwt-panel: var(--theme-panel, rgba(0,0,0,0.55));
}
