/* base.css - TAM SÜRÜM */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', serif;
    background-color: #1a1a1a;
    color: #c0c0c0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: block;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background-color: #2b2b2b;
    border: 3px solid #6b5c3b;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

#main-screen-area {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    transition: top 0.3s, height 0.3s;
}

.screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.screen.active { display: flex !important; }
.hidden { display: none !important; }

/* ÜST BİLGİ ÇUBUĞU */
#top-info-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 40px;
    background: linear-gradient(to bottom, #111, #222);
    border-bottom: 2px solid #6b5c3b;
    z-index: 200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; color: #fff;
}

#top-nav-menu { display: flex; gap: 10px; align-items: center; }

#top-hero-name, #top-hero-level {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#btn-top-settings {
    border-color: #f0e68c;
    color: #f0e68c;
}

#btn-top-settings:hover {
    box-shadow: 0 0 10px rgba(240, 230, 140, 0.4);
    background: linear-gradient(to bottom, #5d4a35, #3e3221);
}

/* Modaldaki butonların alt alta düzgün durması için */
#in-game-menu-modal .menu-secondary-btn {
    margin-left: 0 !important;
    margin-bottom: 10px;
}
#settings-modal {
    z-index: 7000 !important; /* Duraklat menüsü 5000'de, bu 7000'de olsun */
}

/* Eğer ayarlar penceresi açıkken arkasının çok fazla kararmasını istemiyorsan */
#settings-modal.npc-modal {
    background-color: rgba(0, 0, 0, 0.5); /* Daha şeffaf bir karartma */
}

/* Navigasyon butonları (Skill, Stat, Çanta) */
.nav-text {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.nav-btn {
    background: linear-gradient(to bottom, #4a3b2a, #2b2218);
    border: 1px solid #7c6843;
    color: #f0e68c;
    padding: 5px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    height: 30px;
    box-shadow: 0 2px 0 #1a150e;
    transition: all 0.1s;
}
.nav-btn:hover { background: linear-gradient(to bottom, #5d4a35, #3e3221); border-color: #f0e68c; transform: translateY(-1px); }
.nav-btn:active { transform: translateY(2px); box-shadow: none; }

#fade-overlay {
    position: fixed; /* Ekranın neresinde olursan ol her yeri kaplar */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0; /* Başlangıçta şeffaf */
    z-index: 9999; /* Her şeyin (U, I, K dahil) en üstünde */
    pointer-events: none; /* Altındaki butonlara basılmasını engellemez (başlangıçta) */
    transition: opacity 1.5s ease-in-out; /* Orijinal yavaş kararma süresi */
    display: block !important; /* display: none olmamalı, yoksa transition çalışmaz */
}

#fade-overlay.active-fade {
    opacity: 1; /* Siyah ekran */
    pointer-events: all; /* Kararınca artık hiçbir yere basılamaz */
}

/* Global Uyarı Penceresi Hiyerarşisi */
#global-modal {
    z-index: 10000 !important; /* Her şeyin üzerinde olması için en yüksek değer */
}

/* Modal arka planının (karartmanın) tüm ekranı kapladığından emin olalım */
#global-modal.npc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Arkadaki menüleri karartır */
    display: none; /* JS ile açılacak */
    justify-content: center;
    align-items: center;
}

#global-modal:not(.hidden) {
    display: flex !important;
}

/* Butonların yan yana durması için küçük bir fix */
#g-modal-actions button {
    margin-left: 0 !important; /* components.css'den gelen margin'i sıfırla */
    min-width: 100px;
}

