/*
Theme Name: Cihan Pamukcu Özel Tema
Author: Yapay Zeka & Cihan Pamukcu
Version: 4.1 (Mobil Tam Uyumlu & Görünüm Düzeltmesi)
*/
:root { --bg-color: #0a1128; --header-bg: #121b38; --primary-color: #ffffff; --secondary-text: #94a3b8; --accent-color: #10b981; --sidebar-width: 320px; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg-color); color: var(--primary-color); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: var(--accent-color); transition: 0.3s; touch-action: manipulation; }
a:hover { color: #34d399; }

/* ÜST MENÜ VE SIDEBAR */
.site-header { background: var(--header-bg); box-shadow: 0 4px 20px rgba(0,0,0,0.5); position: fixed; width: 100%; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo a { font-size: 26px; font-weight: 800; color: var(--primary-color); letter-spacing: 1.5px; }
.menu-toggle { font-size: 20px; font-weight: bold; cursor: pointer; background: none; border: none; color: var(--primary-color); display: flex; align-items: center; gap: 10px; transition: 0.3s; padding: 5px; }
.menu-toggle:hover { color: var(--accent-color); }
.left-sidebar { position: fixed; top: 0; left: calc(-1 * var(--sidebar-width)); width: var(--sidebar-width); max-width: 85vw; height: 100vh; background: #050a1f; color: #fff; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1001; padding: 80px 30px 30px; box-shadow: 10px 0 30px rgba(0,0,0,0.8); border-right: 1px solid rgba(255,255,255,0.05); overflow-y: auto; }
.sidebar-open .left-sidebar { left: 0; }
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; color: var(--secondary-text); transition: 0.3s; padding: 5px; }
.close-btn:hover { color: var(--accent-color); transform: rotate(90deg); }
.left-sidebar ul { list-style: none; margin-top: 20px; }
.left-sidebar ul li { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.left-sidebar ul li a { color: var(--secondary-text); font-size: 18px; display: block; transition: 0.3s; font-weight: 500; }
.left-sidebar ul li a:hover { color: var(--primary-color); padding-left: 10px; border-left: 3px solid var(--accent-color); }

/* İÇERİK ALANI VE KEDİLER */
.main-content { margin-top: 100px; padding: 40px; transition: 0.4s; max-width: 1400px; margin-left: auto; margin-right: auto; }
.sidebar-open .main-content { opacity: 0.3; pointer-events: none; filter: blur(3px); }
.logo-container { display: flex; align-items: center; gap: 20px; }
.interactive-cat { position: relative; cursor: pointer; display: flex; align-items: flex-end; height: 65px; }
.cat-svg { overflow: visible; animation: breathe 3s infinite alternate ease-in-out; }
@keyframes breathe { 0% { transform: scaleY(1); } 100% { transform: scaleY(1.04) translateY(-2px); } }
.cat-head { transition: transform 0.15s ease-out; transform-origin: 50px 70px; }
.pupil { transition: transform 0.1s ease-out; }
.tail { transition: all 0.3s ease; animation: tailWag 4s infinite alternate ease-in-out; }
.tail-left { transform-origin: 70px 100px; } .tail-right { transform-origin: 30px 100px; }
@keyframes tailWag { 0% { transform: rotate(-5deg); } 100% { transform: rotate(10deg); } }
.tail-fast { animation: tailWagFast 0.3s infinite alternate ease-in-out !important; }
@keyframes tailWagFast { 0% { transform: rotate(-15deg); } 100% { transform: rotate(25deg); } }
.cat-bubble { position: absolute; top: 5px; background: #fff; color: #0a1128; padding: 5px 12px; border-radius: 12px; font-size: 13px; font-weight: bold; opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1005; }
#catLeft .cat-bubble { right: 100%; margin-right: 10px; }
#catLeft .cat-bubble::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-width: 5px 0 5px 5px; border-style: solid; border-color: transparent transparent transparent #fff; }
#catRight .cat-bubble { left: 100%; margin-left: 10px; }
#catRight .cat-bubble::after { content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); border-width: 5px 5px 5px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
.bubble-show { opacity: 1; transform: scale(1); }
#catLeft .bubble-show { right: calc(100% + 5px); } #catRight .bubble-show { left: calc(100% + 5px); }
@keyframes catJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.cat-jump { animation: catJump 0.4s ease; }

/* YENİ: SUNUCU LED VE TEŞEKKÜR YAZILARI */
.panel-server-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--secondary-text); font-weight: normal; }
.status-led { width: 8px; height: 8px; border-radius: 50%; background: #64748b; transition: 0.3s; }
.status-led.online { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-led.offline { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: pulse-led 1s infinite alternate; }
.panel-attribution { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 11px; color: var(--secondary-text); text-align: right; }
.panel-attribution a { color: var(--accent-color); font-weight: 600; transition: 0.3s; }
.panel-attribution a:hover { color: var(--primary-color); text-decoration: underline; }

/* DASHBOARD VE PANELLER */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 60px; width: 100%; }
.dashboard-panel { background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px; padding: 25px; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.2); height: 480px; overflow: hidden; }
.weather-panel { height: auto; min-height: 150px; overflow: visible; }
.panel-header { font-size: 16px; font-weight: bold; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.loading-text { font-size: 13px; color: var(--secondary-text); text-align: center; margin-top: 20px; width: 100%; }
#eqMap, #flightMap, #shipMap { flex: 1; width: 100%; border-radius: 8px; z-index: 1; display: none; margin-bottom: 10px; min-height: 250px; }

.network-panel { border-color: rgba(14, 165, 233, 0.2); background: rgba(14, 165, 233, 0.03); }
.weather-panel { border-color: rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.03); }
.flight-panel { border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.03); }
.earthquake-panel { border-color: rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.03); }
.ship-panel { border-color: rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.03); }

