/* =========================================================
   Gaudau.lt – orų prognozė
   ========================================================= */

.weather-app {
  display: grid;
  gap: 20px;
}

.weather-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.weather-city-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-strong);
}

.weather-city-select {
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239bb2c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .weather-city-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.weather-city-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

/* Visible keyboard focus ring for the city select. Uses the bright green
   accent with a soft halo so the control is clearly distinguishable from
   the mouse-focus state on both themes. */
.weather-city-select:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-city-select:focus-visible {
  outline-color: var(--green);
}

.weather-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.weather-refresh:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
}

/* Visible keyboard focus ring for the weather refresh button. Matches the
   weather spot quick-pick focus treatment: bright green outline plus a
   soft halo so the focus state is clearly distinguishable from the
   mouse-hover state on both themes. */
.weather-refresh:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-refresh:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

@media (prefers-reduced-motion: reduce) {
  .weather-refresh:focus-visible {
    transition: none;
  }
}

/* Visible keyboard focus ring for the refresh button. The bright green
   outline plus a soft halo keeps the control clearly visible against the
   toolbar surface on both themes. */
.weather-refresh:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-refresh:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

/* Reduced motion: keep the focus ring but skip any transition so the
   control does not animate while focused. */
@media (prefers-reduced-motion: reduce) {
  .weather-city-select:focus-visible,
  .weather-refresh:focus-visible {
    transition: none;
  }
}

.weather-refresh svg {
  width: 15px;
  height: 15px;
}

.weather-refresh.is-loading svg {
  animation: weather-spin 0.9s linear infinite;
}

/* Reduced motion: the refresh icon does not spin. The loading state is
   still communicated via the button's disabled state and the status
   live region, so the animation is purely decorative and can be safely
   disabled for users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .weather-refresh.is-loading svg {
    animation: none;
  }
}

@keyframes weather-spin {
  to { transform: rotate(360deg); }
}

/* Reduced motion: stop the refresh icon spin animation entirely. The
   button keeps its loading state (aria-busy / disabled styling) but the
   icon stays static for users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .weather-refresh.is-loading svg {
    animation: none;
  }
}

.weather-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
}

.weather-status.is-error {
  color: var(--danger);
}

/* Screen-reader-only live region announcing city + bite index after each fetch. */
.weather-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Telkinių nuorodos ---------- */
.weather-spots {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.weather-spots-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weather-spots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-spot-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.weather-spot-btn:hover {
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
  transform: translateY(-1px);
}

/* Reduced motion: the quick-pick chips keep their resting position and
   never lift on hover. The transition is also disabled so the chips do
   not animate their background, border, or color for users who request
   reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .weather-spot-btn {
    transition: none;
  }

  .weather-spot-btn:hover {
    transform: none;
  }
}

.weather-spot-btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  background-color: var(--green-soft);
  border-color: var(--green-line);
  color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-spot-btn:focus-visible {
  outline-color: var(--green);
}

.weather-spot-btn.is-active {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
}

/* Visible keyboard focus ring for the active quick-pick spot button. The
   active state already uses the green accent fill, so the focus ring uses
   a bright green outline plus a soft halo to stay clearly distinguishable
   from the resting active state on both themes. */
.weather-spot-btn.is-active:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-color: var(--green);
  background-color: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft), inset 0 0 0 1px var(--green-line);
}

[data-theme="light"] .weather-spot-btn.is-active:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft), inset 0 0 0 1px var(--green-line);
}

@media (prefers-reduced-motion: reduce) {
  .weather-spot-btn.is-active:focus-visible {
    transition: none;
  }
}

