/* Dikey bilgi ekranı — hava durumu (9:16 portrait) */
:root {
  --sc-bg0: #07111f;
  --sc-bg1: #0d2137;
  --sc-bg2: #12304d;
  --sc-text: #f4f7fb;
  --sc-muted: rgba(244, 247, 251, 0.72);
  --sc-faint: rgba(244, 247, 251, 0.42);
  --sc-line: rgba(255, 255, 255, 0.12);
  --sc-accent: #7dd3fc;
  --sc-warm: #fbbf24;
  --sc-safe: 2.4vh;
  --sc-font: "Sora", "Segoe UI", sans-serif;
}

/* Kiosk reset — sadece body.sc-weather (hub sayfasına ASLA binmez) */
body.sc-weather {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--sc-text);
  font-family: var(--sc-font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(90% 50% at 80% 100%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, var(--sc-bg1) 0%, var(--sc-bg0) 55%, #050b14 100%);
}

html.sc-weather-root,
html:has(body.sc-weather) {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sc-bg0);
}

body.sc-weather[data-tone="clear"] {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(251, 191, 36, 0.28), transparent 55%),
    linear-gradient(180deg, #16324d 0%, #0a1626 60%, #050b14 100%);
}

body.sc-weather[data-tone="rain"],
body.sc-weather[data-tone="storm"] {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(96, 165, 250, 0.2), transparent 55%),
    linear-gradient(180deg, #0b1a2e 0%, #071018 60%, #04070d 100%);
}

body.sc-weather[data-tone="snow"] {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(186, 230, 253, 0.22), transparent 55%),
    linear-gradient(180deg, #152433 0%, #0a121c 60%, #05080e 100%);
}

.sc-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: clamp(10px, 1.6vh, 22px);
  /* Üst padding biraz düşük: logo/saat yukarı, meta altı çizgiye nefes */
  padding: clamp(8px, 1.1vh, 18px) clamp(18px, 3.2vw, 40px) clamp(14px, 2vh, 28px);
}

.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(-4px, -0.6vh, 0px);
}

.sc-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: min(90vw, 768px);
  text-decoration: none;
  color: inherit;
}

.sc-brand img {
  display: block;
  /* +%60 sonra +%50 */
  height: clamp(125px, 17.25vh, 201px);
  width: auto;
  max-width: min(90vw, 768px);
  object-fit: contain;
  object-position: left center;
}

.sc-brand__fallback {
  font-size: clamp(28px, 4.2vh, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.sc-clock {
  text-align: right;
  line-height: 1.05;
  flex: 0 0 auto;
}

.sc-clock__time {
  font-size: clamp(28px, 4.2vh, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sc-clock__date {
  margin-top: 4px;
  font-size: clamp(13px, 1.6vh, 18px);
  color: var(--sc-muted);
  text-transform: capitalize;
}

.sc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: clamp(8px, 1vh, 18px) 0;
}

.sc-city {
  font-size: clamp(28px, 4vh, 56px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.sc-hero__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 28px);
  margin-top: clamp(10px, 1.6vh, 22px);
}

.sc-temp {
  font-size: clamp(96px, 18vh, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.sc-temp span {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 0.05em;
  opacity: 0.9;
}

.sc-hero__icon {
  width: clamp(72px, 12vh, 140px);
  height: clamp(72px, 12vh, 140px);
  color: var(--sc-accent);
  display: grid;
  place-items: center;
}

.sc-hero__icon .wx-ico {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.sc-hero__icon .wx-ico svg {
  width: 100%;
  height: 100%;
}

body.sc-weather[data-tone="clear"] .sc-hero__icon {
  color: var(--sc-warm);
}

.sc-condition {
  margin-top: clamp(8px, 1.2vh, 16px);
  font-size: clamp(22px, 3vh, 36px);
  font-weight: 500;
}

.sc-meta {
  margin-top: 6px;
  margin-bottom: clamp(6px, 1vh, 12px);
  font-size: clamp(15px, 1.9vh, 22px);
  color: var(--sc-muted);
}

.sc-hourly {
  border-top: 1px solid var(--sc-line);
  padding-top: clamp(12px, 1.8vh, 22px);
}

.sc-hourly__label,
.sc-daily__label {
  font-size: clamp(12px, 1.4vh, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-faint);
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.sc-hourly__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 12px);
}

.sc-hour {
  text-align: center;
  min-width: 0;
}

.sc-hour__time {
  font-size: clamp(12px, 1.5vh, 16px);
  color: var(--sc-muted);
  font-variant-numeric: tabular-nums;
}

.sc-hour__icon {
  margin: 6px auto;
  width: clamp(28px, 3.6vh, 40px);
  height: clamp(28px, 3.6vh, 40px);
  color: var(--sc-text);
  opacity: 0.92;
}

.sc-hour__icon .wx-ico,
.sc-day__icon .wx-ico {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.sc-hour__icon .wx-ico svg,
.sc-day__icon .wx-ico svg {
  width: 100%;
  height: 100%;
}

.sc-hour__temp {
  font-size: clamp(16px, 2.2vh, 24px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sc-hour__pop {
  margin-top: 2px;
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--sc-accent);
  opacity: 0.85;
}

.sc-daily {
  border-top: 1px solid var(--sc-line);
  padding-top: clamp(10px, 1.5vh, 18px);
  min-height: 0;
}

.sc-days {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
}

.sc-day {
  display: grid;
  grid-template-columns: minmax(72px, 1.1fr) auto minmax(40px, 0.55fr) minmax(90px, 1.6fr) minmax(40px, 0.55fr);
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  font-size: clamp(15px, 2vh, 22px);
}

.sc-day__name {
  font-weight: 500;
  white-space: nowrap;
}

.sc-day__icon {
  width: clamp(26px, 3.2vh, 34px);
  height: clamp(26px, 3.2vh, 34px);
  color: var(--sc-text);
  opacity: 0.9;
}

.sc-day__lo,
.sc-day__hi {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sc-day__lo {
  color: var(--sc-muted);
}

.sc-day__hi {
  font-weight: 600;
}

.sc-day__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.sc-day__bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
}

.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--sc-faint);
  border-top: 1px solid var(--sc-line);
  padding-top: clamp(8px, 1.2vh, 14px);
}

.sc-foot a {
  color: inherit;
  text-decoration: none;
}

.sc-status[data-offline="1"] {
  color: #fca5a5;
}

@media (max-aspect-ratio: 3/4) {
  .sc-screen {
    grid-template-rows: auto 1.15fr auto auto auto;
  }
}

@media (min-aspect-ratio: 1/1) {
  /* Yatay önizleme: dikey totem gibi ortala */
  body.sc-weather {
    display: grid;
    place-items: center;
  }

  .sc-screen {
    width: min(100vw, calc(100vh * 9 / 16));
    height: min(100vh, calc(100vw * 16 / 9));
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  }
}
