/* RoseSun Weather · Geçmiş — stil.
 * Tema değişkenleri ana uygulamadan (index.html v10.8.00 mevsim sistemi ve
 * v10.8.45 açık tema) AYNEN alınmıştır; aynı tercih iki sitede aynı görünür.
 * Dış font/CDN yok; ikon fontu history-icons.css içinde gömülü. */

:root {
  --gh-theme-bg: #020617;
  --gh-theme-card-bg: rgba(15, 23, 42, 0.90);
  --gh-theme-card-border: rgba(51, 65, 85, 0.70);
  --gh-theme-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --gh-theme-inner-card-bg: rgba(30, 41, 59, 0.80);
  --gh-theme-inner-card-border: rgba(51, 65, 85, 0.60);
  --gh-theme-hero-from: #082f49;
  --gh-theme-hero-to: #0f172a;
  --gh-theme-accent: #38bdf8;
  --gh-theme-accent-border: rgba(56, 189, 248, 0.6);
  --gh-theme-glow1: none;
  --gh-theme-glow2: none;
  --gh-theme-glow3: none;

  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --input-bg: rgba(2, 6, 23, 0.55);
  --input-border: rgba(100, 116, 139, 0.55);
  --on-accent: #0b1220;
  --error: #fca5a5;
  --error-bg: rgba(127, 29, 29, 0.35);
  --error-border: rgba(248, 113, 113, 0.55);
  --note: #fde68a;
  --note-bg: rgba(120, 53, 15, 0.30);
  --note-border: rgba(251, 191, 36, 0.40);
  --focus: #7dd3fc;
  color-scheme: dark;
}
html[data-theme="autumn"] {
  --gh-theme-bg: #1b0909;
  --gh-theme-card-bg: rgba(43, 18, 19, 0.92);
  --gh-theme-card-border: rgba(249, 115, 22, 0.34);
  --gh-theme-card-shadow: 0 14px 40px -4px rgba(185, 52, 36, 0.22), 0 4px 14px -2px rgba(0, 0, 0, 0.6);
  --gh-theme-inner-card-bg: rgba(57, 24, 23, 0.88);
  --gh-theme-inner-card-border: rgba(249, 115, 22, 0.24);
  --gh-theme-hero-from: #7c2d12;
  --gh-theme-hero-to: #260b10;
  --gh-theme-accent: #f97316;
  --gh-theme-accent-border: rgba(249, 115, 22, 0.70);
  --gh-theme-glow1: radial-gradient(ellipse 100% 55% at 50% -5%, rgba(234, 88, 12, 0.40), transparent 75%);
  --gh-theme-glow2: radial-gradient(ellipse 80% 50% at 85% 90%, rgba(185, 28, 28, 0.30), transparent 70%);
  --gh-theme-glow3: radial-gradient(ellipse 60% 40% at 15% 50%, rgba(159, 45, 40, 0.22), transparent 65%);
}
html[data-theme="winter"] {
  --gh-theme-bg: #010b1f;
  --gh-theme-card-bg: rgba(10, 25, 51, 0.92);
  --gh-theme-card-border: rgba(125, 211, 252, 0.42);
  --gh-theme-card-shadow: 0 14px 40px -4px rgba(129, 140, 248, 0.24), 0 4px 14px -2px rgba(0, 0, 0, 0.6);
  --gh-theme-inner-card-bg: rgba(18, 38, 69, 0.88);
  --gh-theme-inner-card-border: rgba(125, 211, 252, 0.28);
  --gh-theme-hero-from: #164e83;
  --gh-theme-hero-to: #101b3b;
  --gh-theme-accent: #7dd3fc;
  --gh-theme-accent-border: rgba(125, 211, 252, 0.70);
  --gh-theme-glow1: radial-gradient(ellipse 100% 55% at 50% -5%, rgba(125, 211, 252, 0.44), transparent 75%);
  --gh-theme-glow2: radial-gradient(ellipse 80% 50% at 15% 85%, rgba(129, 140, 248, 0.36), transparent 70%);
  --gh-theme-glow3: radial-gradient(ellipse 60% 40% at 90% 40%, rgba(96, 165, 250, 0.24), transparent 65%);
}
html[data-theme="spring"] {
  --gh-theme-bg: #031309;
  --gh-theme-card-bg: rgba(7, 28, 18, 0.92);
  --gh-theme-card-border: rgba(52, 211, 153, 0.42);
  --gh-theme-card-shadow: 0 14px 40px -4px rgba(52, 211, 153, 0.22), 0 4px 14px -2px rgba(0, 0, 0, 0.6);
  --gh-theme-inner-card-bg: rgba(12, 40, 26, 0.88);
  --gh-theme-inner-card-border: rgba(52, 211, 153, 0.28);
  --gh-theme-hero-from: #064e3b;
  --gh-theme-hero-to: #051a10;
  --gh-theme-accent: #34d399;
  --gh-theme-accent-border: rgba(52, 211, 153, 0.70);
  --gh-theme-glow1: radial-gradient(ellipse 100% 55% at 50% -5%, rgba(52, 211, 153, 0.40), transparent 75%);
  --gh-theme-glow2: radial-gradient(ellipse 80% 50% at 85% 85%, rgba(244, 114, 182, 0.28), transparent 70%);
  --gh-theme-glow3: radial-gradient(ellipse 60% 40% at 15% 45%, rgba(16, 185, 129, 0.24), transparent 65%);
}
html[data-theme="summer"] {
  --gh-theme-bg: #171304;
  --gh-theme-card-bg: rgba(35, 29, 9, 0.92);
  --gh-theme-card-border: rgba(250, 204, 21, 0.40);
  --gh-theme-card-shadow: 0 14px 40px -4px rgba(250, 204, 21, 0.24), 0 4px 14px -2px rgba(0, 0, 0, 0.6);
  --gh-theme-inner-card-bg: rgba(48, 39, 12, 0.88);
  --gh-theme-inner-card-border: rgba(250, 204, 21, 0.28);
  --gh-theme-hero-from: #854d0e;
  --gh-theme-hero-to: #211906;
  --gh-theme-accent: #facc15;
  --gh-theme-accent-border: rgba(250, 204, 21, 0.70);
  --gh-theme-glow1: radial-gradient(ellipse 100% 55% at 50% -5%, rgba(253, 230, 138, 0.44), transparent 75%);
  --gh-theme-glow2: radial-gradient(ellipse 80% 50% at 85% 85%, rgba(250, 204, 21, 0.32), transparent 70%);
  --gh-theme-glow3: radial-gradient(ellipse 60% 40% at 15% 45%, rgba(251, 191, 36, 0.20), transparent 65%);
}
/* "Klasik" = ana uygulamanın varsayılan slate görünümü (:root değerleri). */

