/* Root background */
#weather-slider-root {
  width: 100%;
  background: radial-gradient(circle at top left, #8ec5fc 0%, #e0c3fc 30%, #6a11cb 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Main container */
.weather-slider {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  position: relative;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Fade-in when data loaded */
.weather-slider.ws-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Top row */
.weather-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Heading area */
.weather-slider-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-slider-pin {
  font-size: 18px;
}

.weather-slider-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-slider-title {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.weather-slider-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* Controls area */
.weather-slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-dont-show {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.95;
}

.ws-dont-show input[type="checkbox"] {
  cursor: pointer;
}

.ws-close {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ws-close:hover {
  background-color: rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* 7-day strip */
.weather-slider-days {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 6px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.weather-slider-days::-webkit-scrollbar {
  height: 6px;
}
.weather-slider-days::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}
.weather-slider-days::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 999px;
}

/* Day cards */
.weather-day {
  flex: 0 0 auto;
  min-width: 110px;
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 16px rgba(15,23,42,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.weather-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.35);
  border-color: rgba(255,255,255,0.6);
}

.weather-day-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

/* Icon */
.weather-day-icon {
  font-size: 32px;
  line-height: 1;
  margin: 4px 0 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Temp row */
.weather-day-temp {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.weather-day-temp .temp-max {
  color: #ffffff;
}

.weather-day-temp .temp-min {
  color: rgba(255,255,255,0.8);
}

.weather-day-temp .temp-separator {
  color: rgba(255,255,255,0.6);
}

/* Description */
.weather-day-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide widget entirely */
.weather-slider.hidden {
  display: none;
}

/* Skeleton loading states */
.weather-day-skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton-bar,
.skeleton-circle {
  background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.18) 100%);
  background-size: 200% 100%;
  animation: ws-skeleton 1.2s ease-in-out infinite;
}

.skeleton-bar {
  height: 10px;
  border-radius: 999px;
  margin: 6px 12px;
  opacity: 0.8;
}

.skeleton-bar.small {
  width: 70%;
  margin-inline: auto;
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 8px auto;
}

@keyframes ws-skeleton {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .weather-slider {
    padding: 10px 14px 14px;
  }
  .weather-slider-title {
    font-size: 16px;
  }
  .weather-day {
    min-width: 95px;
    padding: 10px 8px;
  }
  .weather-day-icon {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .weather-slider-top {
    align-items: flex-start;
  }
  .weather-slider-controls {
    margin-left: auto;
  }
  .weather-day {
    min-width: 85px;
  }
}