/* Keyboard shortcuts modal */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.shortcuts-content {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.shortcuts-content h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
}

.shortcuts-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.shortcuts-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-item kbd {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(225, 6, 0, 0.3);
}

.shortcut-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Keyboard shortcut hint */
.shortcuts-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.shortcuts-hint kbd {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}

.shortcuts-hint button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.shortcuts-hint button:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  
  .shortcuts-hint {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}


/* =========================================================
   Subtle Floating Shortcut Button
   ========================================================= */
.floating-shortcut-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9998; /* Just below the modal overlay */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  font-size: 0.95rem;
}

.floating-shortcut-btn:hover {
  background: rgba(30, 30, 35, 0.9);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.2);
}

.floating-shortcut-btn kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

/* Hide the shortcut hint entirely on mobile, 
   since mobile users don't have physical keyboards! */
@media (max-width: 768px) {
  .floating-shortcut-btn {
    display: none;
  }
}