/* ==========================================================================
   THE LANDLORE — TACTILE KEYBOARD SHORTCUTS & QUICK EXPLORER (? KEY)
   ========================================================================== */

.shortcuts-dialog {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 32px));
  height: fit-content;
  max-height: 85vh;
  margin: auto;
  border: 1px solid var(--line, #eee4d6);
  border-radius: 16px;
  padding: 28px;
  background: var(--paper, #fffdf9);
  color: var(--ink, #092a49);
  box-shadow: 0 25px 75px rgba(9, 42, 73, 0.25);
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  z-index: 2100;
  animation: dialogPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dialogPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.shortcuts-dialog::backdrop {
  background: rgba(6, 25, 45, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #eee4d6);
}

.shortcuts-header-title {
  display: flex;
  flex-direction: column;
}

.shortcuts-header-title span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral, #cb462e);
}

.shortcuts-header-title h3 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 22px;
  margin: 2px 0 0;
  color: var(--ink, #092a49);
}

.shortcuts-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line, #eee4d6);
  background: var(--cream, #fffaf2);
  color: var(--ink, #092a49);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.shortcuts-close-btn:hover {
  background: var(--coral, #cb462e);
  color: #fff;
  border-color: var(--coral, #cb462e);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--cream, #fffaf2);
  border: 1px solid var(--line, #eee4d6);
  border-radius: 8px;
  font-size: 13.5px;
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shortcut-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--paper, #fffdf9);
  border: 1px solid #d3c7b8;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #092a49);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   DARK MODE ADJUSTMENTS
   -------------------------------------------------------------------------- */
.landlore-dark .shortcuts-dialog {
  background: #0d2238;
  color: #fffdf9;
  border-color: #1e3a54;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.landlore-dark .shortcuts-header-title h3 {
  color: #fffdf9;
}

.landlore-dark .shortcuts-close-btn {
  background: #091a2c;
  border-color: #1e3a54;
  color: #e2ecf5;
}

.landlore-dark .shortcuts-close-btn:hover {
  background: var(--coral, #cb462e);
  color: #fff;
  border-color: var(--coral, #cb462e);
}

.landlore-dark .shortcut-item {
  background: #091a2c;
  border-color: #1e3a54;
  color: #e2ecf5;
}

.landlore-dark .shortcut-keys kbd {
  background: #142a42;
  border-color: #274b6f;
  color: #ffd17b;
}
