/* interactions.css - DÜNYA VE ÖDÜL SİSTEMİ NİHAİ SÜRÜM */

/* ============================================================
   TOWN & CITY KAPSAYICILARI (ÇİVİ GİBİ SABİT)
   ============================================================ */
.town-container, .city-container {
    position: absolute; 
    inset: 0; 
    margin: auto;
    aspect-ratio: 16 / 9; 
    max-width: 100%; 
    max-height: 100%;
    width: auto; 
    height: auto; 
    container-type: inline-size;
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
    z-index: 1;
}

.town-background, .city-background { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* BİNA YAZILARI VE KOORDİNATLAR */
.town-building, .city-building { 
    position: absolute; 
    cursor: pointer; 
    width: 0; 
    height: 0; 
    overflow: visible; 
    z-index: 5; 
}

.town-label-text, .city-label-text {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    white-space: nowrap;  
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000; 
    pointer-events: auto;
	font-family: 'Cinzel', serif; /* Yeni Font */
    font-weight: 700;
    text-transform: uppercase; /* Her zaman büyük harf Cinzel'e çok yakışır */
    letter-spacing: 2px; /* Harf arası boşluk antik hava katar */
    font-size: 1.1rem; /* Okunabilirlik için hafif büyütebiliriz */
    color: #e0d0b0;
    
    /* Daha derin bir gölge ekleyerek yazıların arka plandan ayrılmasını sağlayalım */
    text-shadow: 
        2px 2px 0 #000, 
        -1px -1px 0 #000, 
        0px 0px 10px rgba(0,0,0,0.8);
    
    transition: all 0.3s ease;
}
.town-building:hover .town-label-text, 
.city-building:hover .city-label-text {
    color: #ffd700; /* Sadece yazı rengini altın sarısı yap */
    
    transform: translate(-50%, -50%) scale(1.1); /* Hafif büyüme kalsın */ 
}

/* TOWN KOORDİNATLARI (Orijinal Açı ve Yerleşim) */
#building-inn { top: 58%; left: 47.3%; }
#building-inn .town-label-text { transform: translate(-50%, -50%) rotate(351deg); }
#building-blacksmith { top: 64.7%; left: 20.7%; }
#building-blacksmith .town-label-text { transform: translate(-50%, -50%) rotate(349deg); }
#building-merchant { top: 61.4%; left: 64.7%; }
#building-merchant .town-label-text { transform: translate(-50%, -50%) rotate(10deg); }
#building-alchemist { top: 36.6%; right: 20.5%; }
#building-alchemist .town-label-text {transform: translate(-50%, -50%)}
#building-stable { top: 64.4%; right: 9.8%; }
#building-stable .town-label-text { transform: translate(-50%, -50%) rotate(10deg); }

/* MACERAYA DÖN BUTONU */
.town-exit-btn {
    position: absolute; bottom: 0.4%; right: 0.2%; z-index: 100;
    background: linear-gradient(to bottom, #8b0000, #500000) !important;
    border: 2px solid #ff4d4d !important; color: white !important;
    padding: 12px 30px !important; font-size: 1.1em !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8) !important;
    cursor: pointer; border-radius: 4px; transition: all 0.2s;
	font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.town-exit-btn:hover { background: #a00000 !important; transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 77, 77, 0.4) !important; }

/* ŞEHİR BAŞLIĞI - YUKARIYA SABİTLENDİ VE CİLANLANDI */
.city-header {
    position: absolute;
    top: 5%; /* Ekranın en üstünden %5 aşağıda */
    width: 100%;
    text-align: center;
    z-index: 100; /* Arka planın çok üzerinde */
    pointer-events: none; /* Tıklamayı engellemesin */
}

.city-title {
    color: #ffd700; /* Parlak Altın */
    font-family: 'Georgia', serif;
    font-size: 1.5em; /* Büyük ve heybetli */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin: 0;
    /* Katmanlı gölge ile "Düz Yazı" olmaktan kurtardık */
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        2px 2px 0 #000,
        4px 4px 10px rgba(0, 0, 0, 0.8);
    animation: cityTitleFloat 4s infinite ease-in-out;
}

.city-subtitle {
    color: #43FF64; /* Başarı Rengi: Yeşil */
    font-size: 0.7em;
    letter-spacing: 4px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

@keyframes cityTitleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* BİNALAR (Koordinatlı Tıklama Noktaları) */
.city-building {
    position: absolute;
    cursor: pointer;
    z-index: 50;
    width: 0; height: 0; /* Noktasal merkez */
    overflow: visible;
}

.city-label-text {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    color: #e0d0b0; /* Antik beyaz/pirinç tonu */
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
	text-shadow: 
        2px 2px 4px #000, 
        -1px -1px 0 #000, 
        1px -1px 0 #000, 
        -1px 1px 0 #000, 
        1px 1px 0 #000,
        0 0 10px rgba(0,0,0,0.8);
    
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* Şehir Bina Yerleşimleri */
#city-palace { top: 20%; left: 63%; }
#city-vault  { top: 60%; left: 25%; }
#city-arena  { top: 65%; right: 25%; }
/*#city-market { top: 75%; left: 50%; }
/* #city-veteran { top: 45%; left: 80%; } /* Şehrin sağ tarafında sakin bir yer */

/* Bina Konumları (Sub-Screen bazlı) */
#city-blacksmith { top: 15%; left: 28%; }
#city-alchemist { top: 17.7%; left: 79.85%; }
#city-grand-merchant { top: 37%; left: 48%; }

#city-grand-merchant .city-label-text { transform: translate(-50%, -50%) rotate(0deg); font-size: 1em; }
#city-alchemist .city-label-text { transform: translate(-50%, -50%) rotate(2deg); }
#city-blacksmith .city-label-text { transform: translate(-50%, -50%) rotate(-3deg); }
#city-chronicler .city-label-text { transform: translate(-50%, -50%) rotate(-5deg);  }
#city-veteran-master .city-label-text { transform: translate(-50%, -50%) rotate(3deg); }

#city-veteran-master { top: 40%; left: 32.3%; }
#city-chronicler { top: 48%; left: 71.4%; }

.city-sub-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
}

/* OKLARIN TASARIMI */
.city-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #ffd700;
    padding: 20px 10px;
    cursor: pointer;
    z-index: 200;
    border: 1px solid #6b5c3b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.city-nav-arrow.left { left: 0; border-radius: 0 15px 15px 0; }
.city-nav-arrow.right { right: 0; border-radius: 15px 0 0 15px; }
.city-nav-arrow:hover { background: #3e2723; color: #fff; padding: 20px 20px; }

.district-hint {
    font-size: 0.6rem;
    writing-mode: vertical-rl; /* Yazıyı dikey yapar, çok havalı durur */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   2. GEÇİŞ BUTONU (NEXT ACT)
   ============================================================ */
.next-act-container {
    position: absolute;
    bottom: 0%; /* En alttan biraz yukarıda */
    width: 179%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.next-act-btn {
    background: linear-gradient(to bottom, #ffd700, #b8860b) !important;
    color: #000 !important;
    border: 3px solid #fff !important;
    padding: 10px 30px !important;
    font-size: 1em !important;
    font-weight: 900 !important;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5) !important;
    transition: transform 0.2s;
}

.next-act-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8) !important;
}




/* ============================================================
   REWARD (ÖDÜL) EKRANI - ZAFER VE ALTIN CİLASI
   ============================================================ */
.reward-content { 
    width: 550px; 
    min-height: 480px; 
    padding: 40px; 
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%); 
    border: 2px solid #ffd700; 
    border-radius: 12px; 
    box-shadow: 0 0 40px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 215, 0, 0.2); 
    text-align: center;
    display: flex;
    flex-direction: column; 
    position: relative;
	overflow: hidden;
}

/* ZAFER YAZISI - ALTIN PARLAMA (GLOW) EFEKTİ */
.reward-content h2 {
	font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 5px;
    /* Katmanlı Parlama Efekti */
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 165, 0, 0.4),
        2px 2px 4px #000;
    animation: victoryGlow 2s infinite alternate;
}

@keyframes victoryGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 2px 2px 4px #000; }
    to { text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 165, 0, 0.6), 2px 2px 4px #000; transform: scale(1.02); }
}

#reward-list {
    flex-grow: 1; /* Mevcut boşluğun tamamını kaplar */
    overflow-y: auto; /* İçerik taşarsa kaydırma açılır */
    margin: 15px 0;
    padding: 10px;
    
    /* --- GİZLİ SCROLLBAR MANTIĞI --- */
    -ms-overflow-style: none;  /* Internet Explorer ve Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Chrome, Safari ve Opera için scrollbar gizleme */
#reward-list::-webkit-scrollbar {
    display: none;
}


