/* ═══════════════════════════════
   INFO MODAL — reusable dark info dialog
   ═══════════════════════════════ */

/* Trigger "I" button (injected into header actions) */
.info-trigger {
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}
.info-trigger:hover {
  border-color: rgba(53, 184, 255, 0.55);
  color: var(--accent-strong);
  background: var(--panel-soft);
}

/* Backdrop reuses .modal-backdrop tokens but scoped for animation */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: infoFade 0.18s ease;
}
.info-modal-backdrop.is-hidden { display: none; }

.info-modal-window {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
  animation: infoRise 0.2s ease;
}

.info-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.info-modal-header .eyebrow { margin: 0 0 4px; }
.info-modal-header h2 { margin: 0; font-size: 24px; line-height: 1.15; }

/* Language menu (segmented pills) */
.info-lang-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.info-lang-option {
  flex: 1 1 auto;
  min-width: 56px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.info-lang-option:hover { color: var(--text); background: var(--panel-soft); }
.info-lang-option.is-active {
  background: var(--accent-solid);
  color: #fff;
}

/* Body content */
.info-modal-body { display: grid; gap: 12px; }
.info-modal-body h3 {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--accent-strong);
}
.info-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 560px) {
  .info-modal-backdrop { padding: 12px; }
  .info-modal-window {
    padding: 18px;
    gap: 14px;
    max-height: 92vh;
    border-radius: var(--radius);
  }
  .info-modal-header h2 { font-size: 20px; }
  .info-lang-option { min-width: 0; flex: 1 1 22%; }
}

@keyframes infoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes infoRise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .info-modal-backdrop, .info-modal-window { animation: none; }
}
