/* Custom fonts */
.fredoka {
  font-family: 'Fredoka One', cursive;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Glass morphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Mirror effect for camera */
.mirror {
  transform: scaleX(-1);
}

/* Capture button */
.capture-button {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 100%);
  color: white;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.capture-button:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.capture-button:active {
  transform: translateX(-50%) scale(0.95);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.8);
  }
}

/* Flash effect */
.flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  animation: flash 0.2s ease-out;
  pointer-events: none;
}

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

/* Prompt input */
.prompt-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: none;
}

.prompt-input:focus {
  outline: none;
  border-color: #FF6B9D;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Suggestion chips */
.suggestion-chip {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.suggestion-chip:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

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

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

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #8B5CF6;
  border: 2px solid #8B5CF6;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #8B5CF6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-gradient {
  background: linear-gradient(135deg, #FF6B9D 0%, #8B5CF6 50%, #10B981 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  animation: gradient-shift 3s ease infinite;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 107, 157, 0.6);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Spinner */
.spinner {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border: 4px solid rgba(255, 107, 157, 0.2);
  border-top: 4px solid #FF6B9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Confidence bar */
.confidence-bar {
  width: 100%;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.confidence-fill.wiggle {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: scaleY(1); }
  25% { transform: scaleY(1.1); }
  50% { transform: scaleY(0.9); }
  75% { transform: scaleY(1.05); }
}

/* Confetti */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -10px;
  animation: confetti-fall 3s linear forwards;
  z-index: 1000;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .capture-button {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .suggestion-chip {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}