/* ==========================================================================
   iyou_baba — Sovereign Sticker Vault & Curation Desk Stylesheet
   Accent: blue (#3B82F6 / blue-500)
   ========================================================================== */

:root {
  --baba-accent: #3B82F6;
  --baba-accent-hover: #2563EB;
  --baba-accent-light: #EFF6FF;
  --baba-accent-dark: #1D4ED8;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* Subtle Grid Background */
.bg-mesh-grid {
  background-image: radial-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.dark .bg-mesh-grid {
  background-image: radial-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Sticker Card Hover Animation */
.sticker-card {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.sticker-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Konva Canvas Container */
#sandbox-container {
  touch-action: none;
  background-color: #F8FAFC;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dark #sandbox-container {
  background-color: #0F172A;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.8) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Jolly Baba Ribbon for Elevated Curators */
.jolly-ribbon {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  border-bottom: 2px solid #F59E0B;
}

/* Pulsing Badge Indicator */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
.animate-status-pulse {
  animation: subtle-pulse 2s infinite ease-in-out;
}

/* ==========================================================================
   Motion Hygiene & Animation Pause Controls
   ========================================================================== */
body.baba-motion-paused *,
body.baba-motion-paused *::before,
body.baba-motion-paused *::after {
  animation-play-state: paused !important;
}

body.baba-motion-paused img[src*=".gif"],
body.baba-motion-paused img[src*=".webp"],
body.baba-motion-paused .baba-animated-badge {
  filter: grayscale(35%) opacity(0.85);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  img[src*=".gif"],
  img[src*=".webp"] {
    filter: grayscale(25%);
  }
}
