/* DevPulse Landing Page - Custom Animations & Utilities */
/* Tailwind v4 handles base styles, this adds custom animations */

/* Hide scrollbar for tabs */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Custom scrollbar for main page */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6e7681;
}

/* Selection */
::selection {
  background: rgba(88, 166, 255, 0.3);
  color: #ffffff;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Simulator tab active state */
.sim-tab-btn.active {
  background: #21262d;
  color: #58a6ff;
  border-color: #30363d;
}

/* Simulator content animation */
#simulator-body > div {
  animation: fadeIn 0.3s ease-out forwards;
}

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

/* Discord embed hover */
.discord-embed {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.discord-embed:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Command card hover animation */
.command-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.command-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Gradient text shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Pulse dot animation */
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Float animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Typing cursor */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Navbar scrolled state */
.navbar-scrolled {
  border-bottom-color: #21262d !important;
  background-color: rgba(13, 17, 23, 0.92) !important;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature card icon animation */
.feature-icon-wrapper {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

/* Terminal line hover */
.terminal-line {
  transition: background 0.15s ease;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
}
.terminal-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Copy button feedback */
.copy-success {
  color: #3fb950 !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Body overflow */
body {
  overflow-x: hidden;
}

/* Z-index layering */
.z-background {
  z-index: 0;
}
.z-content {
  z-index: 10;
}
.z-navbar {
  z-index: 50;
}
.z-modal {
  z-index: 100;
}
