* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #3498db;
    --gradient-end: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 20%);
    backdrop-filter: blur(10px);
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.weather-app {
    background: var(--glass-bg);
    border-radius: 25px;
    box-shadow: 0 15px 35px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
}

.weather-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
}

.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.search-box {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    background: var(--glass-bg);
    position: relative;
}

input {
    flex: 1;
    padding: 1.2rem;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px var(--shadow-color);
    color: var(--text-color);
}

input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

button {
    padding: 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 8px var(--shadow-color);
}

button:active {
    transform: translateY(0) scale(0.98);
}

.weather-info {
    padding: 2rem;
}

.weather-result {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px var(--shadow-color);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weather-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(30deg);
    animation: shine 8s linear infinite;
}

.weather-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.default-message {
    color: #666;
    font-size: 1.3rem;
    opacity: 0.8;
}

.default-message i {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.loading {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

.error {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.error i {
    margin-right: 0.5rem;
}

/* Hava Durumu İkonları */
.weather-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.weather-details {
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hava Durumu Arka Plan Renkleri */
.weather-clear {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
}

.weather-rain {
    background: linear-gradient(135deg, #555, #333);
}

.weather-cloudy {
    background: linear-gradient(135deg, #b0c4de, #87ceeb);
}

.weather-snow {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
}

.weather-thunder {
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
}

.weather-other {
    background: linear-gradient(135deg, #d3d3d3, #a9a9a9);
}

/* Container Arka Plan Renkleri */
.container-clear {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.2);
}

.container-rain {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(85, 85, 85, 0.2);
}

.container-cloudy {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(176, 196, 222, 0.2);
}

.container-snow {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.container-thunder {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
}

.container-other {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(211, 211, 211, 0.2);
}

/* Hava Durumuna Göre Metin Renkleri */
.weather-clear .weather-data {
    color: #333;
}

.weather-rain .weather-data {
    color: #fff;
}

.weather-cloudy .weather-data {
    color: #333;
}

.weather-snow .weather-data {
    color: #333;
}

.weather-thunder .weather-data {
    color: #fff;
}

.weather-other .weather-data {
    color: #333;
}

.footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translateX(-100%);
    }
    100% {
        transform: rotate(30deg) translateX(100%);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 2rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .weather-result {
        padding: 1.5rem;
    }
    
    input, button {
        padding: 1rem;
    }
    
    .weather-icon {
        font-size: 3rem;
    }
    
    .weather-details {
        font-size: 1.2rem;
    }
}
  