/* Custom CSS styles for NEWRAL MEDIA */

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

::-webkit-scrollbar-track {
  background: #090a15;
}

::-webkit-scrollbar-thumb {
  background: #1e2238;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3730a3;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(15, 17, 35, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Search Mode Active Button */
.search-mode-btn.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Filter Pill Active State */
.filter-pill.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #6366f1;
}

/* Video Card Hover & Transition */
.video-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(124, 58, 237, 0.2);
}

/* Shake animation for incorrect PIN */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* PIN Dots Active state */
.pin-dot.filled,
.set-pin-dot.filled {
  background-color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transform: scale(1.15);
}

/* Toast animation */
@keyframes toastIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

/* Modal Open Transitions */
.modal-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-active > div {
  transform: scale(1) !important;
}

/* Shimmer animation for empty thumbnail */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-gradient {
  background: linear-gradient(90deg, #13152c 25%, #24294b 50%, #13152c 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}
