/* ==========================================================================
   PromptCraft Custom Styles & Micro-Animations
   ========================================================================== */

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.15), 0 0 1px 1px rgba(139, 92, 246, 0.2);
}

/* Prompt Card Image Zoom */
.prompt-card-img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .prompt-card-img {
  transform: scale(1.05);
}

/* AI Glow Effects */
.glow-text {
  text-shadow: 0 0 25px rgba(139, 92, 246, 0.45);
}

.glow-box-violet {
  box-shadow: 0 0 40px -10px rgba(139, 92, 246, 0.35);
}

/* Prompt Copy Box */
.prompt-box {
  background: #0D121F;
  border: 1px solid #1E293B;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F19;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1E293B;
  color: #F1F5F9;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-info {
  border-left: 4px solid #8B5CF6;
}

/* Pulse animation for live badges */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

.pulse-badge {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Button micro-interactions */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4338CA 100%);
  box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid #334155;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #334155;
  color: #FFFFFF;
  border-color: #475569;
}
