/* Bauhaus Constructivist Modernism Design System for JaldiOrder */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bauhaus-bg: #F0F0F0;
  --bauhaus-black: #121212;
  --bauhaus-red: #D02020;
  --bauhaus-blue: #1040C0;
  --bauhaus-yellow: #F0C020;
  --bauhaus-muted: #E0E0E0;
  --bauhaus-yellow-light: #FFF9C4;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bauhaus-bg);
  color: var(--bauhaus-black);
}

/* Hard Offset Shadows */
.shadow-bauhaus-sm {
  box-shadow: 3px 3px 0px 0px #121212;
}

.shadow-bauhaus {
  box-shadow: 4px 4px 0px 0px #121212;
}

.shadow-bauhaus-md {
  box-shadow: 6px 6px 0px 0px #121212;
}

.shadow-bauhaus-lg {
  box-shadow: 8px 8px 0px 0px #121212;
}

.shadow-bauhaus-red {
  box-shadow: 6px 6px 0px 0px #D02020;
}

.shadow-bauhaus-blue {
  box-shadow: 6px 6px 0px 0px #1040C0;
}

.shadow-bauhaus-yellow {
  box-shadow: 6px 6px 0px 0px #F0C020;
}

/* Tactile Button Press */
.btn-bauhaus {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.btn-bauhaus:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px #121212 !important;
}

/* Card Hover Lift */
.card-bauhaus {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card-bauhaus:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0px 0px #121212;
}

/* Geometric Corner Accents */
.accent-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.accent-triangle-down {
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

/* Dot Grid Backgrounds */
.bg-dot-grid {
  background-image: radial-gradient(#121212 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

.bg-dot-grid-white {
  background-image: radial-gradient(#ffffff 2px, transparent 2px);
  background-size: 20px 20px;
}

.bg-dot-grid-yellow {
  background-image: radial-gradient(#F0C020 2px, transparent 2px);
  background-size: 20px 20px;
}

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

::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-left: 2px solid #121212;
}

::-webkit-scrollbar-thumb {
  background: #121212;
  border: 2px solid #F0F0F0;
}

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

/* ========================================================================= */
/* Subtle Looping Bauhaus Constructivist Animations                         */
/* ========================================================================= */

@keyframes bauhausFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes bauhausRock {
  0%, 100% {
    transform: rotate(10deg) translateY(0);
  }
  50% {
    transform: rotate(16deg) translateY(-5px);
  }
}

@keyframes bauhausPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes bauhausSpinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bauhausNudgeRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes bauhausNudgeDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes iconWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-7deg) scale(1.04);
  }
  75% {
    transform: rotate(7deg) scale(1.04);
  }
}

@keyframes iconHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes liveStatusPing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(208, 32, 32, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(208, 32, 32, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(208, 32, 32, 0);
  }
}

@keyframes subtleBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes subtleShapeBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Animation Utility Classes */
.animate-bauhaus-float {
  animation: bauhausFloat 5.5s ease-in-out infinite;
}

.animate-bauhaus-rock {
  animation: bauhausRock 6.5s ease-in-out infinite;
}

.animate-bauhaus-pulse {
  animation: bauhausPulse 4s ease-in-out infinite;
}

.animate-bauhaus-spin-slow {
  animation: bauhausSpinSlow 24s linear infinite;
}

.animate-icon-nudge-x {
  display: inline-block;
  animation: bauhausNudgeRight 1.8s ease-in-out infinite;
}

.animate-icon-nudge-y {
  display: inline-block;
  animation: bauhausNudgeDown 1.8s ease-in-out infinite;
}

.animate-icon-wiggle {
  display: inline-block;
  animation: iconWiggle 3.2s ease-in-out infinite;
}

.animate-icon-heartbeat {
  display: inline-block;
  animation: iconHeartbeat 2.4s ease-in-out infinite;
}

.animate-live-dot {
  animation: liveStatusPing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-subtle-float {
  animation: subtleBadgeFloat 3.2s ease-in-out infinite;
}

.animate-shape-breath {
  animation: subtleShapeBreath 3s ease-in-out infinite;
}

/* Interactive Hover Acceleration */
.btn-bauhaus:hover .animate-icon-nudge-x {
  animation-duration: 0.7s;
}

.btn-bauhaus:hover .animate-icon-nudge-y {
  animation-duration: 0.7s;
}

.btn-bauhaus:hover .animate-icon-wiggle {
  animation-duration: 0.9s;
}

.btn-bauhaus:hover .animate-icon-heartbeat {
  animation-duration: 0.9s;
}
