/* Gelişmiş Sohbet Modülü Stilleri */
.chat-container {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-header {
    font-size: 11px;
    color: #f59e0b;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
}

.chat-msg-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.chat-input-line {
    display: flex;
    gap: 6px;
    width: 100%; 
    box-sizing: border-box;
}

.chat-input-line input {
    flex: 1;
    min-width: 0;
    background: #030712;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    outline: none;
    transition: border 0.2s;
}

.chat-input-line input:focus {
    border-color: #f59e0b;
}

.chat-send-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.chat-send-btn:hover { filter: brightness(1.2); }

.chat-fs-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}
.chat-fs-btn:hover { color: white; background: rgba(255,255,255,0.1); }

/* PC Tam Ekran (Fullscreen) Modu Düzenlemeleri */
@media screen and (min-width: 769px) {
    body.chat-fullscreen-active .map-container { flex: 1 !important; }
    body.chat-fullscreen-active .sidebar { 
        flex: 0 0 450px !important; /* PC görünümü için maksimum genişlik sınırı */
        max-width: 450px !important;
        display: flex !important; 
    }
    body.chat-fullscreen-active #playerReportPanel, 
    body.chat-fullscreen-active #partyList, 
    body.chat-fullscreen-active .sidebar-header { display: none !important; }
    body.chat-fullscreen-active #pcChatPanel { height: calc(100vh - 70px) !important; flex: 1; }
}

/* Mobil Cihazlar İçin Responsive Düzenlemeler */
@media (max-width: 768px) {
    .mobil-alt-istatistik-panel { width: 50% !important; height: 160px !important; }
    #mobilChatPanel { width: 48% !important; height: 160px !important; }

    /* Mobil Bölünmüş Ekran (Split-Screen) Chat Modu */
    
    /* Kullanılmayan panellerin gizlenmesi */
    body.chat-fullscreen-active .stats-bar,
    body.chat-fullscreen-active #mobilIstatistikPanel { 
        display: none !important; 
    }
    
    /* Harita alanının üst bölüme sabitlenmesi ve sınırlandırılması */
    body.chat-fullscreen-active .map-window {
        display: block !important; 
        max-height: 40svh !important; /* Harita yüksekliği viewport'un %40'ı olarak ayarlandı */
        margin-top: 10px !important;
    }

    /* Chat panelinin alt yarıya konumlandırılması (Parti şeridi dikkate alınarak) */
    body.chat-fullscreen-active #mobilChatPanel {
        box-sizing: border-box !important;
        position: fixed !important; 
        top: auto !important; /* Üst konumlandırma iptali */
        bottom: 60px !important; /* Alt menü çakışmasını önlemek için alt boşluk bırakıldı */
        left: 10px !important;
        width: calc(100vw - 20px) !important; 
        height: calc(60svh - 80px) !important; /* Kalan alanın chat paneline tahsisi */
        z-index: 999999 !important; 
        background: rgba(11, 19, 41, 0.98) !important; /* Okunabilirliği artırmak için opak arka plan */
        border: 1px solid #38bdf8 !important; /* Aktif durum çerçeve stili */
        box-shadow: 0 -10px 25px rgba(0,0,0,0.6) !important;
    }
}
.chat-lvl-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Yüksek levelli oyuncular için parlatma efekti (İstersen JS ile lvl > 10 ise bu klası da ekletebilirsin) */
.chat-lvl-badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}