img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Search Bar */
.location-row {
  display: flex;
  gap: 8px;
}

.location-row input {
  flex: 1;
  border-radius: var(--pill-radius);
  border: 1px solid var(--onyx-outline);
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 14px;
}

.location-row input::placeholder {
  color: var(--text-muted);
}

.location-row button {
  border-radius: var(--pill-radius);
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #020208;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 10px 24px rgba(154, 214, 255, 0.45);
}

.location-row button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(154, 214, 255, 0.3);
}

#search-error {
  margin-top: 4px;
  font-size: 11px;
  color: #ff8a8a;
}

/* Header Text */
.location-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.temp-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.temp-value {
  font-size: 56px;
  font-weight: 700;
}

.condition-label {
  font-size: 15px;
  color: var(--accent-secondary);
}

.meta-row {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.meta-pill {
  padding: 4px 8px;
  border-radius: var(--pill-radius);
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--onyx-outline);
  color: var(--text-secondary);
}

.last-updated {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Icon Pill */
.icon-pill {
  width: 88px;
  height: 88px;
  border-radius: 32px;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.icon-pill img {
  width: 64px;
  height: 64px;
}

/* Chips */
.chips-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.chip {
  border-radius: var(--pill-radius);
  border: 1px solid var(--onyx-outline);
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.chip.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #020208;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

/* Animations for icons & chips */
.icon-fade-in {
  animation: iconFadeIn 0.25s ease-out;
}

.chip-hourly-anim {
  animation: chipSlideIn 0.25s ease-out both;
}

.card-float-in {
  animation: cardFloatIn 0.3s ease-out both;
}

@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes chipSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Alerts */
.alert-section {
  animation: fadeIn 0.2s ease-out;
}

.alert-pill {
  background: radial-gradient(circle at top left, #ff6b7a, #3a050a);
  border-radius: var(--pill-radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(255, 59, 71, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.alert-pill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-pill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffeef0;
}

.alert-pill-dismiss {
  border: none;
  background-color: rgba(0, 0, 0, 0.25);
  color: #ffeef0;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  font-size: 14px;
  cursor: pointer;
}

.alert-pill-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff5f6;
}

.alert-pill-body {
  font-size: 12px;
  color: #ffe1e4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
