/* =========================================
   1. BASE & LAYOUT GERAL
   ========================================= */
body {
    background-color: #1a1c23;
    font-family: 'MedievalSharp', cursive;
    color: #e2e8f0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.top-bar {
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    border-bottom: 2px solid #ecc94b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1024px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bottom-bar {
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    border-top: 2px solid #ecc94b;
    border-bottom: 2px solid #ecc94b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 1024px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.location-bar {
    width: 100%;
    max-width: 1024px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(to right, transparent, rgba(26, 32, 44, 0.9), transparent);
    padding: 10px 0;
    border-top: 1px solid rgba(236, 201, 75, 0.3);
    border-bottom: 1px solid rgba(236, 201, 75, 0.3);
}

/* =========================================
   2. BOTÕES
   ========================================= */
.btn-rpg {
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    border: 2px solid #ecc94b;
    color: #ecc94b;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    transition: 0.2s;
}

.btn-rpg:hover { 
    background: #ecc94b; 
    color: #1a202c; 
}

/* =========================================
   3. MAPAS (Otimizados em um único bloco base)
   ========================================= */
/* Classe base para não repetir bordas e sombras em todos os mapas */
.map-container, 
.map-floresta-container, 
.map-mina-container, 
.map-interior-mina-container {
    position: relative;
    width: 100%;
    max-width: 1024px;
    background-position: center;
    aspect-ratio: 16 / 9;
    border: 4px solid #4a5568;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Propriedades únicas (a imagem) de cada mapa */
.map-container {
    background-image: url('../assets/mapa_cidadecentral.png');
    background-size: cover;
}

.map-floresta-container {
    background-image: url('../assets/mapafloresta_1.png');
    background-size: 100% 100%;
}

.map-mina-container {
    background-image: url('../assets/mapamina.png');
    background-size: 70% 100%;
    max-height: 1536px;
}

.map-interior-mina-container {
    background-image: url('../assets/interior_mina.png');
    background-size: 100% 100%;
}

/* =========================================
   4. HOTSPOTS E TOOLTIPS (Limpos e Sem Piscar)
   ========================================= */
.hotspot {
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: 10;
}

.hotspot:hover {
    background-color: rgba(250, 204, 21, 0.2); 
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.6); 
    z-index: 20;
}

.hotspot .tooltip {
    visibility: hidden;
    width: 150px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ecc94b;
    text-align: center;
    border-radius: 4px;
    padding: 5px 0;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    border: 1px solid #ecc94b;
    pointer-events: none;
}

.hotspot:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* =========================================
   5. MODAIS (Janelas sobrepostas)
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 50; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
}

.modal-content {
    background-color: #1a202c;
    margin: 5vh auto; 
    padding: 20px;
    border: 2px solid #ecc94b;
    width: 90%;
    border-radius: 8px;
    max-height: 90vh; 
    overflow-y: auto; 
}

.close-btn {
    color: #ecc94b;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close-btn:hover { 
    color: #fff; 
}

/* =========================================
   6. SLOT DE EQUIPAMENTOS (Perfil/Inventário)
   ========================================= */
.slot-item {
    width: 4rem; 
    height: 4rem; 
    background-color: #111827; 
    border: 2px dashed #4b5563; 
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.slot-item:hover {
    border-color: #ecc94b; 
    background-color: #1f2937;
    transform: scale(1.05);
}

.slot-placeholder {
    font-size: 1.5rem;
    opacity: 0.25; 
    filter: grayscale(100%); 
    transition: opacity 0.2s;
}

.slot-item:hover .slot-placeholder {
    opacity: 0.6; 
}

.slot-label {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: -2px;
}