.weather-spot-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.weather-spot-btn-meta {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Screen-reader-only live region announcing the selected fishing spot
   after a quick-pick button is activated. */
.weather-spots-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.weather-spot-btn.is-active .weather-spot-btn-meta {
  color: var(--green);
  opacity: 0.85;
}

@media (max-width: 640px) {
  .weather-spot-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-spot-btn {
    transition: none;
  }
}

/* ---------- Kibimo indeksas ---------- */
.bite-index {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.5vw, 22px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.bite-index[hidden] {
  display: none;
}

.bite-index-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bite-index-kicker {
  margin: 0 0 2px;
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bite-index-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bite-index-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
}

.bite-index-score-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.bite-index-score-max {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.bite-index-meter {
  height: 10px;
  border-radius: 999px;
  background-color: var(--surface-3);
  overflow: hidden;
}

/* Visible keyboard focus ring for the bite index meter. The meter is a
   non-interactive progressbar, but it is included in the tab order via
   tabindex="0" so keyboard users can reach and read the current index.
   The ring uses the bright green accent with a soft halo so it stays
   clearly visible against the meter track on both themes. */
.bite-index-meter:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .bite-index-meter:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

@media (prefers-reduced-motion: reduce) {
  .bite-index-meter:focus-visible {
    transition: none;
  }
}

.bite-index-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--danger), var(--sand), var(--green));
  transition: width 0.6s ease;
}

/* Reduced motion: snap the bite index meter to its new width instead of
   animating the fill. */
@media (prefers-reduced-motion: reduce) {
  .bite-index-meter-fill {
    transition: none;
  }
}

.bite-index-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.bite-index-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bite-index-factor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
  font-size: 0.76rem;
  color: var(--text);
  white-space: nowrap;
}

.bite-index-factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--muted);
}

.bite-index-factor.is-good .bite-index-factor-dot {
  background-color: var(--green);
}

.bite-index-factor.is-mid .bite-index-factor-dot {
  background-color: var(--sand);
}

.bite-index-factor.is-bad .bite-index-factor-dot {
  background-color: var(--danger);
}

.bite-index-factor strong {
  font-weight: 600;
  color: var(--text-strong);
}

/* Screen-reader-only live region announcing the computed bite index
   and rating label after each forecast refresh. */