/* --- ORTAK ÖDÜL ÖZELLİKLERİ --- */
.reward-item { 
	font-family: 'Cinzel', serif;
    background: rgba(40, 40, 40, 0.9); 
    border: 1px solid #ffd700; 
    cursor: pointer; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    margin: 0 auto 15px auto; 
    transition: all 0.2s ease;
}

.reward-item:hover {
    transform: scale(1.02);
    background: rgba(60, 60, 60, 0.95);
}

/* --- ALTIN ÖDÜLÜ ÖZEL AYARI (MEMNUN OLDUĞUN HALİ) --- */
.reward-gold {
    justify-content: center; /* Altın ve yazı ortalı */
    gap: 12px;
    width: 35%; 
    padding: 12px 20px;
    height: 60px;
}

.reward-gold i {	
    color: #ffd700 !important; 
    font-size: 1.4em; 
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); 
}

.reward-gold span {
	font-family: 'Cinzel', serif;
    font-weight: bold; 
    font-size: 1.1em; 
    color: #ffffff !important;
    text-shadow: 1px 1px 2px #000;
}

/* --- EŞYA ÖDÜLÜ ÖZEL AYARI (YENİ VE BÜYÜK) --- */
.reward-equipment {
    justify-content: flex-start; /* İkon sola, metin yanına */
    width: 60%; /* Metinler sığsın diye biraz daha geniş yaptık */
    padding: 15px 25px;
    min-height: 90px; /* Daha yüksek */
}

