/* Exploration Theme - Lost City */

body {
    background-color: #1a1c10;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.4) 0%, transparent 50%),
            url('https://www.transparenttextures.com/patterns/notebook.png');
    font-family: 'Crimson Text', serif;
    color: #e2e8f0;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel Decorative', cursive;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.journal-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* --- FIX VISIBILITÉ --- */
/* On force le masquage par défaut avec !important pour écraser Tailwind si besoin */
#story .section {
    display: none !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#story .section.visible {
    display: block !important;
    opacity: 1;
    animation: fadeInSection 0.8s ease-out;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HUD & INVENTORY FIX --- */
.exploration-hud {
    position: fixed;
    top: 6rem;
    right: 1.5rem;
    width: 280px; /* Largeur fixe plus raisonnable */
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Cinzel', serif;
}

.hud-panel {
    background: rgba(28, 25, 23, 0.95);
    border: 2px solid #57534e;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* Inventory Grid - Correction de l'alignement */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes strictes */
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.inv-slot {
    width: 100%;
    aspect-ratio: 1; /* Carré parfait */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #44403c;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden; /* Empêche le débordement */
}

.inv-slot.filled {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.1);
}

/* Icônes centrées et de taille fixe */
.inv-icon {
    font-size: 24px !important; /* Taille forcée */
    color: #57534e;
    opacity: 0.5;
}

.inv-slot.filled .inv-icon {
    color: #fbbf24;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* Choices */
.choice-btn {
    background: linear-gradient(to right, rgba(41, 37, 36, 0.9), rgba(28, 25, 23, 0.9));
    border: 1px solid #57534e;
    padding: 1.25rem;
    width: 100%;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #e7e5e4;
    margin-bottom: 0.75rem;
}

.choice-btn:hover {
    transform: translateX(4px);
    border-color: #fbbf24;
    background: rgba(41, 37, 36, 1);
}

.choice-btn.selected {
    border-color: #10b981;
    background: rgba(6, 78, 59, 0.4);
    box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Décoration */
.vine-deco {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('https://www.transparenttextures.com/patterns/black-scales.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}