/* HANZO 0155 TAM EKRAN TERMINAL TASARIMI */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

body {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Tam Ekranı Kaplayan Ana Gövde */
.main-wrapper {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
    width: 100%;
}

/* Sol Panel (Sohbet) - Genişleyen kısım */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #00ff00;
}

/* Sağ Panel (Kullanıcılar) - Daralttığımız kısım */
.right-panel {
    width: 190px; /* BURAYI KÜÇÜLTTÜK */
    display: flex;
    flex-direction: column;
    border: 1px solid #00ff00;
}

/* Başlıklar */
.header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #00ff00;
    font-size: 14px;
    font-weight: bold;
}

.header a {
    color: #00ff00;
    text-decoration: none;
}

/* Sohbet Mesaj Alanı */
#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}

/* Sohbet İçindeki Eski Yazı Renklerini Zorla Yeşil Yap */
#chat-messages * {
    color: #00ff00 !important;
    font-family: 'Courier New', Courier, monospace !important;
}

/* Kullanıcı Listesi */
#user-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    list-style: none;
    font-size: 13px;
}

#user-list li {
    margin-bottom: 6px;
}

/* Alt Mesaj Yazma Alanı */
.input-area {
    display: flex;
    border-top: 1px solid #00ff00;
    height: 45px;
}

