/* Genel Sayfa ve Arka Plan Düzeni */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transition: background 0.8s ease;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Hava Durumuna Göre Şık Arka Plan Geçişleri */
body.sunny { background: linear-gradient(135deg, #2980b9, #2c3e50); }
body.cloudy { background: linear-gradient(135deg, #4ca1af, #2c3e50); }
body.rainy { background: linear-gradient(135deg, #203a43, #0f2027); }
body.snowy { background: linear-gradient(135deg, #3e5151, #decba4); }
body.stormy { background: linear-gradient(135deg, #141e30, #243b55); }
body.night { background: linear-gradient(135deg, #090a0f, #1a1c29); }

/* Ana Uygulama Konteyneri */
.app-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

/* Başlık ve Açıklamalar */
h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.5px;
}

p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
}

/* Arama Alanı */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

input {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

button {
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Popüler Şehir Kısayolları */
.popular-cities {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.city-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.city-tag:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Ortak Kart Tasarımı (Cam Efekti - Glassmorphism) */
#weather-card, #forecast-card, #sehir-rehberi-bloku {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#city-name { font-size: 22px; margin-bottom: 8px; font-weight: 500; }
#weather-icon { font-size: 48px; margin: 8px 0; }
#temperature { font-size: 30px; font-weight: bold; margin: 8px 0; }
#description, #humidity, #wind { font-size: 15px; margin: 5px 0; color: rgba(255, 255, 255, 0.9); }

/* 5 Günlük Tahmin Kutuları Düzeni */
#forecast-card h3 {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
}

#forecast-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

#forecast-container > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 4px;
    border-radius: 12px;
    font-size: 13px;
    flex: 1;
    text-align: center;
}

/* SEO Rehber Bloğu Düzeni */
#sehir-rehberi-bloku {
    text-align: left;
}

#sehir-rehberi-bloku h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

#sehir-rehberi-bloku p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

/* Sabit Satürn İmzası */
.signature {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    z-index: 20;
}

.planet {
    display: inline-block;
    animation: spin 15s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Şık Cam Efektli Footer */
footer {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 10px;
    z-index: 10;
}

footer a { 
    color: #ffffff; 
    text-decoration: underline; 
}

/* Animasyon Katmanını Tamamen İptal Ettik (Kafaya Göre Uçan Nesneler Yok!) */
#animation-layer {
    display: none;
}

/* Saatlik Tahmin Kartı ve Kaydırma Düzeni */
#hourly-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#hourly-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

#hourly-container::-webkit-scrollbar {
    height: 6px;
}

#hourly-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#hourly-container > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}
#selected-hourly-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

#selected-hourly-container::-webkit-scrollbar {
    height: 6px;
}

#selected-hourly-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#selected-hourly-container > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}
