* {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #001021; 
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px;
}

body, html {
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
    max-width: 900px;
    z-index: 2; 
}

.search-box {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    border: 1px solid rgba(255, 255, 255, 0.3);
    outline: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    padding: 0 65px 0 25px;
    height: 55px;
    border-radius: 30px;
    width: 100%;
    font-size: 16px;
}
.search-box input::placeholder { color: rgba(255, 255, 255, 0.7); }
.search-box input:focus { border-color: #ffffff; }

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.search-box button:hover { background: rgba(255, 255, 255, 0.5); }
.search-icon { width: 15px; height: 15px; border: 2px solid #ffffff; border-radius: 50%; position: relative; }
.search-icon::after { content: ''; position: absolute; width: 2px; height: 8px; background: #ffffff; transform: rotate(-45deg); top: 11px; left: 12px; }
.suggestions-wrapper { position: absolute; top: 100%; left: 0; right: 0; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); border-radius: 15px; margin-top: 8px; overflow: hidden; z-index: 10; }
.suggestion-item { padding: 12px 25px; cursor: pointer; font-size: 15px; }
.suggestion-item:hover { background: rgba(255, 255, 255, 0.1); }
.suggestion-item small { color: #cccccc; margin-left: 8px; }
.weather-display { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(15px); border-radius: 20px; padding: 30px; display: none; }
.current-weather-main { display: flex; flex-direction: column; }
.city-name { font-size: 40px; font-weight: 500; }
.current-time { font-size: 16px; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }
.main-temp-info { display: flex; align-items: center; margin-bottom: 10px; }
.weather-icon { width: 120px; height: 120px; margin-right: 10px; margin-left: -20px; object-fit: contain; }
.temperature { font-size: 90px; font-weight: 500; line-height: 1; }
.weather-desc { font-size: 24px; font-weight: 500; text-transform: capitalize; margin-bottom: 5px; }
.feels-like { font-size: 18px; color: rgba(255, 255, 255, 0.7); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-item { background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 15px; text-align: center; }
.detail-title { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; }
.detail-value { font-size: 22px; font-weight: 500; }
.wind-info { display: flex; justify-content: center; align-items: center; gap: 8px; }
.wind-direction-icon { width: 18px; height: 18px; background: #ffffff; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); transition: transform 0.5s; }
.error { text-align: center; margin: 20px 0; font-size: 16px; background: rgba(255, 82, 82, 0.3); padding: 15px; border-radius: 15px; display: none; }

/* --- MOBİL UYUMLULUK (RESPONSIVE) KODLARI --- */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .weather-display {
        grid-template-columns: 1fr; /* Ana bölümü tek sütuna düşür */
        padding: 20px;
        gap: 25px;
    }

    .city-name {
        font-size: 32px; /* Yazı boyutunu küçült */
    }

    .weather-icon {
        width: 100px;
        height: 100px;
        margin-left: -15px;
    }

    .temperature {
        font-size: 75px; /* Sıcaklık yazısını küçült */
    }

    .weather-desc {
        font-size: 20px;
    }

    .feels-like {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr; /* Detay kartlarını çok küçük ekranlarda tek sütuna düşür */
        gap: 15px;
    }
    
    .detail-item {
        padding: 15px;
    }

    .detail-value {
        font-size: 20px;
    }

    .search-box input {
        height: 50px;
        padding: 0 55px 0 20px;
    }

    .search-box button {
        width: 40px;
        height: 40px;
    }
}