/* ══════════════════════════════════════════════════════════════════════════
   Homepage Advanced Features Styles (2026-10)
   Keyboard navigation hints, quick-jump menu, what's new spotlight
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. KEYBOARD NAVIGATION HINTS ── */

.keyboard-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-glass-solid);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 16px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  z-index: 100;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.keyboard-hint.show {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .keyboard-hint {
    transition: none;
  }
}

/* ── 2. QUICK-JUMP SECTION MENU ── */

.quick-jump-menu {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 45;
  background: var(--color-glass-solid);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 12px;
  width: 240px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

.quick-jump-menu.open {
  max-height: 500px;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.quick-jump-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  padding: 8px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.quick-jump-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-jump-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 150ms ease;
  color: var(--color-gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: left;
}

.quick-jump-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.quick-jump-icon {
  font-size: 1.1rem;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.quick-jump-label {
  flex: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.quick-jump-shortcut {
  font-size: 0.65rem;
  color: rgba(242, 202, 80, 0.85);
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .quick-jump-menu {
    display: none;
  }
}

/* ── 3. WHAT'S NEW FEATURE SPOTLIGHT ── */

.spotlight-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.spotlight-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.spotlight-card {
  position: relative;
  z-index: 10;
  background: var(--color-paper);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: spotlightCardIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spotlightCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.spotlight-header {
  margin-bottom: 32px;
  text-align: center;
}

.spotlight-header h2 {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-gold-light);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.spotlight-header p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.7);
  margin: 0;
}

.spotlight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .spotlight-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spotlight-card {
    padding: 24px;
  }
}

.spotlight-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  opacity: 0;
  animation: spotlightFeatureIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.spotlight-icon {
  font-size: 1.8rem;
  display: block;
}

.spotlight-title {
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gold-light);
  line-height: 1.3;
}

.spotlight-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(242, 202, 80, 0.7);
  line-height: 1.4;
}

.spotlight-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.spotlight-close {
  background: var(--color-gold-light);
  border: none;
  color: var(--color-paper);
  padding: 12px 32px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.spotlight-close:hover {
  background: var(--color-accent-highlight);
  transform: scale(1.05);
}

.spotlight-close:active {
  transform: scale(0.98);
}

/* ── KEYBOARD ARIA LABELS ── */
/* Hidden but read by screen readers */
[aria-label] {
  /* Screen readers will announce these on focus */
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-modal,
  .spotlight-card,
  .spotlight-feature,
  .quick-jump-menu,
  .quick-jump-item {
    animation: none !important;
    transition: none !important;
  }
}
