/* Weather Ticker - Horizontal Marquee Style */
.weather-ticker {
  width: 100%;
  height: 28px;
  background: var(--background, #1e1e1e);
  border-top: 1px solid var(--accent, #78e08f);
  border-bottom: 1px solid var(--accent, #78e08f);
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  overflow: hidden;
  position: relative;
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.weather-ticker__search {
  flex: 0 0 230px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--accent, #78e08f);
  gap: 6px;
  box-sizing: border-box;
}

.weather-ticker__search-input {
  flex: 1 1 auto;
  height: 18px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid var(--accent, #78e08f);
  color: var(--accent, #78e08f);
  font-family: inherit;
  font-size: 0.65rem;
  outline: none;
  box-sizing: border-box;
}

.weather-ticker__search-button {
  flex: 0 0 auto;
  height: 18px;
  padding: 0 8px;
  border: 1px solid var(--accent, #78e08f);
  background: transparent;
  color: var(--accent, #78e08f);
  font-family: inherit;
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.weather-ticker__search-button:hover {
  background: var(--accent, #78e08f);
  color: var(--accent-contrast-color, #0a0a0a);
}

.weather-ticker__search-input:focus {
  background: rgba(120, 224, 143, 0.1);
}

.weather-ticker__search-input::placeholder {
  color: var(--accent, #78e08f);
  opacity: 0.6;
}

.weather-ticker__ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.weather-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 20s linear infinite;
}

.weather-ticker:hover .weather-ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.weather-ticker__content {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 30px;
  white-space: nowrap;
}

.weather-ticker__segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.weather-ticker__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.weather-ticker__period {
  color: var(--accent, #78e08f);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.weather-ticker__temp {
  color: var(--color, #c9d1d9);
  font-size: 0.75rem;
  font-weight: bold;
}

.weather-ticker__desc {
  color: var(--color, #c9d1d9);
  font-size: 0.7rem;
  opacity: 0.9;
}

.weather-ticker__divider {
  color: var(--accent, #78e08f);
  opacity: 0.5;
  margin: 0 15px;
  font-size: 0.8rem;
}


/* Responsive */
@media (max-width: 768px) {
  .weather-ticker {
    height: auto;
    padding: 6px 0;
    align-items: stretch;
  }

  .weather-ticker__search {
    flex: 0 0 200px;
    border-right: 1px solid var(--accent, #78e08f);
  }
  
  .weather-ticker__content {
    height: 26px;
    padding: 0 20px;
  }
  
  .weather-ticker__segment {
    gap: 4px;
  }
  
  .weather-ticker__period {
    font-size: 0.65rem;
  }
  
  .weather-ticker__temp {
    font-size: 0.7rem;
  }
  
  .weather-ticker__desc {
    font-size: 0.65rem;
  }
  
  .weather-ticker__divider {
    margin: 0 10px;
  }
  
  .weather-ticker__location {
    font-size: 0.6rem;
  }

  .weather-ticker__search-input {
    font-size: 0.6rem;
  }

  .weather-ticker__search-button {
    font-size: 0.55rem;
  }

  .weather-ticker__ticker {
    height: 26px;
  }
}

@media (max-width: 480px) {
  .weather-ticker {
    height: 28px;
  }

  .weather-ticker__search {
    flex: 0 0 170px;
    padding: 0 8px;
  }

  .weather-ticker__track {
    animation-duration: 15s;
  }
  
  .weather-ticker__content {
    padding: 0 15px;
  }
  
  .weather-ticker__divider {
    margin: 0 8px;
  }
}
