/* Styles globaux et animations pour Number Mastermind */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700;800&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --color-correct: #10B981;
  --color-present: #F59E0B;
  --color-absent: #475569;
  --color-bg-dark: #0B0F19;
  --color-card-dark: #131B2E;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: #F8FAFC;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.1);
}

/* Animations de Tuiles */
@keyframes tilePop {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tileFlip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

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

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes winnerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.8), 0 0 60px rgba(245, 158, 11, 0.6);
  }
}

.animate-pop {
  animation: tilePop 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-flip {
  animation: tileFlip 0.4s ease-in-out forwards;
}

.animate-slide-up {
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-winner {
  animation: winnerGlow 2s infinite;
}

.animate-live-pulse {
  animation: pulseLive 2s infinite ease-in-out;
}

/* Tuiles de chiffres */
.num-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  border-radius: 0.5rem;
  user-select: none;
  transition: all 0.2s ease;
}

.tile-empty {
  background-color: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(71, 85, 105, 0.4);
  color: #94A3B8;
}

.tile-active {
  background-color: rgba(30, 41, 59, 0.9);
  border: 2px solid #38BDF8;
  color: #F8FAFC;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.tile-correct {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: 1px solid #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.tile-present {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  border: 1px solid #FBBF24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.tile-absent {
  background-color: #334155;
  color: #94A3B8;
  border: 1px solid #475569;
}

/* Clavier virtuel */
.key-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  transition: transform 0.08s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.key-btn:active {
  transform: scale(0.92);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

