@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { overflow-x: hidden; background-color: #000; color: white; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 20px 0; }

#render-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }

/* AÇILIŞ EKRANI (SPLASH SCREEN) */
#splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 999999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.css-logo-container { position: relative; width: 150px; height: 120px; margin-bottom: 10px; }
.css-sun { position: absolute; top: 20px; left: 15px; width: 70px; height: 70px; background: #FFD700; border-radius: 50%; z-index: 1; animation: sunRise 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.css-cloud { position: absolute; top: 50px; left: 25px; width: 100px; height: 40px; background: #fdfdfd; border-radius: 50px; z-index: 2; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: cloudFloat 2s ease-in-out infinite alternate; }
.css-cloud::before { content: ''; position: absolute; top: -25px; left: 15px; width: 50px; height: 50px; background: #fdfdfd; border-radius: 50%; }
.css-cloud::after { content: ''; position: absolute; top: -15px; right: 15px; width: 40px; height: 40px; background: #fdfdfd; border-radius: 50%; }

.splash-title { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 5px; text-align: center; line-height: 1.2; margin-top: 10px; }
.splash-title span { color: #00f2ff; }
.splash-percent { font-size: 28px; font-weight: 800; color: #00f2ff; margin-top: 15px; text-shadow: 0 0 15px rgba(0,242,255,0.6); font-variant-numeric: tabular-nums; }
.splash-text { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 5px; letter-spacing: 3px; font-weight: 600; animation: pulseText 1.5s infinite; }

@keyframes sunRise { 0% { transform: translateY(50px) scale(0.8); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes cloudFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-5px); } }
@keyframes pulseText { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ANA UYGULAMA TASARIMI */
.glass-dashboard { background: rgba(10, 15, 30, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1); border-radius: 30px; padding: 20px; width: 92%; max-width: 500px; margin-bottom: 15px; display: flex; flex-direction: column; }
.saved-cities-container { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 15px; padding-bottom: 5px; scrollbar-width: none; }
.saved-cities-container::-webkit-scrollbar { display: none; }
.city-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.city-chip.home-chip { background: rgba(0, 242, 255, 0.15); border-color: #00f2ff; color: #fff; }
.delete-chip { color: rgba(255,255,255,0.4); font-size: 16px; margin-left: 5px; padding: 0 5px; }
.delete-chip:hover { color: #ff3333; }
.search-box { display: flex; gap: 8px; margin-bottom: 15px; }
#cityInput { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: white; outline: none; font-size: 15px; transition: 0.3s; }
#cityInput:focus { border-color: #00f2ff; box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); }
#searchBtn { padding: 12px 15px; border-radius: 12px; border: none; background: #00f2ff; color: #000; font-weight: 800; cursor: pointer; transition: 0.3s; }
#searchBtn:hover { background: #fff; transform: translateY(-2px); }
.header-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#cityName { font-size: 26px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
#description { font-size: 13px; color: rgba(255,255,255,0.7); text-transform: capitalize; }
#localTime { font-size: 12px; color: #00f2ff; margin-top: 5px; font-weight: 600; letter-spacing: 1px; }
.temp-block { display: flex; align-items: flex-start; }
#temperature { font-size: 50px; font-weight: 300; line-height: 1; text-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.deg { font-size: 20px; margin-top: 5px; color: #00f2ff; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.metric-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.m-label { font-size: 9px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.m-value { font-size: 16px; font-weight: 600; color: #fff; }
.m-sub { font-size: 10px; margin-top: 2px; font-weight: 500; }
.status-good { color: #00ff88; } .status-mod { color: #ffcc00; } .status-bad { color: #ff3333; } .status-info { color: #00f2ff; }

/* SAATLİK TAHMİN ALANI */
.hourly-section { width: 92%; max-width: 500px; background: rgba(10, 15, 30, 0.4); backdrop-filter: blur(20px); border-radius: 25px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.1); display: none; margin-bottom: 15px; }
.section-title { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; padding-left: 5px;}
.hourly-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.hourly-container::-webkit-scrollbar { display: none; }
.hourly-item { min-width: 65px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px 5px; text-align: center; flex-shrink: 0; }
.h-time { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
.h-icon { width: 30px; height: 30px; margin: 0 auto; display: block; }
.h-temp { font-size: 16px; font-weight: 600; color: #fff; margin-top: 5px; }

/* 3 GÜNLÜK TAHMİN ALANI */
.daily-section { width: 92%; max-width: 500px; background: rgba(10, 15, 30, 0.4); backdrop-filter: blur(20px); border-radius: 25px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.1); display: none; margin-bottom: 20px; }
.daily-container { display: flex; flex-direction: column; gap: 8px; }
.daily-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; padding: 10px 15px; }
.d-day { font-size: 14px; font-weight: 600; color: #fff; width: 30%; }
.d-icon { width: 35px; height: 35px; }
.d-temps { font-size: 15px; font-weight: 800; color: #fff; width: 30%; text-align: right; }
.d-temps span { color: rgba(255,255,255,0.4); font-weight: 400; margin-left: 10px; }

#saveBtn { width: 100%; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.3); background: transparent; color: white; cursor: pointer; font-weight: 600; transition: 0.3s; }
#saveBtn:hover { background: rgba(255,255,255,0.1); border-color: #fff; }