/* wog/public/assets/css/global.css */
/* Oyunun yazı tipi (yalnızca butonlar ve karakter/canavar adları için) her sayfada yüklenir */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    /* Yazılar ve bilgiler okunaklı düz serif; oyunun yazı tipi yalnızca butonlarda ve adlarda (aşağıda) */
    font-family: serif;
    background-color: #120a06;
    color: #f3cf98;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f0805;
}
::-webkit-scrollbar-thumb {
    background: #4a2f1d;
    border-radius: 3px;
}

a {
    text-decoration: none;
    color: inherit;
}

input {
    font-family: inherit;
    outline: none;
}
input:focus {
    border-color: #dfb030 !important;
}

button {
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

::selection {
    background: #6e4624;
    color: #f0d080;
}

.skeleton {
    background: linear-gradient(90deg, rgba(74,47,29,0.4) 0%, rgba(110,70,36,0.6) 50%, rgba(74,47,29,0.4) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    width: 80%;
    display: inline-block;
}
.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.8em;
}
.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(74,47,29,0.4) 0%, rgba(110,70,36,0.6) 50%, rgba(74,47,29,0.4) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-bar {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}
.skeleton-btn {
    height: 40px;
    border-radius: 6px;
    width: 100%;
    margin-top: 6px;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tp-bar-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

* {
    -webkit-overflow-scrolling: touch;
}
body {
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
}

.auth-container {
    background: rgba(18, 10, 6, 0.2) !important;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(110, 70, 36, 0.3);
}

.guide-help-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3a2214, #1f110a);
    border: 2px solid #6e4624;
    color: #dfb030;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.2s;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1px;
}
.guide-help-btn:hover, .guide-help-btn:active {
    border-color: #dfb030;
    box-shadow: 0 0 14px rgba(223,176,48,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    color: #f0d080;
}

.guide-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 6, 3, 0.9);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}
.guide-modal {
    background: linear-gradient(180deg, #1a0e08 0%, #0f0805 100%);
    border: 2px solid #5a3814;
    border-radius: 4px;
    max-width: 380px;
    width: 90%;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
    text-align: center;
    animation: fadeInUpModal 0.3s ease-out;
    position: relative;
}
.guide-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #845934, transparent);
}
@keyframes fadeInUpModal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.guide-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 6px;
    color: #bfa175;
    font-style: italic;
    font-family: 'Crimson Text', serif;
}
.guide-modal-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    color: #dfb030;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(223,176,48,0.3);

}
.guide-modal-body {
    font-size: 0.82rem;
    color: #a8906a;
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: justify;
    padding: 0 4px;
}
.guide-modal-body .guide-highlight {
    color: #d4b87a;
    font-weight: bold;
}
.guide-modal-btn {
    background: linear-gradient(90deg, #3a2214, #2b180f);
    border: 1px solid #6e4624;
    color: #d4b87a;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    width: 100%;
    text-shadow: 1px 1px 2px #000;
}
.guide-modal-btn:active {
    background: linear-gradient(90deg, #4a2f1d, #3a2214);
    border-color: #845934;
    color: #f0d080;
    transform: scale(0.97);
}

.guide-help-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a2f1d, #2b180f);
    border: 2px solid #6e4624;
    color: #dfb030;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: all 0.2s;
    font-family: 'Cinzel Decorative', serif;
}
.guide-help-btn:hover, .guide-help-btn:active {
    border-color: #dfb030;
    box-shadow: 0 0 12px rgba(223,176,48,0.5);
    transform: scale(1.05);
}

.guide-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}
.guide-modal {
    background: linear-gradient(180deg, #1f110a 0%, #120a06 100%);
    border: 2px solid #6e4624;
    border-radius: 16px;
    max-width: 380px;
    width: 90%;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.9), 0 0 0 1px rgba(223,176,48,0.2);
    text-align: center;
    animation: fadeInUpModal 0.3s ease-out;
}
@keyframes fadeInUpModal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.guide-modal-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}
.guide-modal-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: #dfb030;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.guide-modal-body {
    font-size: 0.85rem;
    color: #bfa175;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
    padding: 0 4px;
}
.guide-modal-body .guide-highlight {
    color: #f3cf98;
    font-weight: bold;
}
.guide-modal-btn {
    background: linear-gradient(90deg, #5a3814, #3a2214);
    border: 1px solid #845934;
    color: #f0d080;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    width: 100%;
}
.guide-modal-btn:active {
    background: linear-gradient(90deg, #6e4624, #4a2f1d);
    border-color: #dfb030;
    transform: scale(0.97);
}

.spotlight-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    pointer-events: auto;
}
.spotlight-target {
    position: relative;
    z-index: 100003 !important;
    box-shadow: 0 0 0 4px #dfb030, 0 0 20px rgba(223, 176, 48, 0.6);
    animation: spotlightPulse 1.2s ease-in-out infinite;
    pointer-events: auto !important;
}
@keyframes spotlightPulse {
    0%, 100% { box-shadow: 0 0 0 4px #dfb030, 0 0 20px rgba(223, 176, 48, 0.6); }
    50% { box-shadow: 0 0 0 8px #f0d080, 0 0 30px rgba(240, 208, 128, 0.8); }
}
.spotlight-tooltip {
    position: fixed;
    z-index: 10002;
    background: linear-gradient(180deg, #1f110a, #120a06);
    border: 2px solid #dfb030;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 260px;
    text-align: center;
    color: #f0d080;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: fadeInUp 0.3s ease-out;
    pointer-events: none;
}

.spotlight-tooltip[data-position="top"]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #dfb030;
}
.spotlight-tooltip[data-position="bottom"]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #dfb030;
}
.spotlight-tooltip[data-position="right"]::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #dfb030;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle-btn { position: relative; }

.stack-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #6e4624;
    color: #f0d080;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 6px rgba(110,70,36,0.6);
    pointer-events: none;
}

.locked-btn {
    opacity: 0.35 !important;
    filter: blur(1px) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.map-card.locked {
    opacity: 0.4;
    filter: blur(2px);
    pointer-events: none;
    cursor: not-allowed;
}
.locked-btn {
    opacity: 0.35 !important;
    filter: blur(1px) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}


/* ===== Yazı tipi düzeni =====
   Bütün metin ve bilgiler düz serif (body). Oyunun yazı tipi (Cinzel Decorative) yalnızca:
   - buton yazılarında,
   - karakter, oyuncu, NPC ve canavar adlarında,
   - sayfa başlıklarında (NPC/mekân adı: Aetius, Demirci Ocağı...) ve harita adlarında. */
button, .train-btn, .rpg-list-row, .fight-btn, .attack-btn, .action-btn, .auth-btn, .stance-btn, .skip-btn,
.ov-btn, .nav-btn, .page-btn, .guild-nav-btn, .kolezyum-btn, .collection-btn, .create-btn, .claim-btn,
.quest-btn, .sell-btn, .equip-btn, .back-btn, .close-btn, .toggle-btn, .menu-toggle-btn, .menu-back-btn,
.category-main-btn, .category-title, .modal-close-btn, .region-tab, .tip-btn, .action-title, .guide-modal-btn,
.dashboard-username, .player-name, .player-name-level, .opponent-name, .seller-name, .monster-name,
.result-player-name, #activePlayerName, #activeEnemyName, #arenaActivePlayerName, #arenaActiveEnemyName,
#prePlayerName, #preEnemyName, #playerNameDisplay, #playerNameLevel, #petName,
.game-title, .map-name, .m-label b, .ff-title h2, .flip-back h3 {
    font-family: 'Cinzel Decorative', serif !important;
}
/* Buton içindeki açıklama satırları bilgi metnidir: düz serif */
.action-subtitle, .region-tab small { font-family: serif !important; }
