/* --- GENEL AYARLAR --- */
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background-color: #0b0e17; overflow: hidden; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }

/* --- LOGO --- */
.brand-box { position: absolute; top: 25px; left: 25px; z-index: 10; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); color: white; font-size: 16px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.brand-box .flag-img { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 5px rgba(229, 57, 53, 0.6); }

/* --- STİL MENÜSÜ --- */
.style-dock { position: absolute; top: 25px; right: 25px; z-index: 10; display: flex; gap: 8px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.style-btn { background: transparent; border: none; color: #aaa; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 18px; transition: all 0.2s; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
.style-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.style-btn.active { background: #f1c40f; color: #000; box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }
.style-btn .flag-img { width: 26px; height: auto; border-radius: 3px; filter: drop-shadow(0 0 4px rgba(255,255,255,0.3)); display: block; }

/* --- ALT MENÜ --- */
.control-dock { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(20, 20, 30, 0.95); padding: 8px; border-radius: 16px; display: flex; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.dock-btn { background: transparent; border: none; color: #aaa; padding: 10px 20px; cursor: pointer; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; border-radius: 8px; transition: all 0.2s; }
.dock-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.dock-btn.active { background: #333; color: #fff; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); }
.dock-btn.active i.fa-temperature-half { color: #fdd835; }
.dock-btn.active i.fa-wind { color: #4fc3f7; }
.dock-btn.active i.fa-cloud { color: #a5d6a7; }

/* --- ZAMAN KONTROL --- */
.time-control-box { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 600px; z-index: 10; background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(10px); padding: 15px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.slider-row { display: flex; align-items: center; gap: 12px; width: 100%; }
#time-display { text-align: center; color: #f1c40f; font-size: 14px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.slider-labels { display: flex; justify-content: space-between; width: 100%; color: rgba(255, 255, 255, 0.4); font-size: 10px; font-weight: 600; margin-top: -2px; }
#play-btn { background: #f1c40f; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); transition: all 0.2s; color: #000; font-size: 14px; flex-shrink: 0; }
#play-btn:hover { transform: scale(1.15); background: #fff; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { height: 18px; width: 18px; border-radius: 50%; background: #f1c40f; -webkit-appearance: none; margin-top: -6px; box-shadow: 0 0 10px rgba(241, 196, 15, 0.5); transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* --- İMZA --- */
.signature-box { position: absolute; bottom: 25px; right: 25px; top: auto; left: auto; z-index: 10; text-decoration: none; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.6); font-size: 10px; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; }
.signature-box:hover { background: rgba(241, 196, 15, 0.15); border-color: rgba(241, 196, 15, 0.4); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.sig-name { color: #f1c40f; font-weight: 800; }
.signature-box i { font-size: 11px; }

/* --- LEJAND --- */
#legend-box { position: absolute; bottom: 75px; right: 25px; z-index: 10; background: rgba(16, 18, 27, 0.9); backdrop-filter: blur(8px); padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); width: 200px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); transition: opacity 0.3s; }
.legend-title { font-size: 11px; font-weight: 800; color: #8a8e9e; margin-bottom: 6px; text-transform: uppercase; }
.legend-bar { height: 10px; width: 100%; border-radius: 5px; margin-bottom: 4px; background: #333; }
.legend-labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: #fff; }

/* --- MARKER DÜZENLEMELERİ (ÖNEMLİ DÜZELTME) --- */
.city-marker { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; /* transform transition KALDIRILDI, Mapbox çakışması için */ }
.marker-content { transition: transform 0.2s; display: flex; flex-direction: column; align-items: center; } /* İçerik için ayrı kapsayıcı */
.city-marker:hover { z-index: 9999; }
.city-marker:hover .marker-content { transform: scale(1.3); } /* Sadece içeriği büyüt, konumu bozma */

.temp-value { font-size: 15px; font-weight: 900; line-height: 1; transition: color 0.3s; }
.city-name { font-size: 9px; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-top: 2px; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.wind-arrow { font-size: 18px; filter: drop-shadow(0 2px 3px black); }
.weather-icon { font-size: 22px; filter: drop-shadow(0 2px 4px black); }

/* --- POPUP --- */
.mapboxgl-popup { z-index: 99999; }
.mapboxgl-popup-content { background: rgba(16, 18, 27, 0.95) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px !important; padding: 0 !important; box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important; min-width: 260px; font-family: 'Inter', sans-serif; color: #fff; overflow: hidden; }
.mapboxgl-popup-tip { border-top-color: rgba(16, 18, 27, 0.95) !important; }
.mapboxgl-popup-close-button { color: rgba(255,255,255,0.5); font-size: 16px; right: 5px; top: 5px; z-index: 10; }
.mapboxgl-popup-close-button:hover { color: #fff; background: transparent; }

/* KART */
.card-header { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.card-city { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; color: #fff; }
.card-status { font-size: 10px; text-transform: uppercase; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.card-main { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 15px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.card-temp { font-size: 52px; font-weight: 900; background: linear-gradient(to bottom, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; letter-spacing: -2px; }
.card-visual-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card-icon-big svg { width: 64px; height: 64px; filter: drop-shadow(0 0 15px rgba(253, 216, 53, 0.3)); }
.card-desc { font-size: 15px !important; font-weight: 800 !important; color: #fdd835 !important; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0,0,0,0.8); margin: 0 !important; text-align: center; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.card-item { background: rgba(255,255,255,0.03); padding: 8px 12px; border-radius: 12px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.card-item:hover { background: rgba(255,255,255,0.08); }
.card-item i { font-size: 14px; color: rgba(255,255,255,0.5); }
.card-val { font-size: 13px; font-weight: 700; color: #eee; }
.card-label { font-size: 10px; color: rgba(255,255,255,0.4); display: block; margin-top: 2px; }
#loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: bold; font-size: 12px; display: none; background: rgba(0, 0, 0, 0.8); padding: 10px 20px; border-radius: 20px; z-index: 20; border: 1px solid rgba(255, 255, 255, 0.2); }
.pressure-center { width: 32px; height: 32px; border-radius: 50%; color: white; font-weight: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); z-index: 5; opacity: 0.9; border: 2px solid white; }
.pressure-center.ab { background: #d50000; text-shadow: 0 1px 2px black; }
.pressure-center.yb { background: #1565c0; text-shadow: 0 1px 2px black; }
.icon-box { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.tr-flag { font-size: 16px; margin-left: 6px; vertical-align: middle; filter: drop-shadow(0 0 5px rgba(229, 57, 53, 0.5)); opacity: 1 !important; }

/* ANİMASYONLAR */
@keyframes spin { 100% { transform: rotate(360deg); } } .anm-sun { animation: spin 12s linear infinite; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } } .anm-cloud { animation: float 3s ease-in-out infinite; }
@keyframes rain-fall { 0% { transform: translateY(-5px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } } .anm-drop { animation: rain-fall 1s linear infinite; } .anm-drop:nth-child(2) { animation-delay: 0.3s; } .anm-drop:nth-child(3) { animation-delay: 0.6s; }
@keyframes snow-fall { 0% { transform: translateY(-5px); opacity: 0; } 100% { transform: translateY(5px); opacity: 1; } } .anm-flake { animation: snow-fall 2s linear infinite; }
@keyframes flash { 0%, 90%, 100% { opacity: 0; } 92%, 98% { opacity: 1; } } .anm-bolt { animation: flash 3s infinite; }
@keyframes moon-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } } .anm-moon { animation: moon-swing 4s ease-in-out infinite; transform-origin: center; }
@keyframes fog-pulse { 0%, 100% { opacity: 0.3; transform: translateX(-2px); } 50% { opacity: 0.8; transform: translateX(2px); } } .anm-fog { animation: fog-pulse 3s infinite alternate; } .anm-fog:nth-child(2) { animation-delay: 1s; } .anm-fog:nth-child(3) { animation-delay: 2s; }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .brand-box { top: 15px; left: 15px; font-size: 14px; padding: 6px 12px; }
    .style-dock { top: 15px; right: 15px; padding: 4px; }
    .style-btn { width: 32px; height: 32px; font-size: 14px; }
    .style-btn .flag-img { width: 20px; } 
    /* İmza Mobilde Sol Üste */
    .signature-box { bottom: auto; right: auto; top: 60px; left: 15px; font-size: 8px; padding: 4px 8px; }
    /* Lejand Eski Yerine */
    #legend-box { bottom: auto; top: 95px; left: 15px; right: auto; width: 140px; padding: 8px; }
    .legend-title { font-size: 9px; } .legend-labels { font-size: 8px; }
    .time-control-box { bottom: 85px; width: 95%; padding: 10px 15px; }
    #time-display { font-size: 12px; }
    .control-dock { bottom: 15px; width: 95%; justify-content: space-between; padding: 6px 10px; }
    .dock-btn { padding: 8px 10px; font-size: 11px; flex: 1; justify-content: center; }
    .dock-btn i { font-size: 14px; }
    .mapboxgl-popup { max-width: 90% !important; }
    .mapboxgl-popup-content { min-width: auto !important; width: 280px; }
    .card-temp { font-size: 42px; }
    .card-icon-big svg { width: 56px; height: 56px; }
}
@media (max-width: 380px) { .dock-btn span { display: none; } .dock-btn { padding: 10px; } }