/* ---- Açık görünüm (ana uygulama v10.8.45 "Soft Sky / Buz Mavisi") -------- */
html[data-scheme="light"] {
  color-scheme: light;
  --gh-theme-bg: #F3F8FC;
  --gh-theme-card-bg: #FFFFFF;
  --gh-theme-card-border: #C8D9E6;
  --gh-theme-card-shadow: 0 1px 2px rgba(24, 53, 77, .05), 0 8px 22px -12px rgba(24, 53, 77, .18);
  --gh-theme-inner-card-bg: #EDF6FC;
  --gh-theme-inner-card-border: #CFDFEB;
  --gh-theme-hero-from: #E3EFF9;
  --gh-theme-hero-to: #FFFFFF;
  --gh-theme-accent: #17639B;
  --gh-theme-accent-border: rgba(23, 99, 155, .45);
  --gh-theme-glow1: none;
  --gh-theme-glow2: none;
  --gh-theme-glow3: none;
  --text: #18354D;
  --text-soft: #2B4A63;
  --text-muted: #4A6378;
  --input-bg: #FFFFFF;
  --input-border: #A9C1D3;
  --on-accent: #FFFFFF;
  --error: #9B1C1C;
  --error-bg: #FDECEC;
  --error-border: #F1B4B4;
  --note: #7A4A06;
  --note-bg: #FFF6E0;
  --note-border: #EBCF8E;
  --focus: #17639B;
}
html[data-scheme="light"][data-theme="autumn"] {
  --gh-theme-hero-from: #FCEEE3;
  --gh-theme-inner-card-bg: #FBF4EE;
  --gh-theme-inner-card-border: #E6D5C7;
  --gh-theme-glow1: radial-gradient(ellipse 100% 45% at 50% -5%, rgba(234, 88, 12, .07), transparent 75%);
}
html[data-scheme="light"][data-theme="winter"] {
  --gh-theme-hero-from: #E1EEFA;
  --gh-theme-glow1: radial-gradient(ellipse 100% 45% at 50% -5%, rgba(96, 165, 250, .10), transparent 75%);
}
html[data-scheme="light"][data-theme="spring"] {
  --gh-theme-hero-from: #E5F4EC;
  --gh-theme-inner-card-bg: #F0F8F4;
  --gh-theme-inner-card-border: #C7DFD2;
  --gh-theme-glow1: radial-gradient(ellipse 100% 45% at 50% -5%, rgba(52, 211, 153, .09), transparent 75%);
}
html[data-scheme="light"][data-theme="summer"] {
  --gh-theme-hero-from: #FFF4D6;
  --gh-theme-inner-card-bg: #FFF9EA;
  --gh-theme-inner-card-border: #E5D8B5;
  --gh-theme-glow1: radial-gradient(ellipse 100% 45% at 50% -5%, rgba(250, 204, 21, .10), transparent 75%);
}

