:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #f72585;
  --text: #ffffff;
  --bg: #0a1128;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

.weather-app {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
}

.search-box {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  padding: 5px 10px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn,
.voice-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 10px;
  transition: transform 0.3s ease;
}

.search-btn:hover,
.voice-btn:hover {
  transform: scale(1.2);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
  }
}

.central-display {
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.2) 0%,
    rgba(10, 17, 40, 0.5) 70%
  );
  border-radius: 20px;
  border: 2px solid rgba(67, 97, 238, 0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(67, 97, 238, 0.2);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 580px;
}

@media (min-width: 768px) {
  .central-display {
    width: 50%;
  }
}

.central-display::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.1) 0%,
    transparent 70%
  );
  z-index: -1;
}

.central-display:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(67, 97, 238, 0.4);
}

#city {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

#temp {
  font-size: 60px;
  font-weight: 300;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  margin: 10px 0;
}

@media (min-width: 480px) {
  #temp {
    font-size: 72px;
  }
}

#temp::after {
  content: "°C";
  position: absolute;
  font-size: 30px;
  right: -30px;
  top: 5px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#mainIcon {
  font-size: 50px;
  margin: 15px 0;
  animation: float 6s ease-in-out infinite;
  color: var(--accent);
}

@media (min-width: 480px) {
  #mainIcon {
    font-size: 60px;
  }
}

#description {
  font-size: 16px;
  text-transform: capitalize;
  opacity: 0.9;
  text-align: center;
}

@media (min-width: 480px) {
  #description {
    font-size: 18px;
  }
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
  width: 100%;
}

.forecast-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .forecast-container {
    width: 50%;
  }
}

.forecast-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.forecast-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.panel-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

@media (min-width: 480px) {
  .panel-header {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

.hourly-forecast {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.hourly-forecast::-webkit-scrollbar {
  height: 6px;
}

.hourly-forecast::-webkit-scrollbar-thumb {
  background: rgba(67, 97, 238, 0.5);
  border-radius: 3px;
}

.hour-item {
  min-width: 70px;
  padding: 12px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .hour-item {
    min-width: 80px;
    padding: 15px;
    border-radius: 15px;
  }
}

.hour-item:hover {
  background: rgba(67, 97, 238, 0.2);
  transform: translateY(-5px);
}

.hour-item div:first-child {
  font-size: 12px;
  margin-bottom: 6px;
}

@media (min-width: 480px) {
  .hour-item div:first-child {
    font-size: 14px;
    margin-bottom: 8px;
  }
}

.hour-item i {
  font-size: 20px;
  margin: 4px 0;
}

@media (min-width: 480px) {
  .hour-item i {
    font-size: 24px;
    margin: 6px 0;
  }
}

.hour-item div:last-child {
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .hour-item div:last-child {
    font-size: 16px;
    margin-top: 8px;
  }
}

.daily-forecast {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  height: 250px;
  -webkit-overflow-scrolling: touch;
}

.daily-forecast::-webkit-scrollbar {
  height: 0px;
  width: 5px;
}

.daily-forecast::-webkit-scrollbar-thumb {
  background: rgba(67, 97, 238, 0.5);
  border-radius: 10px;
}

@media (min-width: 480px) {
  .daily-forecast {
    gap: 15px;
  }
}

.day-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 98%;
}

@media (min-width: 480px) {
  .day-item {
    padding: 15px 20px;
    border-radius: 15px;
  }
}

.day-item:hover {
  background: rgba(67, 97, 238, 0.2);
}

.day-item.active {
  background: rgba(67, 97, 238, 0.3);
  border-left: 4px solid var(--accent);
}

.day-item div:first-child {
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 480px) {
  .day-item div:first-child {
    font-size: 16px;
  }
}

.day-item i {
  font-size: 20px;
}

@media (min-width: 480px) {
  .day-item i {
    font-size: 24px;
  }
}

.day-item div:last-child {
  font-size: 14px;
}

@media (min-width: 480px) {
  .day-item div:last-child {
    font-size: 16px;
  }
}

.detail-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

@media (min-width: 480px) {
  .detail-card {
    padding: 20px;
    border-radius: 15px;
  }
}

.detail-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.detail-card i {
  font-size: 20px;
  margin-bottom: 8px;
  color: #4cc9f0;
}

@media (min-width: 480px) {
  .detail-card i {
    font-size: 24px;
    margin-bottom: 10px;
  }
}

.detail-card .label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
}

@media (min-width: 480px) {
  .detail-card .label {
    font-size: 14px;
    margin-bottom: 5px;
  }
}

.detail-card .value {
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 480px) {
  .detail-card .value {
    font-size: 18px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
