/* ═══════════════════════════════════════════════════════════════════
   GAME-ADDITIONS.CSS — Styles additionnels pour les nouvelles features
   ─────────────────────────────────────────────────────────────────
   À ajouter à la fin de style.css ou à importer séparément
═══════════════════════════════════════════════════════════════════ */

/* ─── Bouton mute/unmute ────────────────────────────────────────── */
#mute-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(138, 106, 58, 0.3);
  color: var(--texte);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s, border-color 0.25s;
  user-select: none;
}

#mute-btn:hover {
  background: rgba(138, 106, 58, 0.2);
  border-color: var(--or);
}

#mute-btn:active {
  transform: scale(0.95);
}

/* ─── Compteur d'objets empilés ────────────────────────────────── */
.slot-count {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  background: rgba(139, 0, 0, 0.85);
  color: var(--blanc);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  border: 1px solid var(--rouge-vif);
  line-height: 1;
  pointer-events: none;
}

/* ─── Objets cliquables (avec onUse) ──────────────────────────── */
.inv-slot[style*="cursor: pointer"] {
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.inv-slot[style*="cursor: pointer"]:hover {
  background: rgba(138, 106, 58, 0.15);
  border-color: var(--or);
  transform: translateY(-2px);
}

.inv-slot[style*="cursor: pointer"]:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL D'AFFICHAGE D'IMAGES
═══════════════════════════════════════════════════════════════════ */

#image-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

#image-modal-content {
  position: relative;
  max-width: min(90vw, 800px);
  max-height: 90vh;
  background: var(--noir-2);
  border: 1px solid var(--or);
  border-top: 2px solid var(--or);
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
  animation: textReveal 0.3s ease;
}

#image-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--or);
  color: var(--texte);
  font-size: 1.2rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#image-modal-close:hover {
  background: rgba(139, 0, 0, 0.3);
  border-color: var(--rouge-vif);
  color: var(--blanc);
}

#image-modal-img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(138, 106, 58, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Animation d'apparition */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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