/* Hava Durumu Sayfası Stilleri */

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 24px 0;
  color: var(--text);
}

.breadcrumb {
  margin: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--muted);
}

/* Ana Şehirler Kartları */
.weather-main-cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.weather-city-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weather-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.weather-city-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.weather-city-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.weather-city-name:hover {
  color: var(--primary);
}

.weather-city-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.weather-city-time i {
  font-size: 14px;
}

.weather-city-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.weather-city-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.weather-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.weather-condition {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.weather-city-right {
  text-align: right;
}

.weather-temp {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.weather-city-temps {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.weather-temp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-temp-label {
  font-size: 12px;
  color: var(--muted);
}

.weather-temp-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.weather-city-link {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.weather-city-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.weather-city-link a:hover {
  color: var(--primary-600);
}

.weather-city-link a i {
  font-size: 12px;
  margin-left: 8px;
}

/* Tüm İller Grid */
.weather-all-cities {
  margin: 48px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.weather-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.weather-city-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: 12px;
  padding: 16px 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.weather-city-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.15);
}

.weather-city-code {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.weather-city-name-text {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
}

/* İl Detay Sayfası */
.weather-city-detail {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin: 32px 0;
}

.weather-detail-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.weather-detail-city h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.weather-detail-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}

.weather-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.weather-detail-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.weather-detail-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.weather-detail-condition {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.weather-detail-temp-large {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.weather-detail-right {
  display: flex;
  align-items: center;
}

.weather-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.weather-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.weather-info-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.weather-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* 5 Günlük Tahmin */
.weather-forecast {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.forecast-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.forecast-day:hover {
  background: #f0f4f8;
}

.forecast-day-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.forecast-day-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}

.forecast-day-temp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.forecast-temp-max {
  font-weight: 700;
  color: var(--text);
}

.forecast-temp-min {
  font-weight: 500;
  color: var(--muted);
}

/* İlçeler */
.weather-districts {
  margin: 48px 0;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.district-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 0; /* Flexbox taşmayı önler */
}

.district-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.15);
}

.district-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0; /* Flexbox taşmayı önler */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.district-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; /* Sıcaklık ve ikonun küçülmesini önler */
}

.district-weather img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.district-temp {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* İlçe Detay */
.weather-district-detail {
  margin: 32px 0;
}

.weather-city-card--district {
  max-width: 600px;
  margin: 0 auto;
}

/* Bilgilendirme */
.weather-info {
  margin: 48px 0;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  line-height: 1.8;
  color: var(--muted);
}

.weather-info p {
  margin: 0 0 16px 0;
}

.weather-info p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .weather-main-cities {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .weather-detail-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .forecast-days {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .weather-cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .districts-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 24px;
  }
  
  .weather-city-card {
    padding: 20px;
  }
  
  .weather-city-detail {
    padding: 20px;
  }
  
  .weather-detail-temp-large {
    font-size: 48px;
  }
  
  .forecast-days {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .weather-cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .districts-grid {
    grid-template-columns: 1fr;
  }
  
  .weather-detail-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .forecast-days {
    grid-template-columns: 1fr;
  }
  
  .weather-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