.bite-index-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Dabartiniai orai ---------- */
.weather-current {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.weather-current[hidden] {
  display: none;
}

@media (min-width: 720px) {
  .weather-current {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.weather-current-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weather-current-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background-color: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.weather-current-icon svg {
  width: 48px;
  height: 48px;
}

.weather-current-temp {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.03em;
}

.weather-current-desc {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.weather-current-meta {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.weather-current-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weather-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
}

/* Visible keyboard focus ring for the current-conditions detail tiles.
   The tiles are non-interactive readouts, but they are included in the
   tab order via tabindex="0" so keyboard users can reach and read each
   value. The ring uses the bright green accent with a soft halo so it
   stays clearly visible against the tile surface on both themes. */
.weather-detail:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-color: var(--green-line);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-detail:focus-visible {
  outline-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

@media (prefers-reduced-motion: reduce) {
  .weather-detail:focus-visible {
    transition: none;
  }
}

.weather-detail-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}

.weather-detail-icon svg {
  width: 16px;
  height: 16px;
}

.weather-detail-text {
  min-width: 0;
}

.weather-detail-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.weather-detail-value {
  font-size: 0.92rem;
  color: var(--text-strong);
  font-weight: 600;
}

/* ---------- Prognozė ---------- */
.weather-forecast {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.weather-day {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-image: linear-gradient(165deg, var(--surface-2), var(--surface));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.weather-day:hover {
  transform: translateY(-2px);
  border-color: var(--green-line);
  box-shadow: var(--shadow);
}

/* Reduced motion: disable the weather day card hover lift so the card
   keeps its resting position for users who request reduced motion. The
   hover border/background color change is preserved as a static state
   change so the card is still visually distinguishable. */
@media (prefers-reduced-motion: reduce) {
  .weather-day {
    transition: none;
  }

  .weather-day:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Reduced motion: disable the hover lift so the forecast card does not
   shift position for users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .weather-day {
    transition: none;
  }

  .weather-day:hover {
    transform: none;
  }
}

.weather-day.is-today {
  border-color: var(--green-line);
  background-image: linear-gradient(165deg, var(--green-soft), var(--surface));
}

/* Visible keyboard focus ring for the forecast day cards. Cards are
   focusable (tabindex="0") so keyboard users can tab through the 7-day
   grid and read each day's conditions. */
.weather-day:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-color: var(--green-line);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-day:focus-visible {
  outline-color: var(--green);
}

/* Reduced motion: keep the focus ring but skip the hover lift so the card
   does not shift position while focused. */
@media (prefers-reduced-motion: reduce) {
  .weather-day:focus-visible {
    transform: none;
  }
}

.weather-day-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.weather-day-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Per-dienos kibimo indekso ženkliukas ---------- */
.weather-day-bite {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 40px;
  padding: 4px 7px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text-strong);
  line-height: 1;
  flex-shrink: 0;
  cursor: help;
}

.weather-day-bite-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.weather-day-bite-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.weather-day-bite.is-good {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--green);
}

.weather-day-bite.is-mid {
  border-color: rgba(251, 191, 36, 0.4);
  background-color: rgba(251, 191, 36, 0.12);
  color: var(--sand);
}

.weather-day-bite.is-bad {
  border-color: var(--danger-soft);
  background-color: var(--danger-soft);
  color: var(--danger);
}

/* Visible keyboard focus ring for the per-day bite badge. The badge is a
   non-interactive status element, but it is included in the tab order via
   tabindex="0" so keyboard users can reach and read it. */
.weather-day-bite:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-color: var(--green-line);
  box-shadow: 0 0 0 4px var(--green-soft);
}

[data-theme="light"] .weather-day-bite:focus-visible {
  outline-color: var(--green);
}

.weather-day-bite.is-mid:focus-visible {
  outline-color: var(--sand);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

[data-theme="light"] .weather-day-bite.is-mid:focus-visible {
  outline-color: var(--sand);
}

.weather-day-bite.is-bad:focus-visible {
  outline-color: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

/* Reduced motion: keep the focus rings on the per-day bite badge but skip
   any transition so the badge does not animate while focused. */
@media (prefers-reduced-motion: reduce) {
  .weather-day-bite:focus-visible {
    transition: none;
  }
}

[data-theme="light"] .weather-day-bite.is-bad:focus-visible {
  outline-color: var(--danger);
}

[data-theme="light"] .weather-day-bite.is-mid {
  border-color: rgba(180, 83, 9, 0.35);
  background-color: rgba(180, 83, 9, 0.1);
  color: var(--sand);
}

.weather-day-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.weather-day-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--green-soft);
  color: var(--green);
}

.weather-day-icon svg {
  width: 26px;
  height: 26px;
}

.weather-day-temps {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.weather-day-temp-max {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
}

.weather-day-temp-min {
  font-size: 0.85rem;
  color: var(--muted);
}

.weather-day-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.74rem;
  color: var(--muted);
}

.weather-day-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.weather-day-meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.weather-skeleton {
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background-color: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Screen-reader-only live region announcing the number of forecast days
   rendered and the selected city whenever the forecast refreshes. */
.weather-forecast-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skeleton loading state ---------- */
.weather-day-skeleton {
  pointer-events: none;
  cursor: default;
}

.weather-day-skeleton:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.weather-skeleton-line,
.weather-skeleton-badge,
.weather-skeleton-icon {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--surface-3);
}

.weather-skeleton-line::after,
.weather-skeleton-badge::after,
.weather-skeleton-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 190, 210, 0.14) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: weather-skeleton-shimmer 1.4s ease-in-out infinite;
}

[data-theme="light"] .weather-skeleton-line::after,
[data-theme="light"] .weather-skeleton-badge::after,
[data-theme="light"] .weather-skeleton-icon::after {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 45, 60, 0.08) 50%,
    transparent 100%
  );
}

.weather-skeleton-line-sm {
  width: 60%;
  height: 10px;
}

.weather-skeleton-line-md {
  width: 70%;
  height: 9px;
}

.weather-skeleton-line-lg {
  width: 45%;
  height: 16px;
  border-radius: 8px;
}

.weather-skeleton-badge {
  width: 40px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
}

.weather-skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

@keyframes weather-skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-skeleton-line::after,
  .weather-skeleton-badge::after,
  .weather-skeleton-icon::after {
    animation: none;
    background-image: none;
  }

  .weather-skeleton-line,
  .weather-skeleton-badge,
  .weather-skeleton-icon {
    animation: weather-skeleton-pulse 1.6s ease-in-out infinite;
  }

  @keyframes weather-skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
}

@media (max-width: 640px) {
  .weather-current-details {
    grid-template-columns: 1fr;
  }

  .weather-forecast {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-day,
  .weather-refresh svg,
  .bite-index-meter-fill {
    transition: none;
    animation: none;
  }
}
