/**
 * VICTIM-EDITOR.CSS
 * Styles pour l'éditeur de photo post-partie
 */

.victim-editor-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.editor-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-family: 'Comic Sans MS', cursive;
}

.editor-container h2 {
  color: #ff6b6b;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  font-size: 24px;
}

.editor-workspace {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#victim-canvas {
  border: 3px solid #ff6b6b;
  border-radius: 10px;
  background: #333;
  cursor: crosshair;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(255,107,107,0.3);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.stickers-panel {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.stickers-panel h3 {
  color: #4ecdc4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  justify-items: center;
}

.sticker {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.1);
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sticker:hover {
  transform: scale(1.1);
  border-color: #ff6b6b;
  box-shadow: 0 4px 20px rgba(255,107,107,0.5);
}

.sticker:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.editor-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.editor-instructions {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
  color: #4ecdc4;
  font-size: 14px;
  line-height: 1.4;
}

.editor-instructions strong {
  color: #ff6b6b;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.editor-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Comic Sans MS', cursive;
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.editor-btn.primary {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
}

.editor-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78,205,196,0.4);
}

.editor-btn.secondary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.editor-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.editor-btn:active {
  transform: translateY(0);
}

.funny-phrase-display {
  margin-top: 20px;
  text-align: center;
}

.phrase-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 15px 25px;
  margin: 10px auto;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}

.phrase-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #764ba2;
}

.phrase-bubble p {
  margin: 0;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
  .editor-container {
    padding: 10px;
  }
  
  .editor-container h2 {
    font-size: 20px;
  }
  
  .stickers-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .sticker {
    width: 50px;
    height: 50px;
  }
  
  .editor-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .editor-controls {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .editor-btn {
    width: 180px;
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .stickers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .editor-instructions {
    font-size: 12px;
    padding: 10px;
  }
}

/* Animations */
@keyframes stickerPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sticker-added {
  animation: stickerPop 0.5s ease;
}

/* Drag feedback */
.sticker.dragging {
  opacity: 0.7;
  transform: rotate(5deg);
}

#victim-canvas.drag-over {
  border-color: #4ecdc4;
  box-shadow: 0 0 20px rgba(78,205,196,0.6);
}