/* Full weather page */
.dbk-wx-page {
  --wx-teal: #0d9488;
  --wx-teal-dark: #0f766e;
  --wx-muted: #64748b;
  --wx-border: #e2e8f0;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 40%, #fff 100%);
  min-height: 60vh;
  padding: 24px 16px 48px;
  font-family: 'Poppins', sans-serif;
}

.dbk-wx-page__wrap {
  max-width: 920px;
  margin: 0 auto;
}

.dbk-wx-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wx-teal-dark);
  text-decoration: none;
  margin-bottom: 12px;
}

.dbk-wx-page__hero-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #0f172a;
}

.dbk-wx-page__lead {
  margin: 0 0 20px;
  color: var(--wx-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dbk-wx-page__search {
  position: relative;
  margin-bottom: 20px;
}

.dbk-wx-page__search-row {
  display: flex;
  gap: 10px;
}

.dbk-wx-page__input {
  flex: 1;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--wx-border);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.dbk-wx-page__btn {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wx-teal), var(--wx-teal-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.dbk-wx-page__suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--wx-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.dbk-wx-page__suggest li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
}

.dbk-wx-page__suggest li:hover {
  background: #ecfdf5;
  color: var(--wx-teal-dark);
}

.dbk-wx-page__loading {
  text-align: center;
  color: var(--wx-muted);
  padding: 40px 0;
}

.dbk-wx-panel {
  background: #fff;
  border: 1px solid var(--wx-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.dbk-wx-panel__title {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wx-muted);
}

.dbk-wx-current {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.dbk-wx-current__main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dbk-wx-current__icon {
  font-size: 3.5rem;
  line-height: 1;
}

.dbk-wx-current__temp {
  font-size: 3rem;
  font-weight: 800;
  color: #0284c7;
  line-height: 1;
}

.dbk-wx-current__unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wx-muted);
}

.dbk-wx-current__desc {
  margin: 4px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #334155;
}

.dbk-wx-current__loc {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: #1e293b;
  font-weight: 600;
}

.dbk-wx-current__date {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--wx-muted);
  font-weight: 600;
}

.dbk-wx-day__date {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wx-muted);
  margin-bottom: 2px;
}

.dbk-wx-aqi-card {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
}

.dbk-wx-aqi-card--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dbk-wx-aqi-card--warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.dbk-wx-aqi-card--high { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.dbk-wx-aqi-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dbk-wx-aqi-card__value {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 6px 0 2px;
}

.dbk-wx-aqi-card__pm {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.85;
  margin-top: 4px;
}

.dbk-wx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.dbk-wx-stat {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.dbk-wx-stat i {
  color: #0284c7;
  margin-bottom: 4px;
}

.dbk-wx-stat strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.dbk-wx-stat span {
  font-size: 0.6875rem;
  color: var(--wx-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.dbk-wx-hourly {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.dbk-wx-hour {
  flex: 0 0 64px;
  text-align: center;
  padding: 10px 8px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 0.75rem;
}

.dbk-wx-hour__icon {
  font-size: 1.25rem;
  margin: 4px 0;
}

.dbk-wx-hour strong {
  display: block;
  color: #0284c7;
  font-size: 0.9375rem;
}

.dbk-wx-daily {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.dbk-wx-day {
  border: 1px solid var(--wx-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.dbk-wx-day:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.dbk-wx-day.is-selected {
  border-color: #0284c7;
  background: #e0f2fe;
}

.dbk-wx-day__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.dbk-wx-day__icon {
  font-size: 1.5rem;
  margin: 6px 0;
}

.dbk-wx-day__temps strong {
  color: #0f172a;
}

.dbk-wx-day__temps span {
  color: var(--wx-muted);
  margin-left: 4px;
}

.dbk-wx-tips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dbk-wx-tips li {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dbk-wx-tips li:last-child {
  margin-bottom: 0;
}

.dbk-wx-tips .tip-ok { background: #ecfdf5; color: #065f46; }
.dbk-wx-tips .tip-warn { background: #fffbeb; color: #92400e; }
.dbk-wx-tips .tip-high { background: #fef2f2; color: #991b1b; }

@media (max-width: 640px) {
  .dbk-wx-current {
    grid-template-columns: 1fr;
  }
  .dbk-wx-current__temp {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dbk-wx-day { transition: none; }
}