.input-area button {
    background-color: #000;
    color: #00ff00;
    border: none;
    border-right: 1px solid #00ff00;
    padding: 0 15px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.input-area button:hover {
    background-color: #00ff00;
    color: #000;
}

.input-area input {
    flex: 1;
    background-color: #000;
    color: #00ff00;
    border: none;
    padding: 0 15px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.input-area input::placeholder {
    color: #005500;
}

#send-button {
    border-right: none;
    border-left: 1px solid #00ff00;
    font-size: 14px;
    font-weight: bold;
}

/* En Alt Kısım (Kanallar Butonu) */
.bottom-bar {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
}

.bottom-bar a {
    display: inline-block;
    color: #00ff00;
    text-decoration: none;
    border: 1px solid #00ff00;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Scrollbar Ayarları */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #00ff00; }

/* --- WORLD.PHP TASARIMI --- */
.world-body { background-color: #050505; color: #0f0; font-family: 'VT323', monospace; margin: 0; padding: 0; overflow: hidden; height: 100vh; }
.container { display: flex; height: 100vh; gap: 10px; padding: 10px; box-sizing: border-box; }
.left-panel { flex: 1; display: flex; flex-direction: column; background: #0a0a0a; border: 1px solid #333; }
.right-panel { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chat-header, .video-header, .user-header { background: #111; padding: 10px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; color: #ff4500; font-weight: bold; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 16px; }
.chat-input-area { display: flex; gap: 5px; padding: 10px; background: #111; border-top: 1px solid #333; }
.chat-input-area input { flex: 1; background: #000; border: 1px solid #333; color: #0f0; padding: 10px; font-family: 'VT323', monospace; font-size: 18px; outline: none; }
.chat-input-area button { background: #ff4500; color: #000; border: none; padding: 0 15px; font-weight: bold; cursor: pointer; font-family: 'VT323', monospace; font-size: 16px; }
.emoji-panel { display: flex; flex-wrap: wrap; padding: 10px; background: #111; border-top: 1px solid #333; gap: 5px; }
.emoji-item { cursor: pointer; font-size: 20px; }
.video-section { flex: 2; display: flex; flex-direction: column; background: #0a0a0a; border: 1px solid #333; }
.video-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 10px; overflow-y: auto; align-content: start; }
.user-section { flex: 1; display: flex; flex-direction: column; background: #0a0a0a; border: 1px solid #333; }
.user-list { flex: 1; overflow-y: auto; list-style: none; padding: 10px; margin: 0; }
.user-list li { padding: 5px; border-bottom: 1px dashed #222; font-size: 18px; cursor: context-menu; }
.sys-msg { color: #555; font-style: italic; font-size: 14px; text-align: center; }
.video-container { position: relative; background: #000; border: 1px solid #333; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.video-container .video-name { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #0f0; padding: 5px; font-size: 14px; text-align: center; }
.video-container .no-signal { position: absolute; color: #ff0000; font-size: 20px; font-weight: bold; }

/* --- SAF TERMINAL TASARIMI --- */
.terminal-body { background-color: #000; color: #0f0; font-family: 'Courier New', Courier, monospace; height: 100vh; margin: 0; padding: 15px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.terminal-container { display: flex; flex: 1; gap: 10px; overflow: hidden; }
.terminal-chat-box { flex: 3; border: 1px solid #0f0; display: flex; flex-direction: column; background: #000; }
.terminal-user-box { flex: 1; border: 1px solid #0f0; display: flex; flex-direction: column; background: #000; min-width: 250px; }
.terminal-header { border-bottom: 1px solid #0f0; padding: 8px 10px; display: flex; justify-content: space-between; background: #000; font-weight: bold; color: #0f0; }
.terminal-header a { color: #0f0; text-decoration: none; }
.terminal-header a:hover { text-decoration: underline; }
.terminal-messages { flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; font-size: 15px; }
.terminal-messages .sys-msg { color: #0f0; font-style: italic; }
.terminal-input-area { display: flex; gap: 10px; border-top: 1px solid #0f0; padding: 10px; align-items: center; }
.terminal-input-area input { flex: 1; background: #000; color: #0f0; border: 1px solid #0f0; padding: 10px; outline: none; font-family: inherit; font-size: 15px; }
.terminal-input-area input::placeholder { color: #0f0; opacity: 0.5; }
.terminal-input-area button#sendBtn { background: #000; color: #0f0; border: 1px solid #0f0; padding: 10px 20px; cursor: pointer; font-family: inherit; font-weight: bold; }
.terminal-input-area button#sendBtn:hover { background: #0f0; color: #000; }
#userList { list-style: none; padding: 10px; margin: 0; overflow-y: auto; font-size: 16px; }
#userList li { padding: 5px 0; cursor: context-menu; }
.terminal-footer { margin-top: 10px; }
.btn-channels { display: inline-block; border: 1px solid #0f0; color: #0f0; padding: 8px 15px; text-decoration: none; font-weight: bold; font-family: inherit; background: #000; }
.btn-channels:hover { background: #0f0; color: #000; }

/* Özel kaydırma çubuğu (Scrollbar) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #0f0; }

/* Sag Tik Menusu - Terminal Temasi */
.context-menu {
    position: absolute; background-color: #000; border: 1px solid #0f0; z-index: 1000; min-width: 200px; font-family: 'Courier New', Courier, monospace;
}
.context-menu .menu-item { padding: 8px 12px; color: #0f0; font-size: 14px; cursor: pointer; border-bottom: 1px solid #333; }
.context-menu .menu-item:hover { background-color: #0f0; color: #000; }
.context-menu .ban-item { color: #ff0000; }
.context-menu .kick-item { color: #ffaa00; }

/* Sag Tik Menusu - Terminal Temasi (Kucultulmus) */
.context-menu {
    position: absolute; background-color: #000; border: 1px solid #0f0; z-index: 1000; min-width: 180px; font-family: 'Courier New', Courier, monospace;
}
.context-menu .menu-item { 
    padding: 5px 10px; 
    color: #0f0; 
    font-size: 12px !important; /* Yazilar kucultuldu */
    cursor: pointer; 
    border-bottom: 1px solid #222; 
}
.context-menu .menu-item:hover { background-color: #0f0; color: #000; }
.context-menu .ban-item { color: #ff3333; }
.context-menu .kick-item { color: #ffaa00; }
.context-menu .unban-item { color: #00ff00; font-weight: bold; }

/* --- MOBIL VE TABLET UYUMLULUGU --- */
@media (max-width: 768px) {
    .terminal-container { flex-direction: column; padding: 5px; height: 100vh; overflow-y: auto; }
    .terminal-chat-box, .terminal-user-box { width: 100%; margin-bottom: 10px; }
    .terminal-user-box { max-height: 200px; }
    .video-grid { flex-direction: column; align-items: center; max-height: 300px !important; }
    .video-container { width: 90% !important; height: auto !important; aspect-ratio: 16/9; }
    .terminal-header { font-size: 12px; padding: 5px; }
    .terminal-input-area input { font-size: 14px; padding: 8px; }
    .terminal-input-area button { padding: 8px 12px; font-size: 12px; }
    #dm-window { width: 90% !important; right: 5% !important; bottom: 10px !important; height: 300px !important; }
    .terminal-footer { display: none; } /* Mobilde alt barı gizle, yer aç */
}
