* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  background-image: url("resimler/hava.jpg");
  background-position: center;
  background-size: cover;
  min-height: 100vh;
}
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.25);
}
.header {
  width: 100%;
  max-width: 520px;
  padding: 24px 0 18px 0;
}
.header h1 {
  font-size: 44px;
  color: #ffb000;
  text-shadow: 1px 3px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}
.search {
  display: flex;
  gap: 10px;
}
.header input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  outline: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}
.header input:focus {
  background: rgba(255, 255, 255, 1);
}
.header button {
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
}
.hint {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
}
.content {
  width: 100%;
  display: flex;
  justify-content: center;
}
.box {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-top: 10px;
}
.city {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.6);
}
.temp {
  font-size: 86px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 1px 2px rgba(0, 0, 0, 0.6);
}
.desc {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 10px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
  text-transform: capitalize;
}
.minmax {
  font-size: 20px;
  margin-bottom: 16px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}
.extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 15px;
  padding: 10px 0 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.extra span {
  opacity: 0.9;
}
.updated {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.9;
}
.error {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffd3d3;
}
.section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.sectionTitle {
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}
.hourly {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.hourCard {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 8px;
}
.hourTime { font-size: 12px; opacity: 0.95; }
.hourTemp { font-size: 18px; font-weight: 800; margin-top: 6px; }
.hourDesc { font-size: 11px; opacity: 0.9; margin-top: 4px; }

.daily {
  display: grid;
  gap: 10px;
}
.dayRow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 12px;
}

.dayName { font-weight: 700; }
.dayTemps { font-weight: 800; }
.daySmall { font-size: 12px; opacity: 0.9; margin-top: 2px; }

.section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.sectionTitle {
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}
.hourly {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.hourCard {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 8px;
}

.hourTime { font-size: 12px; opacity: 0.95; }
.hourTemp { font-size: 18px; font-weight: 800; margin-top: 6px; }
.hourDesc { font-size: 11px; opacity: 0.9; margin-top: 4px; }

.daily {
  display: grid;
  gap: 10px;
}
.dayRow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
}
.dayName { font-weight: 700; }
.dayTemps { font-weight: 800; }
.daySmall { font-size: 12px; opacity: 0.9; margin-top: 2px; }

.weatherIcon { 
width: 90px; height: 90px; margin: 6px auto 0 auto; 
display: none;  
filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }

/* ✅ TELEFONDA 3 saatlik + 5 günlük kısmı düzgün hizala */
@media (max-width: 480px) {

  /* 3 Saatlik: yatay kaydırmalı kartlar */
  .hourly{
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start !important;
  }

  .hourCard{
    flex: 0 0 auto !important;
    min-width: 120px !important;   /* kart genişliği */
    text-align: center;
    scroll-snap-align: start;
  }

  /* 5 Günlük: satır içinde sağ-sol hizalama */
  .dayRow{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: left !important;  /* box center olsa bile burada soldan başlasın */
  }

  .dayRow > div{
    min-width: 0; /* uzun yazılar taşmasın */
  }

  .dayName{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dayTemps{
    white-space: nowrap;
    text-align: right;
  }
}
