/* ============================================================
   VALHALLA OTAKU — Styles pour la modale
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 550px;
  width: 90%;
  background: var(--ink);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dust);
  transition: color var(--transition);
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  background: var(--ash);
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--ash);
  color: var(--dust);
}

.modal-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.25rem;
}

.modal-anime {
  text-align: center;
  font-size: 0.75rem;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.modal-story {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fade);
  line-height: 1.75;
  text-align: center;
}

.modal-divider {
  width: 50px;
  height: 1px;
  background: var(--gold-dim);
  margin: 1rem auto;
}

/* ===== STYLES POUR LA MODALE DES CITATIONS ===== */
.modal-quote-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.modal-quote-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--parchment);
  line-height: 1.7;
  text-align: center;
  margin: 1rem 0;
}

.modal-context {
  font-size: 0.7rem;
  color: var(--dust);
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 500px) {
  .modal-content {
    padding: 1.5rem;
  }
  .modal-name {
    font-size: 1.3rem;
  }
  .modal-photo {
    width: 120px;
    height: 120px;
  }
  .modal-photo-placeholder {
    font-size: 2.5rem;
  }
  .modal-quote-text {
    font-size: 0.9rem;
  }
  .modal-context {
    font-size: 0.6rem;
  }
}