/* Frontend light theme – overrides when html has data-theme="light" */
[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-mid: #e2e8f0;
  --fg: #1e293b;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-warm: #d97706;
  --glass: rgba(0,0,0,.04);
  --border: rgba(0,0,0,.1);
  --scrollbar-track: rgba(0,0,0,.06);
  --scrollbar-thumb: rgba(0,0,0,.2);
  --scrollbar-thumb-hover: rgba(0,0,0,.3);
}

[data-theme="light"] body {
  background-color: #f1f5f9;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(2,132,199,.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 90% 50%, rgba(251,191,36,.04), transparent 45%),
    linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  color: var(--fg);
}

/* Világos mód: minden cím és szöveg olvasható (sötét) színű – !important, hogy felülírja a lapon belüli stílusokat */
[data-theme="light"] body,
[data-theme="light"] .site-main,
[data-theme="light"] .wrap {
  color: #1e293b !important;
}

/* Kezdőlap szöveg widgetek (intro + lábléc feletti): világos téma – sötét, olvasható szöveg */
[data-theme="light"] .home-intro-widget-inner,
[data-theme="light"] .home-intro-widget-inner p,
[data-theme="light"] .home-intro-widget-inner a,
[data-theme="light"] .home-intro-widget-inner .home-intro-title {
  color: #1e293b !important;
}