/* ---- Temel ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--gh-theme-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color .3s ease;
}
#themeGlow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--gh-theme-glow1, none), var(--gh-theme-glow2, none), var(--gh-theme-glow3, none);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translateZ(0);
}
.topbar, main, .footer, .toast { position: relative; z-index: 1; }
/* Tema menüsü üst çubuğun içindedir. .topbar ile main aynı seviyede, ikisi de
 * z-index:1 olan kardeş stacking context'ti; eşitlikte DOM'da sonra gelen main
 * üstte boyanıyor ve menü (z-index:20, yalnız kendi bağlamında) hero/sonuç
 * kartlarının ARKASINDA kalıyordu (05.10.2026, elementFromPoint ile ölçüldü).
 * Üst çubuk bir kat yukarı alınır; bildirim (.toast, 30) yine en üstte. */
.topbar { z-index: 10; }
a { color: var(--gh-theme-accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.card {
  background: var(--gh-theme-card-bg);
  border: 1px solid var(--gh-theme-card-border);
  border-radius: 20px;
  box-shadow: var(--gh-theme-card-shadow);
  padding: 20px;
  margin: 0 0 16px;
  min-width: 0;
}

/* ---- Üst çubuk ------------------------------------------------------------ */
.topbar { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-icon { border-radius: 10px; flex: 0 0 auto; }
/* RoseSun logo v2 (ana uygulama v10.9.00 ile aynı kural): saydam SVG, yalnız kare zemin
   temaya göre boyanır; sayfa paleti değişmez. Açıkta açık mavi, koyuda mevsime göre. */
.brand-icon { background: linear-gradient(145deg, #132b46, #07182a); }
html[data-scheme="light"] .brand-icon { background: linear-gradient(145deg, #f8fdff, #ddf2fc); }
html[data-scheme="dark"][data-theme="autumn"] .brand-icon { background: linear-gradient(145deg, #652036, #250717); }
html[data-scheme="dark"][data-theme="winter"] .brand-icon { background: linear-gradient(145deg, #163856, #071427); }
html[data-scheme="dark"][data-theme="spring"] .brand-icon { background: linear-gradient(145deg, #174a37, #0a241c); }
html[data-scheme="dark"][data-theme="summer"] .brand-icon { background: linear-gradient(145deg, #13617a, #062c46); }
html[data-scheme="dark"][data-theme="default"] .brand-icon { background: linear-gradient(145deg, #123f65, #0b213e); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .01em;
  background: linear-gradient(to right, #ff007f, #ffae00, #00e5ff, #00ff66, #7f00ff, #ff007f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gh-rainbow 6s linear infinite;
}
@keyframes gh-rainbow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
html[data-scheme="light"] .brand-name {
  background: none;
  -webkit-text-fill-color: var(--gh-theme-accent);
  color: var(--gh-theme-accent);
  animation: none;
}
.brand-sub { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
/* "← Canlı Hava İçin": hafif ve sakin dikkat çekici. Yalnız transform/opacity/
 * box-shadow canlandırılır (yerleşim kayması yok); hareket azaltma tercihinde durur. */
.live-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; padding: 2px 9px 2px 7px;
  border-radius: 999px; border: 1px solid var(--gh-theme-accent-border);
  color: var(--gh-theme-accent); font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  background: var(--gh-theme-inner-card-bg);
  animation: gh-cta-nabiz 3.2s ease-in-out infinite;
}
.live-cta-ok { display: inline-block; animation: gh-cta-ok 3.2s ease-in-out infinite; }
.brand:hover .live-cta, .brand:focus-visible .live-cta { border-color: var(--gh-theme-accent); }
@keyframes gh-cta-nabiz {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
  50% { box-shadow: 0 0 0 2px var(--gh-theme-accent-border); }
}
@keyframes gh-cta-ok {
  0%, 60%, 100% { transform: translateX(0); }
  70% { transform: translateX(-3px); }
  80% { transform: translateX(0); }
  90% { transform: translateX(-2px); }
}
/* Paylaş ipucu: sonuçla birlikte akışta çizilir (düğmeyi örtmez), bir kez gösterilir. */
.share-hint {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  margin: 10px 0 0 auto; max-width: 360px; padding: 8px 8px 8px 12px;
  border-radius: 12px; border: 1px solid var(--gh-theme-accent-border);
  background: var(--gh-theme-inner-card-bg); color: var(--text); font-size: .85rem; font-weight: 600;
  position: relative;
}
.share-hint::before {
  content: ""; position: absolute; top: -6px; right: 28px; width: 10px; height: 10px;
  background: var(--gh-theme-inner-card-bg); border-left: 1px solid var(--gh-theme-accent-border);
  border-top: 1px solid var(--gh-theme-accent-border); transform: rotate(45deg);
}
.share-hint-close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-muted); font: inherit; font-size: 1.1rem; line-height: 1;
}
.share-hint-close:hover { background: var(--gh-theme-card-bg); color: var(--text); }
.top-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: 0 8px;
  max-width: 120px;
}
.select-unit { width: 58px; }
.select option { background: var(--gh-theme-card-bg); color: var(--text); }
html[data-scheme="light"] .select option { background: #FFFFFF; color: #18354D; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--gh-theme-accent-border);
  background: rgba(2, 6, 23, .45);
  color: var(--gh-theme-accent);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
  flex: 0 0 auto;
}
html[data-scheme="light"] .icon-button { background: #FFFFFF; }
.icon-button:hover { background: var(--gh-theme-inner-card-bg); }

.theme-wrap { position: relative; }
.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 216px;
  z-index: 20;
  background: var(--gh-theme-card-bg);
  border: 1px solid var(--gh-theme-card-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .55);
  padding: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html[data-scheme="light"] .theme-menu { box-shadow: 0 16px 34px -14px rgba(24, 53, 77, .35); }
.menu-title { margin: 4px 6px 6px; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.scheme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 6px; }
.scheme-option, .season-option {
  font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; cursor: pointer;
}
.scheme-option {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; border-radius: 10px; font-size: .72rem; font-weight: 600;
  border-color: var(--gh-theme-inner-card-border);
}
.scheme-option[aria-checked="true"] { border-color: var(--gh-theme-accent); color: var(--gh-theme-accent); background: var(--gh-theme-inner-card-bg); }
.season-list { display: flex; flex-direction: column; gap: 2px; }
.season-option { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 9px; font-size: .85rem; }
.season-option:hover { background: var(--gh-theme-inner-card-bg); }
.season-option[aria-checked="true"] { background: var(--gh-theme-inner-card-bg); font-weight: 700; }
.season-option .check { margin-left: auto; color: var(--gh-theme-accent); visibility: hidden; }
.season-option[aria-checked="true"] .check { visibility: visible; }

/* ---- Hero / form ---------------------------------------------------------- */
.hero-card {
  background-image: linear-gradient(to bottom right, var(--gh-theme-hero-from), var(--gh-theme-card-bg) 55%, var(--gh-theme-hero-to));
  padding: 22px 20px;
}
.eyebrow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gh-theme-accent);
}
.test-badge {
  display: none;
  font-size: .65rem; font-weight: 900; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px;
  background: #7c3aed; color: #fff;
}
html[data-env="test"] .test-badge { display: inline-block; }
.hero-title { margin: 0; font-size: clamp(1.6rem, 6.4vw, 2.5rem); line-height: 1.12; font-weight: 900; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero-sub { margin: 8px 0 18px; color: var(--text-soft); font-size: 1.02rem; }
.query { display: grid; gap: 14px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { padding: 0; margin-bottom: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.input {
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  height: 46px;
  padding: 0 14px;
  min-width: 0;
  width: 100%;
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:focus { border-color: var(--gh-theme-accent); outline: none; box-shadow: 0 0 0 3px var(--gh-theme-accent-border); }
.input[aria-invalid="true"] { border-color: var(--error-border); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: .95rem;
  height: 46px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.button:disabled { opacity: .6; cursor: progress; }
.button.primary { background: var(--gh-theme-accent); color: var(--on-accent); width: 100%; font-size: 1.02rem; height: 50px; }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { background: var(--gh-theme-inner-card-bg); color: var(--text); border-color: var(--gh-theme-inner-card-border); flex: 0 0 auto; }
.button.ghost { background: transparent; color: var(--gh-theme-accent); border-color: var(--gh-theme-accent-border); height: 40px; font-size: .88rem; margin-top: 8px; }
/* Telefonda klavye: geçici alt boşluk (JS yalnız arama odağı sürerken yükseklik verir). */
#klavyeBoslugu { height: 0; }
.location-chip { scroll-margin-top: 12px; }
.location-chip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border-radius: 12px; border: 1px dashed var(--gh-theme-inner-card-border);
  background: var(--gh-theme-inner-card-bg);
}
.location-chip > .bi { color: var(--gh-theme-accent); margin-top: 3px; }
.location-chip[data-empty="false"] { border-style: solid; }
.location-texts { display: flex; flex-direction: column; min-width: 0; }
.location-name { font-weight: 800; overflow-wrap: anywhere; }
.location-chip[data-empty="true"] .location-name { font-weight: 500; color: var(--text-muted); }
.location-coords { font-size: .78rem; color: var(--text-muted); }
.search-row { display: flex; gap: 8px; }
.search-results {
  list-style: none; margin: 6px 0 0; padding: 4px;
  border-radius: 12px; border: 1px solid var(--gh-theme-card-border);
  background: var(--gh-theme-card-bg);
  max-height: 320px; overflow-y: auto;
}
.search-results li + li { border-top: 1px solid var(--gh-theme-inner-card-border); }
.result-option {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 8px;
  padding: 9px 10px; text-align: left; cursor: pointer;
}
.result-option:hover, .result-option:focus-visible { background: var(--gh-theme-inner-card-bg); }
.result-name { font-weight: 800; overflow-wrap: anywhere; }
.result-detail { font-size: .8rem; color: var(--text-muted); overflow-wrap: anywhere; }
#searchStatus:empty { display: none; }
#searchStatus { margin: 6px 0 0; }

.date-row { display: flex; align-items: flex-end; gap: 6px; flex-wrap: nowrap; }
.date-part { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.date-part-year { flex: 1.7 1 0; }
.date-part-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.date-input { text-align: center; font-size: 1.15rem; font-weight: 800; padding: 0 6px; font-variant-numeric: tabular-nums; }
.date-sep { padding-bottom: 10px; color: var(--text-muted); font-weight: 800; }
.calendar-wrap { position: relative; flex: 0 0 auto; }
.calendar-button { width: 46px; height: 46px; font-size: 1.1rem; }
.native-date {
  position: absolute; left: 0; bottom: 0; width: 46px; height: 46px;
  opacity: 0; pointer-events: none; border: 0; padding: 0;
}
.field-error {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 10px;
  background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); font-size: .9rem; font-weight: 600;
}
.field-error a { color: inherit; font-weight: 800; }

/* ---- Durum ---------------------------------------------------------------- */
.status-area:empty { display: none; }
/* Telefonda Göster sonrası kaydırma hedefleri (history-app.js revealOnMobile):
 * sonuç kartı üst kenara, hata kutusu alt kenara yapışmasın. */
.result, .status-area {
  scroll-margin-top: max(12px, env(safe-area-inset-top));
  scroll-margin-bottom: max(12px, env(safe-area-inset-bottom));
}
.status-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 16px; border-radius: 14px;
  border: 1px solid var(--gh-theme-card-border); background: var(--gh-theme-card-bg);
}
.status-box.is-error { border-color: var(--error-border); background: var(--error-bg); color: var(--error); font-weight: 600; }
.status-box .button { height: 38px; font-size: .85rem; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--gh-theme-accent-border); border-top-color: var(--gh-theme-accent);
  animation: gh-spin .8s linear infinite;
}
@keyframes gh-spin { to { transform: rotate(360deg); } }
.error-box { padding: 10px 12px; border-radius: 10px; background: var(--error-bg); color: var(--error); }

/* ---- Sonuç ---------------------------------------------------------------- */
.result-card { padding: 22px 20px; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-place { margin: 0; font-size: clamp(1.35rem, 5.2vw, 1.9rem); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.result-date { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--text-soft); }
.result-coords { margin: 2px 0 0; font-size: .78rem; color: var(--text-muted); }
.share-button { flex: 0 0 auto; }
.hero-weather { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; }
.hero-icon { font-size: 4rem; line-height: 1; color: var(--gh-theme-accent); flex: 0 0 auto; }
.hero-condition { margin: 0; font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gh-theme-accent); }
.hero-sentence { margin: 2px 0 0; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.hero-note { margin: 4px 0 0; color: var(--text-soft); font-size: .95rem; }
.notes { display: grid; gap: 6px; margin: 12px 0 0; }
.note {
  margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .85rem;
  background: var(--gh-theme-inner-card-bg); border: 1px solid var(--gh-theme-inner-card-border); color: var(--text-soft);
}
.note.is-warning { background: var(--note-bg); border-color: var(--note-border); color: var(--note); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-top: 16px; }
.metric {
  padding: 12px; border-radius: 14px; min-width: 0;
  background: var(--gh-theme-inner-card-bg); border: 1px solid var(--gh-theme-inner-card-border);
}
.metric-label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .74rem; font-weight: 700; color: var(--text-muted); }
.metric-label .bi { color: var(--gh-theme-accent); }
.metric-value { margin: 4px 0 0; font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-sub { margin: 2px 0 0; font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.metric.is-empty .metric-value { font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.attribution { margin: 16px 0 0; font-size: .75rem; color: var(--text-muted); }

.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; font-weight: 900; }
.section-title .bi { color: var(--gh-theme-accent); }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.part {
  padding: 14px; border-radius: 16px; min-width: 0;
  background: var(--gh-theme-inner-card-bg); border: 1px solid var(--gh-theme-inner-card-border);
}
.part-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.part-name { margin: 0; font-size: 1rem; font-weight: 900; }
.part-range { font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.part-main { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.part-icon { font-size: 2.2rem; color: var(--gh-theme-accent); line-height: 1; }
.part-temp { margin: 0; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.part-temprange { margin: 0; font-size: .78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.part-condition { margin: 0 0 8px; font-weight: 700; color: var(--text-soft); font-size: .9rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: .82rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.part.is-empty .part-condition { color: var(--text-muted); }

.hours details { border-radius: 14px; }
.hours summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; list-style: none; font-weight: 900; font-size: 1.05rem;
  padding: 2px 0;
}
.hours summary::-webkit-details-marker { display: none; }
.hours summary .toggle-text { font-size: .85rem; font-weight: 700; color: var(--gh-theme-accent); }
.hours summary .bi-chevron-down { transition: transform .2s ease; }
.hours details[open] summary .bi-chevron-down { transform: rotate(180deg); }
.local-time-note { margin: 10px 0 0; font-size: .8rem; color: var(--text-muted); }
.hour-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.hour {
  display: grid;
  grid-template-columns: 58px 30px minmax(64px, auto) 1fr;
  align-items: center; gap: 4px 10px;
  padding: 8px 10px; border-radius: 12px;
  background: var(--gh-theme-inner-card-bg); border: 1px solid var(--gh-theme-inner-card-border);
}
.hour-time { font-weight: 900; font-variant-numeric: tabular-nums; font-size: .95rem; }
.hour-time small { display: block; font-size: .65rem; font-weight: 700; color: var(--text-muted); }
.hour-icon { font-size: 1.35rem; color: var(--gh-theme-accent); text-align: center; }
.hour-temp { font-weight: 900; font-variant-numeric: tabular-nums; }
.hour-temp small { display: block; font-size: .7rem; font-weight: 600; color: var(--text-muted); }
.hour-details { display: flex; flex-wrap: wrap; justify-content: flex-end; justify-content: safe flex-end; gap: 4px 12px; font-size: .78rem; color: var(--text-soft); font-variant-numeric: tabular-nums; min-width: 0; }
.hour-details span { white-space: nowrap; }
.hour-details .bi { color: var(--text-muted); margin-right: 3px; }
.hour-condition { grid-column: 3 / 5; font-size: .76rem; color: var(--text-muted); }
.wind-arrow { display: inline-block; transition: none; }
.missing { color: var(--text-muted); font-weight: 600; }

/* ---- Bilgi ve alt bilgi -------------------------------------------------- */
.info-card p { margin: 0 0 10px; color: var(--text-soft); font-size: .92rem; }
.info-card p:last-child { margin-bottom: 0; }
.attribution-line { font-weight: 700; }
.footer { text-align: center; padding-top: 8px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.footer-tagline {
  margin: 0 0 6px; font-weight: 900; font-size: .8rem;
  background: linear-gradient(to right, #ff007f, #ffae00, #00e5ff, #00ff66, #7f00ff, #ff007f);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gh-rainbow 6s linear infinite;
}
html[data-scheme="light"] .footer-tagline {
  background-image: linear-gradient(to right, #17639B, #07695F); background-size: 100% auto; animation: none;
}
.footer-meta { margin: 0; font-size: .78rem; color: var(--text-muted); }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 30; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem;
  background: var(--gh-theme-card-bg); color: var(--text); border: 1px solid var(--gh-theme-accent-border);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}

/* ---- En üste dön ---------------------------------------------------------
 * Ana uygulamanın v10.7.85 #ghScrollTop kuralları BİREBİR (görünüm, eşik, solma,
 * güvenli alan); gecmis-mobil-kaydirma.e2e.mjs iki kaynağı karşılaştırır. Farklar:
 * z-index sayfanın kendi katmanına göre (üst çubuk 10 < 25 < bildirim 30) ve ana
 * uygulamada Tailwind preflight'ın verdiği düğme sıfırlaması burada açıkça yazılı. */
#ghScrollTop {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(15,23,42,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #cbd5e1;
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s, background-color .2s ease;
  margin: 0; padding: 0; font-family: inherit; line-height: inherit;
  -webkit-tap-highlight-color: transparent;
}
#ghScrollTop.gh-gorunur { opacity: .72; visibility: visible; transition: opacity .25s ease, visibility 0s; }
#ghScrollTop:hover, #ghScrollTop:focus-visible { opacity: 1; background: rgba(30,41,59,.8); outline: none; }
html[data-scheme="light"] #ghScrollTop { background: rgba(255, 255, 255, .9); border-color: #C8D9E6; color: #17639B; }
html[data-scheme="light"] #ghScrollTop:hover,
html[data-scheme="light"] #ghScrollTop:focus-visible { background: #FFFFFF; }
/* Dar ekranda altbilginin ortalı metni sağ alt köşeye kadar uzanıyor: 390 px'te build
 * damgalı sürüm satırı düğmenin altında kalıyordu (canlı ölçüm 06.10.2026). Sayfa sonunda
 * düğme payı bırakılır (14 + 42 + 10 px); içerik düğmenin üstünde biter. Kırılım geniş
 * ekran kuralının (min-width: 720px) tümleyeni; masaüstü yerleşimi değişmez. */
@media (max-width: 719.98px) {
  .footer { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Geniş ekran ---------------------------------------------------------- */
@media (min-width: 720px) {
  .card { padding: 26px 28px; }
  .hero-card { padding: 30px 32px; }
  .query { grid-template-columns: 1.2fr 1fr; align-items: start; column-gap: 22px; }
  .query .button.primary { grid-column: 1 / -1; }
  .parts-grid { grid-template-columns: repeat(4, 1fr); }
  .hour { grid-template-columns: 64px 34px 92px 1fr; }
  .hour-condition { display: none; }
}
@media (max-width: 380px) {
  .select { font-size: .74rem; padding: 0 5px; }
  .select-unit { width: 50px; }
  .button.secondary span { display: none; }
  .date-input { font-size: 1.05rem; }
}
/* Saat saat kartı — telefon (≤479 px). Eski düzen 380 px'ten büyük telefonlarda da
 * dört sütunu tek satıra sığdırmaya çalışıyordu: Galaxy A55 (384 px) ile 430 px
 * arasında metrik sütununa 58–104 px kalıyor, sağa yaslı ve kırılmayan "Hamle 22 km/sa"
 * sola taşıp "Hissedilen" satırının üstüne biniyordu (05.10.2026 ölçümü, 24/24 kart).
 * Telefonda üst satır saat · ikon · sıcaklık, metrikler altta 2×3 ızgara, durum en altta. */
@media (max-width: 479px) {
  .hour {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "saat ikon sicak" "metrik metrik metrik" "durum durum durum";
    gap: 8px 12px; padding: 10px 12px;
  }
  .hour-time { grid-area: saat; }
  .hour-icon { grid-area: ikon; font-size: 1.6rem; }
  .hour-temp { grid-area: sicak; min-width: 0; font-size: 1.05rem; }
  .hour-details {
    grid-area: metrik; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px; justify-content: stretch;
    padding-top: 8px; border-top: 1px solid var(--gh-theme-inner-card-border);
  }
  .hour-details span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .hour-condition { grid-area: durum; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-name, .footer-tagline, .live-cta, .live-cta-ok { animation: none; }
  .spinner { animation-duration: 2s; }
  body, .hours summary .bi-chevron-down { transition: none; }
}
