:root {
    --primary-color: #3498db;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
}

/* Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Dinamik Temalar */
.weather-sunny {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --primary-color: #f5af19;
    --text-color: #2c3e50;
    --card-bg: rgba(255, 255, 255, 0.7);
}

.weather-rainy {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 100%);
    --primary-color: #a8d0e6;
    --text-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.2);
}

.weather-snowy {
    background: linear-gradient(135deg, #E0EAFC 0%, #CFDEF3 100%);
    --primary-color: #2c3e50;
    --text-color: #2c3e50;
    --card-bg: rgba(255, 255, 255, 0.7);
}

.weather-stormy {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --primary-color: #a8d0e6;
    --text-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.3);
}

.weather-cloudy {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
    --primary-color: #f5f7fa;
    --text-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.2);
}

/* Partikül Arka Plan */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.7;
}

/* Container ve Kartlar */
.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.weather-card, .hourly-forecast, .forecast {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    animation: fadeIn 1s ease-in-out;
}

/* Header ve Arama */
header h1 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#search-input {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px 0 0 30px;
    width: 70%;
    max-width: 400px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

#search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.3);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-btn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

#search-btn:hover {
    filter: brightness(1.1);
}

/* Hava Durumu Bilgileri */
.location h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.location p {
    opacity: 0.8;
    font-size: 16px;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.temperature {
    display: flex;
    align-items: center;
}

.temperature img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.temperature span {
    font-size: 48px;
    font-weight: bold;
    transition: all 0.5s ease;
}

.temperature span:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.details p {
    margin-bottom: 10px;
}

#weather-desc {
    text-transform: capitalize;
    font-size: 18px;
    margin-bottom: 15px;
}

.extra-info p {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.extra-info i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary-color);
}

/* İkon Animasyonları */
.wind-icon {
    animation: swing 2s infinite alternate;
}

.humidity-icon {
    animation: pulse 2s infinite;
}

.feels-like-icon {
    animation: bounce 2s infinite;
}

.pressure-icon {
    animation: rotate 4s infinite linear;
}

/* Tahmin Bölümleri */
.hourly-forecast h3, .forecast h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hourly-container, .forecast-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.hourly-item {
    min-width: 80px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 10px;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hourly-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.hourly-item p:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.hourly-item img {
    width: 40px;
    height: 40px;
    margin: 5px 0;
}

.hourly-temp {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.forecast-day {
    min-width: 120px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    flex: 1;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.forecast-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.forecast-day p:first-child {
    font-weight: bold;
    margin-bottom: 10px;
}

.forecast-day img {
    width: 50px;
    height: 50px;
    margin: 10px 0;
}

.forecast-temp {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
}

.forecast-temp span:first-child {
    color: var(--primary-color);
    font-weight: bold;
}

.forecast-temp span:last-child {
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 14px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes swing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .weather-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .temperature {
        margin-bottom: 20px;
    }

    .hourly-item, .forecast-day {
        min-width: 70px;
        padding: 10px 5px;
    }

    .hourly-item img, .forecast-day img {
        width: 30px;
        height: 30px;
    }
}