/* ============================================
   GLOBAL-FEATURES.CSS
   Styles pour feedbacks visuels
   ============================================ */

/* ============================================
   FEEDBACK CHANGEMENT DE THÈME
   ============================================ */

.theme-change-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 10000;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.theme-change-feedback.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ============================================
   FEEDBACK RACCOURCI CLAVIER
   ============================================ */

.shortcut-feedback {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.shortcut-feedback.show {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   INDICATEUR "PRESS ? FOR HELP"
   ============================================ */

.shortcuts-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9998;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.shortcuts-hint.show {
  opacity: 1;
  transform: translateY(0);
}

.shortcuts-hint strong {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* ============================================
   STYLE DES TOUCHES DANS LE MODAL
   ============================================ */

.key {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 2px solid #94a3b8;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-align: center;
  min-width: 50px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

[data-theme="dark"] .key {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  border-color: #64748b;
  color: #f1f5f9;
}

/* ============================================
   MODAL RACCOURCIS
   ============================================ */

#shortcutsModal .shortcuts-section {
  margin-bottom: 1.5rem;
}

#shortcutsModal .shortcuts-section:last-child {
  margin-bottom: 0;
}

#shortcutsModal .shortcuts-section h6 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#shortcutsModal .table td {
  padding: 0.5rem;
  vertical-align: middle;
}

#shortcutsModal .table td:first-child {
  width: 80px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .shortcuts-hint {
    bottom: 10px;
    right: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 10px 16px;
  }
  
  .shortcut-feedback {
    top: 60px;
    right: 10px;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  
  .theme-change-feedback {
    font-size: 3rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.shortcuts-hint:hover {
  animation: pulse 1s infinite;
  cursor: pointer;
}

/* Conteneur pleine largeur */
.container { max-width: 100% !important; padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 768px) { .container { padding-left: 0.75rem !important; padding-right: 0.75rem !important; } }
@media (min-width: 1200px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
