﻿:root {
  --bg-1: #f2f7ff;
  --bg-2: #d8ebff;
  --bg-3: #b8d2f1;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.85);
  --text-main: #11263f;
  --text-muted: #35567b;
  --accent: #ff7a18;
  --accent-dark: #d35f00;
  --shadow: 0 18px 42px rgba(10, 32, 62, 0.16);
  --hero-bg-1: rgba(255, 255, 255, 0.88);
  --hero-bg-2: rgba(255, 255, 255, 0.72);
  --hero-border: rgba(255, 255, 255, 0.66);
  --grid-line: rgba(37, 79, 122, 0.22);
  --chart-line: #ff7a18;
  --chart-dot: #1d5b9c;
  --chart-temp-label: #123a63;
  --chart-time-label: #35567b;
  --weekly-max-line: #ff7a18;
  --weekly-min-line: #4c8ddf;
  --highlight: #ff4d4d;
  --success-bg: rgba(32, 149, 102, 0.12);
  --success-text: #176846;
  --error-bg: rgba(220, 72, 72, 0.12);
  --error-text: #9f2222;
  --info-bg: rgba(29, 91, 156, 0.1);
  --info-text: #1d5b9c;
  --focus-ring: rgba(255, 122, 24, 0.3);
}

body[data-theme="dark"] {
  --bg-1: #071426;
  --bg-2: #0e223f;
  --bg-3: #1a355d;
  --card-bg: rgba(18, 34, 56, 0.82);
  --card-border: rgba(86, 123, 168, 0.4);
  --text-main: #e8f1ff;
  --text-muted: #b7cae9;
  --accent: #ff9346;
  --accent-dark: #e5782f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --hero-bg-1: rgba(15, 32, 53, 0.88);
  --hero-bg-2: rgba(13, 28, 47, 0.72);
  --hero-border: rgba(95, 134, 179, 0.4);
  --grid-line: rgba(173, 200, 235, 0.25);
  --chart-line: #ffb16d;
  --chart-dot: #9ec6ff;
  --chart-temp-label: #eef5ff;
  --chart-time-label: #cadbf5;
  --weekly-max-line: #ffbf87;
  --weekly-min-line: #92c4ff;
  --highlight: #ff9c87;
  --success-bg: rgba(54, 180, 128, 0.16);
  --success-text: #a7f2cf;
  --error-bg: rgba(235, 101, 101, 0.14);
  --error-text: #ffb8b8;
  --info-bg: rgba(100, 166, 236, 0.16);
  --info-text: #c8e3ff;
  --focus-ring: rgba(255, 177, 109, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Heebo", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 92% 4%, rgba(255, 198, 146, 0.6), transparent 38%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  display: flex;
  justify-content: center;
  padding: 24px;
  transition: background 0.25s ease, color 0.25s ease;
}

button,
input {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.skip-link {
  position: absolute;
  top: -50px;
  right: 16px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 9999;
}

.skip-link:focus {
  top: 12px;
}

.app-shell {
  width: min(1080px, 100%);
  backdrop-filter: blur(2px);
}

.hero {
  background: linear-gradient(120deg, var(--hero-bg-1), var(--hero-bg-2));
  border: 1px solid var(--hero-border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 26px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #1d4f87;
  font-weight: 700;
}

.theme-toggle {
  border: 1px solid #b9cee5;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

body[data-theme="dark"] .theme-toggle {
  border-color: #6e95c2;
  background: rgba(24, 50, 80, 0.7);
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.06;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 65ch;
}

.city-form {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.city-form input {
  flex: 1;
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid #c6d8ec;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.city-form input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

body[data-theme="dark"] .city-form input {
  border-color: #567aa7;
  background: rgba(24, 50, 80, 0.75);
}

.city-form button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), #ff9353);
}

.city-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(120deg, var(--accent-dark), #e37232);
}

.city-form button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.form-hint,
.field-note {
  margin: 8px 2px 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.field-note {
  margin-top: 4px;
  opacity: 0.9;
}

.meta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-summary {
  margin-top: 16px;
}

.quick-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(22, 55, 92, 0.08);
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.summary-value {
  font-size: 1.15rem;
  font-weight: 800;
}

.accessibility-panel {
  margin-top: 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px;
  background: var(--card-bg);
}

.accessibility-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.accessibility-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.access-btn {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-main);
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.access-btn:hover {
  transform: translateY(-1px);
}

body[data-theme="dark"] .access-btn {
  background: rgba(23, 46, 74, 0.72);
}

.access-btn.active {
  border-color: var(--highlight);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.status {
  margin: 18px 6px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  background: var(--info-bg);
  color: var(--info-text);
}

.status:empty {
  display: none;
}

.status.status-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.status.status-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.status.status-info {
  background: var(--info-bg);
  color: var(--info-text);
}

.section-block {
  margin-top: 20px;
}

.section-title {
  margin: 0 6px 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.hourly-chart,
.weekly-chart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(22, 55, 92, 0.12);
}

.hourly-chart {
  min-height: 280px;
}

.weekly-chart {
  margin-top: 14px;
  min-height: 270px;
}

.hourly-chart-svg {
  width: 100%;
  height: 260px;
  display: block;
}

.weekly-chart-svg {
  width: 100%;
  height: 250px;
  display: block;
}

.chart-grid-line {
  stroke: var(--grid-line);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--chart-dot);
  stroke: #fff;
  stroke-width: 1.5;
}

.chart-temp-label {
  fill: var(--chart-temp-label);
  font-size: 12px;
  font-weight: 700;
}

.chart-icon-label {
  font-size: 14px;
}

.chart-time-label {
  fill: var(--chart-time-label);
  font-size: 11px;
}

.chart-now-line {
  stroke: var(--highlight);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.chart-dot-now {
  fill: var(--highlight);
  stroke: #fff;
  stroke-width: 2;
}

.chart-now-label {
  fill: var(--highlight);
  font-size: 11px;
  font-weight: 700;
}

.chart-time-label-now {
  fill: var(--highlight);
  font-weight: 700;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 12px;
}

.weekly-line-max {
  fill: none;
  stroke: var(--weekly-max-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weekly-line-min {
  fill: none;
  stroke: var(--weekly-min-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weekly-dot-max {
  fill: var(--weekly-max-line);
  stroke: #fff;
  stroke-width: 1.5;
}

.weekly-dot-min {
  fill: var(--weekly-min-line);
  stroke: #fff;
  stroke-width: 1.5;
}

.weekly-label-max {
  fill: var(--weekly-max-line);
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--card-bg);
  stroke-width: 2px;
}

.weekly-label-min {
  fill: var(--weekly-min-line);
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--card-bg);
  stroke-width: 2px;
}

.weekly-day-label {
  fill: var(--chart-time-label);
  font-size: 11px;
}

.weekly-today-line {
  stroke: var(--highlight);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.weekly-day-label-today {
  fill: var(--highlight);
  font-weight: 700;
}

.day-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(22, 55, 92, 0.14);
  transform-origin: center;
  animation: rise-in 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 55, 92, 0.18);
}

.day-card.today-card {
  border-color: var(--highlight);
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.22);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 88%, #fff4ef), var(--card-bg));
}

.today-pill {
  margin: 0 0 6px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 77, 77, 0.12);
  color: var(--highlight);
  font-size: 0.78rem;
  font-weight: 700;
}

.day-card:nth-child(2) {
  animation-delay: 0.05s;
}

.day-card:nth-child(3) {
  animation-delay: 0.1s;
}

.day-card:nth-child(4) {
  animation-delay: 0.15s;
}

.day-card:nth-child(5) {
  animation-delay: 0.2s;
}

.day-card:nth-child(6) {
  animation-delay: 0.25s;
}

.day-card:nth-child(7) {
  animation-delay: 0.3s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-name {
  margin: 0;
  font-size: 1.1rem;
}

.weather-icon {
  margin: 0 0 6px;
  font-size: 1.7rem;
  line-height: 1;
}

.date,
.weather-code {
  margin: 5px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.temps {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.max {
  color: #ce3b0f;
}

.min {
  color: #1d5b9c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.seo-intro {
  margin: 10px 0 0;
  color: var(--text-main);
  line-height: 1.7;
  max-width: 68ch;
}

.info-section {
  margin-top: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 6px 16px rgba(22, 55, 92, 0.08);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}
.article-section {
  margin-top: 24px;
}

.info-article {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 6px 16px rgba(22, 55, 92, 0.1);
}

.info-article p {
  margin: 0 0 12px;
  color: var(--text-main);
  line-height: 1.75;
}

.info-article p:last-child {
  margin-bottom: 0;
}
.disclaimer {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.disclaimer:last-child {
  margin-bottom: 0;
}

body.access-high-contrast {
  --text-main: #000;
  --text-muted: #111;
  --card-bg: #fff;
  --card-border: #000;
  --hero-bg-1: #fff;
  --hero-bg-2: #fff;
  --hero-border: #000;
  --grid-line: #333;
  --chart-time-label: #000;
  --chart-temp-label: #000;
}

body[data-theme="dark"].access-high-contrast {
  --text-main: #fff;
  --text-muted: #fff;
  --card-bg: #000;
  --card-border: #fff;
  --hero-bg-1: #000;
  --hero-bg-2: #000;
  --hero-border: #fff;
  --grid-line: #bbb;
  --chart-time-label: #fff;
  --chart-temp-label: #fff;
}

body.access-readable-font {
  font-family: "Arial", "Tahoma", sans-serif;
}

body.access-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

body.access-grayscale {
  filter: grayscale(1);
}

@media (max-width: 940px) {
  .hourly-chart {
    min-height: 250px;
  }

  .forecast-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .quick-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    padding: 14px;
  }

  .hero {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-top-row {
    flex-wrap: wrap;
  }

  .forecast-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .hourly-chart-svg {
    height: 230px;
  }

  .city-form button,
  .city-form input {
    width: 100%;
  }

  .quick-summary-grid {
    grid-template-columns: 1fr;
  }
}


