@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0a0c14;
  --card-bg: rgba(20, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f3f4f6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphic cards */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  background: rgba(28, 33, 53, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.45);
}

/* Gradient accents */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-btn {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  transition: all 0.25s ease;
}

.gradient-btn:hover {
  opacity: 0.92;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transform: scale(1.02);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sortable drag ghost styling */
.sortable-ghost {
  opacity: 0.4;
  background: rgba(99, 102, 241, 0.2) !important;
  border: 2px dashed rgba(99, 102, 241, 0.6) !important;
  transform: scale(0.98);
}

.sortable-chosen {
  cursor: grabbing !important;
}

.sortable-drag {
  opacity: 0.9;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Pulse animation for live visualizer */
@keyframes equalizer {
  0% { height: 4px; }
  50% { height: 20px; }
  100% { height: 4px; }
}

.eq-bar {
  width: 3px;
  background: #a855f7;
  border-radius: 9999px;
  animation: equalizer 1.2s ease-in-out infinite;
}
.eq-bar:nth-child(1) { animation-delay: 0.1s; }
.eq-bar:nth-child(2) { animation-delay: 0.3s; }
.eq-bar:nth-child(3) { animation-delay: 0.5s; }
.eq-bar:nth-child(4) { animation-delay: 0.2s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }

/* Modal and Drawer transitions */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}
.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Custom range input */
input[type=range] {
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  height: 6px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Toast container */
#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;
  animation: slideInUp 0.3s ease forwards;
}

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

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-scaleIn {
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating Emoji Reactions */
#reaction-particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.floating-emoji-item {
  position: absolute;
  bottom: 50px;
  font-size: 2.4rem;
  user-select: none;
  pointer-events: none;
  animation: floatEmojiUp 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

@keyframes floatEmojiUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translateY(-40px) scale(1.35) rotate(-10deg);
  }
  75% {
    opacity: 0.9;
    transform: translateY(-280px) scale(1.1) rotate(14deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-420px) scale(0.6) rotate(28deg);
  }
}

/* Shoutout Banner */
.shoutout-card {
  animation: shoutoutSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shoutoutSlide {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