[data-theme="light"] .home-intro-widget-inner a:hover {
  color: var(--accent) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .title-widget h1,
[data-theme="light"] .title-widget-location,
[data-theme="light"] .home-title,
[data-theme="light"] .index-map-title,
[data-theme="light"] .wetter-index h1,
[data-theme="light"] .region-group h2,
[data-theme="light"] .city-card-name,
[data-theme="light"] .city-card-meta,
[data-theme="light"] .breadcrumb a,
[data-theme="light"] .breadcrumb [aria-current="page"],
[data-theme="light"] .breadcrumb li,
[data-theme="light"] .footer-bar .footer,
[data-theme="light"] .footer-bar .footer a,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .updated,
[data-theme="light"] .current-feelslike,
[data-theme="light"] .current-day-minmax,
[data-theme="light"] .current-condition-icon-wrap .condition-text,
[data-theme="light"] .current-widget-right .current-item .val,
[data-theme="light"] .current-widget-right .current-item .lbl,
[data-theme="light"] .current-astro .astro-item .val,
[data-theme="light"] .current-astro .astro-item .lbl,
[data-theme="light"] .hour-box .time,
[data-theme="light"] .hour-box .temp,
[data-theme="light"] .hour-box .lbl,
[data-theme="light"] .daily-table td,
[data-theme="light"] .daily-table th,
[data-theme="light"] .daily-table .col-min,
[data-theme="light"] .daily-table .col-max,
[data-theme="light"] .daily-table .daily-condition,
[data-theme="light"] .daily-table .moon-phase-cell,
[data-theme="light"] .daily-diagram .row-label,
[data-theme="light"] .daily-diagram .date-cell,
[data-theme="light"] .daily-diagram .data-cell,
[data-theme="light"] .daily-diagram .data-cell .val,
[data-theme="light"] .daily-diagram .bar-cell .bar-val,
[data-theme="light"] .daily-diagram .wind-cell,
[data-theme="light"] .daily-diagram .chart-temp-labels .chart-temp-val,
[data-theme="light"] .hourly-diagram .row-label,
[data-theme="light"] .hourly-diagram .time-cell,
[data-theme="light"] .hourly-diagram .data-cell,
[data-theme="light"] .hourly-diagram .data-cell .val,
[data-theme="light"] .hourly-diagram .bar-cell .bar-val,
[data-theme="light"] .hourly-diagram .wind-cell,
[data-theme="light"] .hourly-diagram .chart-temp-labels .chart-temp-val,
[data-theme="light"] .search-result-item .result-name,
[data-theme="light"] .search-result-item .result-weather,
[data-theme="light"] .current-temp-main,
[data-theme="light"] .title-widget h1,
[data-theme="light"] .current-widget-bottom .updated,
[data-theme="light"] .current-widget-bottom .dwd-source,
[data-theme="light"] .card p,
[data-theme="light"] .current-widget-left .current-feelslike,
[data-theme="light"] .current-widget-left .current-day-minmax,
[data-theme="light"] .current-pollen-wrap h4,
[data-theme="light"] .current-pollen-wrap .pollen-head,
[data-theme="light"] .current-pollen-grid .pollen-name,
[data-theme="light"] .current-pollen-grid .pollen-val,
[data-theme="light"] .current-pollen-wrap .pollen-popup,
[data-theme="light"] .current-pollen-wrap .pollen-popup strong,
[data-theme="light"] .current-pollen-wrap .pollen-popup .pollen-popup-logic,
[data-theme="light"] .current-pollen-wrap .pollen-popup .pollen-popup-logic-title,
[data-theme="light"] .current-pollen-wrap .pollen-popup th,
[data-theme="light"] .current-pollen-wrap .pollen-popup td {
  color: #1e293b !important;
}

[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .region-group h2,
[data-theme="light"] .current-widget-right .current-item .lbl,
[data-theme="light"] .current-astro .astro-item .lbl,
[data-theme="light"] .hour-box .time,
[data-theme="light"] .hour-box .lbl,
[data-theme="light"] .breadcrumb li:not([aria-current="page"]),
[data-theme="light"] .search-result-item .result-weather,
[data-theme="light"] .daily-diagram .data-cell,
[data-theme="light"] .hourly-diagram .time-cell,
[data-theme="light"] .hourly-diagram .data-cell,
[data-theme="light"] .daily-table thead th,
[data-theme="light"] .hourly-diagram .row-label,
[data-theme="light"] .daily-diagram .row-label,
[data-theme="light"] .hourly-diagram .time-cell:nth-child(3n) {
  color: #64748b !important;
}

[data-theme="light"] .hero-search-wrap input {
  background: #fff;
  color: #1e293b;
  border: 1px solid rgba(0,0,0,0.12);
}

[data-theme="light"] .hero-search-wrap input::placeholder {
  color: var(--muted);
}

/* Hero widget: világos módban is kék háttér marad, fehér szöveg */
[data-theme="light"] .hero-widget .hero-title,
[data-theme="light"] .hero-widget .hero-subtitle,
[data-theme="light"] .hero-widget .hero-info,
[data-theme="light"] .hero-widget .hero-recent-label,
[data-theme="light"] .hero-widget .hero-pills a {
  color: #fff !important;
}

[data-theme="light"] .hero-widget .hero-pills a:hover {
  background: rgba(255,255,255,0.35) !important;
  color: #fff !important;
}

[data-theme="light"] .hero-pills a {
  color: var(--fg);
}

[data-theme="light"] .hero-pills a:hover {
  background: rgba(0,0,0,0.08);
  color: var(--fg);
}

[data-theme="light"] .city-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .glass-widget {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-bar {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header-search-wrap input {
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
}

[data-theme="light"] .header-search-wrap input::placeholder {
  color: #64748b;
}

[data-theme="light"] .header-search-wrap .search-icon {
  color: #64748b;
}

[data-theme="light"] .header-search-wrap input:focus {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

[data-theme="light"] .header-search-results {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .header-search-results .search-result-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header-search-results .search-result-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-bar {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .title-widget,
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-icon {
  color: #fff;
}

/* Hero: világos módban színátmenet csak ha nincs háttérkép; .has-hero-image esetén az inline background-image marad (ne írjuk felül) */
[data-theme="light"] .hero-widget:not(.has-hero-image) {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 35%, #284483 75%, #1e3a8a 100%) !important;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Téma váltó gomb a fejlécben */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--fg);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1e293b;
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .theme-toggle-icon {
  display: block;
}

.theme-toggle .theme-toggle-icon[hidden] {
  display: none;
}

.theme-toggle svg {
  display: block;
}
