/* System Design System for ClaudeMax */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #ff6b00; /* Primary brand orange */
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  
  --base: #FAF9F6; /* Warm premium alabaster/white */
  --surface: #FFFFFF;
  --panel: #F4F3EF;
  --border-color: rgba(234, 88, 12, 0.08); /* Subtle orange tinted border */
}

/* Subtle noise texture overlay */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
}

/* Grid background pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
}

/* Radar sweep animation in orange */
@keyframes sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.radar-sweep {
  animation: sweep 6s linear infinite;
  background: conic-gradient(from 0deg, transparent 70%, rgba(255, 107, 0, 0.04) 95%, rgba(255, 107, 0, 0.15) 100%);
}

/* Tabular nums for telemetry counters */
.tabular-data {
  font-variant-numeric: tabular-nums;
}

/* Hide scrollbar for internal dashboard windows */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scroll Animation classes */
@keyframes animationIn {
  0% {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.animate-on-scroll {
  animation-play-state: paused !important;
}
.animate-on-scroll.animate {
  animation-play-state: running !important;
}

/* Border Gradient Utility */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* Custom glow utility in orange */
.shadow-glow-orange {
  box-shadow: 0 0 50px -10px rgba(255, 107, 0, 0.18);
}
.shadow-glow-orange-lg {
  box-shadow: 0 0 80px -5px rgba(255, 107, 0, 0.25);
}

/* Floating mascot animation (up and down fluidly) */
@keyframes mascot-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-mascot-float {
  animation: mascot-float 5s ease-in-out infinite;
}

/* Eye blinking animation */
@keyframes eye-blink {
  0%, 95%, 100% {
    transform: scaleY(1);
  }
  97.5% {
    transform: scaleY(0.1);
  }
}

.animate-eye-blink {
  animation: eye-blink 4s ease-in-out infinite;
  transform-origin: center;
}

/* Soft scale pulse for interactive hover */
@keyframes hover-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
.hover-pulse:hover {
  animation: hover-pulse 2s ease-in-out infinite;
}

/* Connection speed simulation */
@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}
.anim-dash-line {
  stroke-dasharray: 8 4;
  animation: dash 2s linear infinite;
}

/* Mascot sticker style neon glow */
.mascot-glow {
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.35)) drop-shadow(0 0 25px rgba(255, 107, 0, 0.15));
}

/* Animated Orange Button styles */
.button-orange-animated {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  background: radial-gradient(65.28% 65.28% at 50% 100%, rgba(255, 107, 0, 0.8) 0%, rgba(255, 107, 0, 0) 100%), linear-gradient(0deg, #ea580c, #ea580c);
  border-radius: 0.75rem;
  border: none;
  outline: none;
  padding: 12px 24px;
  min-height: 48px;
  min-width: 180px;
}
.button-orange-animated::before, .button-orange-animated::after {
  content: "";
  position: absolute;
  transition: all 0.5s ease-in-out;
  z-index: 0;
}
.button-orange-animated::before {
  inset: 1px;
  background: linear-gradient(177.95deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: calc(0.75rem - 1px);
}
.button-orange-animated::after {
  inset: 2px;
  background: radial-gradient(65.28% 65.28% at 50% 100%, rgba(255, 107, 0, 0.8) 0%, rgba(255, 107, 0, 0) 100%), linear-gradient(0deg, #ea580c, #ea580c);
  border-radius: calc(0.75rem - 2px);
}
.button-orange-animated:active { transform: scale(0.95); }

.points_wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.points_wrapper .point {
  bottom: -10px;
  position: absolute;
  animation: floating-points infinite ease-in-out;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
}
@keyframes floating-points {
  0% { transform: translateY(0); }
  85% { opacity: 0; }
  100% { transform: translateY(-55px); opacity: 0; }
}
.points_wrapper .point:nth-child(1) { left: 10%; opacity: 1; animation-duration: 2.35s; animation-delay: 0.2s; }
.points_wrapper .point:nth-child(2) { left: 30%; opacity: 0.7; animation-duration: 2.5s; animation-delay: 0.5s; }
.points_wrapper .point:nth-child(3) { left: 25%; opacity: 0.8; animation-duration: 2.2s; animation-delay: 0.1s; }
.points_wrapper .point:nth-child(4) { left: 44%; opacity: 0.6; animation-duration: 2.05s; }
.points_wrapper .point:nth-child(5) { left: 50%; opacity: 1; animation-duration: 1.9s; }
.points_wrapper .point:nth-child(6) { left: 75%; opacity: 0.5; animation-duration: 1.5s; animation-delay: 1.5s; }
.points_wrapper .point:nth-child(7) { left: 88%; opacity: 0.9; animation-duration: 2.2s; animation-delay: 0.2s; }
.points_wrapper .point:nth-child(8) { left: 58%; opacity: 0.8; animation-duration: 2.25s; animation-delay: 0.2s; }
.points_wrapper .point:nth-child(9) { left: 98%; opacity: 0.6; animation-duration: 2.6s; animation-delay: 0.1s; }
.points_wrapper .point:nth-child(10) { left: 65%; opacity: 1; animation-duration: 2.5s; animation-delay: 0.2s; }

.inner {
  z-index: 2;
  gap: 8px;
  position: relative;
  width: 100%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease-in-out;
}
.inner svg.icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  stroke: white;
  fill: none;
}
.button-orange-animated:hover svg.icon { transform: translateX(3px); }
.button-orange-animated:hover svg.icon path { animation: button-dash-anim 0.8s linear forwards; }
@keyframes button-dash-anim {
  0% { stroke-dasharray: 0, 20; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 10, 10; stroke-dashoffset: -5; }
  100% { stroke-dasharray: 20, 0; stroke-dashoffset: -10; }
}