.reward-item-amount {
    color: #ffd700; /* Altın sarısı */
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 2px 2px 4px #000;
    /* Çizimine sadık kalmak için hafif yukarı ve sağa asalım */
    transform: translateY(-5px); 
}

.reward-item-icon {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.reward-item-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Metin alanını sağa kadar yayar */
    text-align: left;
    position: relative;
}

.reward-item-header {
    display: flex;
    justify-content: space-between; /* İsim sola, miktar sağa */
    align-items: baseline;
    width: 100%;
    padding-right: 10px; /* Kenardan biraz boşluk */
}

.reward-item-name {
	font-family: 'Cinzel', serif;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
	max-width: 180px; /* İsmin miktar yazısının üstüne binmesini engeller */
    line-height: 1.2;
}

.reward-item-tier {
	font-family: 'Cinzel', serif;
    font-size: 0.9em;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.reward-continue-btn { 
	font-family: 'Cinzel', serif;
    margin: auto auto 10px auto; 
    width: 220px !important; 
    padding: 12px 20px !important;
    background: linear-gradient(to bottom, #5d4a30, #3e3221) !important;
    border: 1px solid #ffd700 !important; 
    color: #f0e68c !important; 
    align-self: center;
}

.reward-action-btn {
	width: 220px !important;
    padding: 12px 20px !important;
	font-family: 'Cinzel', serif;
    margin: auto auto 10px auto;
    background: linear-gradient(to bottom, #5d4a30, #3e3221) !important;
    border: 1px solid #ffd700 !important;
    color: #f0e68c !important;
    align-self: center;
}

.reward-action-btn:hover {
    filter: brightness(1.2);
}

/* ============================================================
   CHOICE (OLAYLAR)
   ============================================================ */
.event-content { max-width: 500px; padding: 40px; background: linear-gradient(135deg, #12121a 0%, #1e1e2d 100%); border: 2px solid #9b59b6; border-radius: 12px; box-shadow: 0 0 40px rgba(155, 89, 182, 0.3); text-align: center; }
#event-title { font-size: 2.2em; color: #9b59b6; margin-bottom: 10px; text-shadow: 0 0 10px rgba(155, 89, 182, 0.5); }
.event-btn { background: rgba(25, 25, 35, 0.9); border: 1px solid #444; padding: 18px; cursor: pointer; border-radius: 8px; transition: 0.2s; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.event-btn:hover { background: #2a2a3d; border-color: #9b59b6; transform: translateX(8px); }
.buff { color: #43FF64 !important; font-weight: bold; }
.debuff { color: #ff4d4d !important; font-weight: bold; }

/* ============================================================
   NPC MODALLARI VE KAMP ATEŞİ
   ============================================================ */
.npc-window { font-family: 'Cinzel', serif; width: 1280px; height: 900px; background-size: contain; background-repeat: no-repeat; background-position: center; position: relative; }
.npc-modal { font-family: 'Cinzel', serif; position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.85); z-index: 5000; display: none; justify-content: center; align-items: center; }
.npc-modal:not(.hidden) { display: flex !important; }
.npc-title { font-family: 'Cinzel', serif; position: absolute; width: 100%; text-align: center; color: #3e2723; font-weight: 900; font-size: 1.8em; top: 185px; text-transform: uppercase; }
.npc-actions-left, .npc-actions-right { position: absolute; width: 140px; top: 300px; display: flex; flex-direction: column; gap: 15px; }
.npc-actions-left { left: 300px; } .npc-actions-right { right: 310px; }
.npc-dialogue { font-family: 'Cinzel', serif; position: absolute; bottom: 170px; left: 50%; transform: translateX(-50%); width: 30%; text-align: center; color: #5d4037; font-weight: bold; font-style: italic; }

.fire-glow-effect { position: absolute; bottom: -20%; left: 20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(255,69,0,0.6) 0%, rgba(139,0,0,0.2) 60%, transparent 80%); filter: blur(30px); animation: fire-flicker 3s infinite alternate; z-index: 0; pointer-events: none; }


/* --- HANCI (INN) --- */
#modal-inn .npc-title {top: 18.8%;}
#modal-inn .npc-dialogue {bottom: 19%;}
#modal-inn .npc-stats-left {left: 27%;}
#modal-inn .npc-stats-right {right:30%;}
#modal-inn .npc-stats-header {top:21%;}
#modal-inn .npc-actions-left {top: 32%; left: 23%}
#modal-inn .npc-actions-right {top: 32%; right: 25%}

/* --- SİMYACI (ALCHEMIST) --- */
#modal-alchemist .npc-actions-left { top: 32%;  left: 23%; }
#modal-alchemist .npc-actions-right { top: 32%;  right: 25%; }
#modal-alchemist .npc-title {top: 18.8%;}
#modal-alchemist .npc-dialogue {bottom: %19; font-size: 0.9em}
#modal-alchemist .npc-stats-left {left:27%;}
#modal-alchemist .npc-stats-right {right:30%;}
#modal-alchemist .npc-stats-header {top:21.3%;}


/* --- DEMİRCİ (BLACKSMITH) --- */
#modal-blacksmith .npc-title {top: 18.8%;}
#modal-blacksmith .npc-dialogue {bottom: 19%;}
#modal-blacksmith .npc-stats-left {left: 27%;}
#modal-blacksmith .npc-stats-right {right:30%;}
#modal-blacksmith .npc-stats-header {top:21%;}
#modal-blacksmith .npc-actions-left {top: 32%; left: 23%}
#modal-blacksmith .npc-actions-right {top: 32%; right: 25%}
/*============================================================
   Salvage Ekranı
============================================================ */
.salvage-yield-info {
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    width: 80%;
    font-size: 0.9em;
    color: #f0e68c;
}
.salvage-input {
    border-color: #ff4d4d !important; /* Parçalama tehlikelidir kırmızısı */
    width: 70px !important;
    height: 70px !important;
}
/*============================================================
   Reforge Ekranı
============================================================ */
/* Reforge Özellik Kartları */
.stat-selection-list {
    margin: 15px auto;
    width: 90%;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 8px;
    border: 1px inset #444;
}

#reforge-property-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.reforge-prop-card {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.reforge-prop-card:hover {
    background: #333;
    border-color: #f0e68c;
}

.reforge-prop-card.selected {
    background: linear-gradient(to right, #5d4a30, #2b2218);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.reforge-prop-card .prop-name { color: #aaa; }
.reforge-prop-card.selected .prop-name { color: #fff; font-weight: bold; }
.reforge-prop-card .prop-val { color: #43FF64; font-weight: bold; }

/* Maliyet Alanı */
.reforge-costs {
    display: flex;          /* Yan yana getirir */
    justify-content: center; /* Ortalar */
    align-items: center;     /* Dikeyde (yükseklik olarak) tam ortalar */
    gap: 30px;              /* Gold ve Fragment arasındaki boşluk */
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Slot Vurgusu */
.reforge-input {
    width: 70px !important;
    height: 70px !important;
    border-color: #8e44ad !important; /* Reforge'un rengi Mor olsun */
}

/* --- TÜCCAR (MERCHANT) --- */
#modal-merchant .npc-title {top: 18.8%;}
#modal-merchant .npc-dialogue {bottom: 19%; font-size: 0.9em}
#modal-merchant .npc-stats-left {left: 27%;}
#modal-merchant .npc-stats-right {right:30%;}
#modal-merchant .npc-stats-header {top:21%;}
#modal-merchant .npc-actions-left {top: 32%; left: 23%}
#modal-merchant .npc-actions-right {top: 32%; right: 25%}
/*============================================================
   Merchant Trade
============================================================ */
.price-tag {position: absolute; top: 0px; right: -1px; background: #000; color: #ffd700; font-size: 0.7em; padding: 2px 6px;
    border: 1px solid #6b5c3b;
    border-radius: 4px;
    z-index: 10;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    pointer-events: none;
}
/* Onay Butonları Konteynırı */
#trade-confirm-modal .stat-window {
    background: #1a150e !important;
    border: 3px solid #6b5c3b !important;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}

/* EVET Butonu (Yeşil/Güvenli) */
.confirm-btn-yes {
    background: linear-gradient(to bottom, #2d5a27, #1e3d1a) !important;
    border-color: #43ff64 !important;
    width: 110px !important; /* Genişliği sabitledik */
    margin: 0 !important;
}

.confirm-btn-yes:hover {
    background: #3a7532 !important;
    box-shadow: 0 0 10px rgba(67, 255, 100, 0.4);
}

/* HAYIR Butonu (Kırmızı/İptal) */
.confirm-btn-no {
    background: linear-gradient(to bottom, #8b0000, #5a0000) !important;
    border-color: #ff4d4d !important;
    width: 110px !important; /* Genişliği sabitledik */
    margin: 0 !important;
}

.confirm-btn-no:hover {
    background: #a00000 !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

/* Metin ayarı */
#trade-confirm-text {
    font-size: 1.1em;
    color: #f0e68c;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.confirm-name-text { font-size: 1.2rem; display: block; margin-bottom: 5px; }
.confirm-tier-text { font-size: 0.9rem; opacity: 0.8; display: block; }
/*============================================================
   Merchant Trade Bitişi
============================================================ */

/* --- AHIR (STABLE) --- */
#modal-stable .npc-title {top: 18.8%;}
#modal-stable .npc-dialogue {bottom: 19%;}
#modal-stable .npc-stats-left {left: 27%;}
#modal-stable .npc-stats-right {right:30%;}
#modal-stable .npc-stats-header {top:21%;}
#modal-stable .npc-actions-left {top: 32%; left: 22.5%}
#modal-stable .npc-actions-right {top: 32%; right: 25%}

.scouted-node {
    box-shadow: 0 0 15px #00ccff !important;
    border-color: #00ccff !important;
}

.npc-stats-header {
    position: absolute;
    top: 205px; /* İsimlik ile aynı hizada veya biraz altında */
    width: 100%;
    pointer-events: none; /* Butonlara tıklamayı engellememesi için */
    z-index: 10;
}

.npc-stats-left {
    position: absolute;
    left: 350px; /* Kırmızı kutunun olduğu bölge */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.npc-stats-right {
    position: absolute;
    right: 390px; /* Lacivert kutunun olduğu bölge */
}

/* Değerlerin Görünümü */
.npc-hp-stat { color: #ff4d4d; font-weight: bold; text-shadow: 2px 2px 2px #000; font-size: 1.1em; }
.npc-rage-stat { color: #3498db; font-weight: bold; text-shadow: 2px 2px 2px #000; font-size: 1.1em; }
.npc-gold-stat { color: #ffd700; font-weight: bold; text-shadow: 2px 2px 2px #000; font-size: 1.2em; }
.npc-exhaust-stat { color: #ffd700; font-weight: bold; text-shadow: 2px 2px 2px #000; font-size: 1.1em; }

/* Choice ekranındaki (event-screen) ikonların hizası için küçük dokunuş */
#event-screen .npc-exhaust-stat {
    font-size: 1rem;
}
#event-screen .npc-stats-left {
    gap: 20px; /* HP, Rage ve Exhaust kutuları arasını açar */
}

.npc-stats-header i { margin-right: 5px; font-size: 0.9em; display: inline-block;}

/*============================================================
   Alchemist Transmute
============================================================ */
.transmute-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
}
.transmute-slots {
    display: flex;
    gap: 20px;
}
.transmute-arrow {
    font-size: 1.5em;
    color: #ffd700;
    animation: bounce 2s infinite;
}
.transmute-input { border-color: #3498db !important; }
.transmute-result { 
    border-color: #ffd700 !important; 
    width: 70px !important; 
    height: 70px !important;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
}

#transmute-bag-grid {
    grid-template-columns: repeat(4, 50px);
    grid-template-rows: repeat(2, 50px);
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    width: fit-content;
    border: 1px solid #444;
}
#transmute-bag-grid .item-slot {
    width: 50px;
    height: 50px;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Kritik Başarı Parlama Efekti */
.critical-glow {
    animation: critical-pulse 1s infinite alternate !important;
    border-color: #ff00ff !important; /* Mor/Pembe bir parlama */
    box-shadow: 0 0 30px #ff00ff, inset 0 0 20px #ff00ff !important;
}

@keyframes critical-pulse {
    from { filter: brightness(1) drop-shadow(0 0 5px #ff00ff); }
    to { filter: brightness(1.5) drop-shadow(0 0 20px #ff00ff); transform: scale(1.1); }
}

/* Badge'in sonuç slotunda doğru görünmesi için */
.transmute-result {
    position: relative;
}

.transmute-gold-investment {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 15px;
    border-radius: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.investment-hint {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.gold-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Butonları ve sayıyı merkeze toplar */
    gap: 12px;
}

/* Sayı Gösterge Kutusu */
.invested-amount-display {
    background: #111;
    border: 1px solid #6b5c3b;
    border-radius: 4px;
    padding: 5px 15px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 0 10px #000;
}

.invested-amount-display i {
    color: gold;
    font-size: 0.9rem;
}

#transmute-gold-invested {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Yatırım Butonları */
.investment-btn {
    width: 40px !important;
    height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(to bottom, #4a3b2a, #2b2218) !important;
    border: 1px solid #7c6843 !important;
    color: #f0e68c !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-btn:hover {
    background: #5d4a35 !important;
    border-color: #f0e68c !important;
    box-shadow: 0 0 10px rgba(240, 230, 140, 0.3);
}

.investment-btn:active {
    transform: translateY(2px);
}
/*============================================================
   Alchemist Transmute İhtimaller
============================================================ */
.transmute-probs {
    margin: 15px auto;
    width: 80%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #6b5c3b; /* Altın/Kahve çerçeve */
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prob-row {
    display: flex; /* Yanyana getirir */
    justify-content: space-between; /* Birini en sola, birini en sağa iter */
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.prob-row:last-child {
    border-bottom: none;
}

.prob-label { 
    color: #aaa; 
    font-style: italic;
}

.prob-value { 
    color: #f0e68c; 
    font-weight: bold; 
}

.prob-critical { 
    color: #ff00ff; 
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6); 
}

/*============================================================
   Alchemist Transmute Effekt
============================================================ */

.transmute-container {
    position: relative; /* Çizgilerin burayı merkez alması için şart */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 10px;
    min-height: 300px;
}

#transmute-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Slotların altında veya üstünde olması fark etmez ama görünsün */
}

/* Çizgiler daha belirgin olsun */
.elec-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px #00ccff);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Aktif olduğunda çalışma animasyonu */
.elec-path.active {
    animation: draw-electric 0.6s ease-out forwards;
}

@keyframes draw-electric {
    to { stroke-dashoffset: 0; }
}

/* Sonuç kutusu parlaması */
.result-flash {
    animation: flash-white 0.5s ease-out;
}

@keyframes flash-white {
    0% { box-shadow: 0 0 0px #fff; filter: brightness(1); }
    50% { box-shadow: 0 0 50px #fff; filter: brightness(3); }
    100% { box-shadow: 0 0 0px #fff; filter: brightness(1); }
}
/*============================================================
   Alchemist Sentez
============================================================ */
.synthesis-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 12px;
}

.craft-slot-top {
    margin-bottom: 5px;
}

.craft-slots-bottom {
    display: flex;
    gap: 20px;
}

.craft-input {
    width: 65px !important;
    height: 65px !important;
    border-color: #3498db !important;
    position: relative; /* Badge'ler için şart */
}

/* Badge'lerin slotlar içinde görünmesini garanti altına al */
.craft-input .item-tier-badge, 
.craft-input .item-count-badge {
    display: block !important;
    z-index: 10;
}

/* Tier Seçici Butonları */
.tier-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #111;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #6b5c3b;
    margin: 10px 0;
}

.tier-selector span {
    font-weight: bold;
    color: #f0e68c;
    min-width: 80px;
}

.tier-selector button {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    line-height: 1;
}

/* Sentez Sonuç Slotu Parlaması */
#synthesis-result-slot {
    width: 80px !important;
    height: 80px !important;
    border-color: #43FF64 !important; /* Başarı yeşili */
    background: radial-gradient(circle, rgba(67, 255, 100, 0.1) 0%, transparent 70%);
}
/*============================================================
   Alchemist Sentez Bitişi
============================================================ */
/* Ödüllerin parlaması için animasyon */
@keyframes rewardPulse {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); transform: scale(1); }
}

.pulse-reward {
    animation: rewardPulse 2s infinite ease-in-out;
    border-color: #ffd700 !important;
}

/* Üzerine gelindiğinde animasyonu durdur ve parlat */
.reward-item:hover {
    animation: none;
    filter: brightness(1.3);
    border-color: #fff !important;
}
/* --- Merchant Preview ---  */
#trade-equipment-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3e3221;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 20px;
	overflow-x: auto; /* Sığmazsa kaydırılabilir olsun */
}

.trade-preview-separator-horizontal {
    width: 80%; /* Tam boy kaplamasın, şık dursun */
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 5px auto;
    opacity: 0.5;
}


.preview-label {
    font-size: 0.65rem;
    color: #a89373;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.compact-equip-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Önizleme slotları normalden daha küçük (45px) */
.trade-preview-slot {
    width: 45px !important;
    height: 45px !important;
    border: 1px solid #6b5c3b !important;
    background-color: rgba(20, 20, 20, 0.8) !important;
    opacity: 0.9;
}

.trade-preview-slot img {
    filter: brightness(0.8);
}

.trade-preview-slot:hover {
    opacity: 1;
    border-color: #ffd700 !important;
}

.compendium-group-title {
    color: #ffd700;
    font-size: 0.9rem;
    margin: 15px 0 10px 10px;
    border-left: 3px solid #ffd700;
    padding-left: 10px;
}

.compendium-card {
    background: linear-gradient(90deg, rgba(30,30,30,0.9), transparent) !important;
}

.comp-img-box {
    width: 60px; height: 60px;
    background: #000; border: 1px solid #444;
    display: flex; justify-content: center; align-items: center;
}

.comp-img-box img { max-width: 100%; max-height: 100%; }

.comp-item-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    color: #43FF64; /* Özellikler yeşil tonlarda olsun */
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 5px;
}

.compendium-item-card h4 {
    margin-bottom: 2px !important;
}
.compendium-window .close-btn {
    left: auto !important;
    right: 15px !important;
    top: 15px !important;
    position: absolute !important;
    display: flex !important;
}

.comp-img-box {
    position: relative; /* Badge'in yapışması için şart */
    width: 65px; height: 65px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    display: flex; justify-content: center; align-items: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.comp-img-box .item-tier-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.6rem;
    padding: 1px 3px;
    border-radius: 2px 0 3px 0;
}
.comp-event-item-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #43FF64;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.comp-event-item-display img {
    width: 54px !important; /* İkonu büyüttük */
    height: 54px !important;
    border: 2px solid #6b5c3b;
    border-radius: 6px;
    background: #000;
}

.comp-event-item-info {
    display: flex;
    flex-direction: column;
}

.comp-event-item-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}