.panel-header.net { color: #38bdf8; } .panel-header.wea { color: #10b981; } .panel-header.fli { color: #f59e0b; } .panel-header.eq { color: #ef4444; } .panel-header.ship { color: #3b82f6; }

/* AĞ MONİTÖRÜ */
.net-grid { display: flex; gap: 20px; flex: 1; overflow-y: auto; padding-right: 10px; margin-bottom: 10px; }
.net-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.net-title { font-size: 12px; color: var(--secondary-text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; border-left: 3px solid #38bdf8; padding-left: 10px; }
.net-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.25); padding: 10px 12px; border-radius: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,0.02); transition: 0.3s ease; }
.net-item:hover { background: rgba(0,0,0,0.4); border-color: rgba(56, 189, 248, 0.3); transform: translateX(5px); }
.net-name { color: #e2e8f0; font-weight: 500; }
.net-ping { font-family: 'Courier New', Courier, monospace; font-weight: bold; padding: 3px 6px; border-radius: 5px; font-size: 12px; }
.ping-good { color: #10b981; background: rgba(16, 185, 129, 0.15); } .ping-mid { color: #f59e0b; background: rgba(245, 158, 11, 0.15); } .ping-bad { color: #ef4444; background: rgba(239, 68, 68, 0.15); animation: pulse-led 1s infinite alternate; } 
.custom-scrollbar::-webkit-scrollbar { width: 6px; } .custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 10px; }

/* HAVA DURUMU */
#weatherData { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 10px; }
.w-header { color: var(--secondary-text); text-transform: uppercase; letter-spacing: 1px; }
.w-main { font-weight: bold; color: var(--primary-color); display: flex; align-items: center; }
.w-details { color: var(--secondary-text); }
.aqi-good { color: #10b981 !important; } .aqi-moderate { color: #f59e0b !important; } .aqi-bad { color: #ef4444 !important; } 
.aqi-led { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; transition: all 0.5s ease; }
.led-good { background: #10b981; box-shadow: 0 0 10px #10b981; } .led-moderate { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; } .led-bad { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: pulse-led 1s infinite alternate; }
.aqi-emoji { font-size: 24px; vertical-align: middle; margin-left: 10px; display: inline-block; transition: 0.3s; cursor: pointer; } .aqi-emoji:hover { transform: scale(1.4) rotate(15deg); }

/* HARİTA TOOLTIP */
.leaflet-container { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0a1128 !important; }
.custom-eq-tooltip { background: rgba(18, 27, 56, 0.95) !important; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1) !important; color: #fff !important; border-radius: 8px !important; padding: 12px !important; box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important; }
.custom-eq-tooltip::before { border-top-color: rgba(18, 27, 56, 0.95) !important; }
.eq-popup-title, .flight-popup-title, .ship-popup-title { font-weight: bold; font-size: 14px; margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.eq-popup-title { color: #fca5a5; } .flight-popup-title { color: #38bdf8; } .ship-popup-title { color: #3b82f6; }
.eq-popup-time, .flight-popup-info, .ship-popup-info { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.eq-popup-mag { font-size: 15px; font-weight: bold; padding: 3px 8px; border-radius: 5px; display: inline-block; color: #fff; margin-top: 5px; }

/* PROJELER VE DÖVİZ */
.section-title { border-left: 4px solid var(--accent-color); padding-left: 15px; margin-bottom: 20px; color: var(--primary-color); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--header-bg); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); border-color: rgba(16, 185, 129, 0.4); }
.card h2 { margin-bottom: 15px; font-size: 22px; } .card h2 a { color: var(--primary-color); } .card h2 a:hover { color: var(--accent-color); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.currency-ticker { background: var(--header-bg); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; margin-top: 40px; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); }
.ticker-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.ticker-item { font-size: 15px; font-weight: 600; color: var(--secondary-text); display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.02); padding: 8px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s ease; }
.ticker-item:hover { color: var(--primary-color); border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1); }
.ticker-item span { color: var(--accent-color); font-weight: 700; font-size: 16px; }
footer { text-align: center; padding: 25px; background: var(--header-bg); color: var(--secondary-text); font-size: 14px; }

/* =========================================
   📱 MOBİL UYUMLULUK KESİN ÇÖZÜMÜ
   ========================================= */

@media (max-width: 992px) { 
    .dashboard-grid { grid-template-columns: 1fr; } 
    /* Mobil cihazlarda paneller içeriğe göre esner, taşmayı engeller! */
    .dashboard-panel { height: auto !important; min-height: 400px; overflow: visible; } 
    .net-grid { flex-direction: column; overflow-y: visible; height: auto; } 
    /* Haritaların mobilde çökmesini engeller */
    #eqMap, #flightMap, #shipMap { min-height: 350px; height: 350px; }
    .main-content { padding: 30px 20px; }
}

@media (max-width: 768px) {
    .site-header { padding: 10px 15px; } .logo a { font-size: 18px; } .menu-toggle { font-size: 16px; padding: 5px; }
    .logo-container { gap: 10px; } .interactive-cat { height: 50px; } .cat-svg { width: 40px; height: 50px; }
    #catLeft .cat-bubble, #catRight .cat-bubble { left: 50%; right: auto; transform: translateX(-50%); top: 55px; margin: 0; font-size: 11px; padding: 4px 8px; }
    #catLeft .cat-bubble::after, #catRight .cat-bubble::after { left: 50%; right: auto; transform: translateX(-50%); top: -5px; bottom: auto; border-width: 0 5px 5px 5px; border-style: solid; border-color: transparent transparent #fff transparent; }
    #catLeft .bubble-show, #catRight .bubble-show { left: 50%; top: 60px; }
    .hero-text h1 { font-size: 1.8em !important; } .hero-text p { font-size: 1em !important; }
    #weatherData { flex-direction: column; text-align: center; } .w-main { justify-content: center; font-size: 35px !important; margin-bottom: 10px; } .w-details { text-align: center !important; }
    .ticker-container { gap: 10px; } .ticker-item { flex: 1 1 calc(50% - 10px); justify-content: center; font-size: 13px; padding: 8px; } .ticker-item span { font-size: 14px; }
    .panel-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 400px) {
    .site-header { padding: 10px; } .logo a { font-size: 15px; } .cat-svg { width: 35px; height: 45px; }
    .net-item { flex-direction: column; align-items: flex-start; gap: 5px; }
}