/* Custom styles and micro-animations for BTC Tracker */

:root {
  --btc-orange: #F7931A;
  --btc-orange-glow: rgba(247, 147, 26, 0.25);
  --emerald: #10B981;
  --rose: #F43F5E;
}

/* Custom smooth transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Shimmer animation for the progress bar */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.progress-shimmer {
  background: linear-gradient(
    90deg,
    #F7931A 0%,
    #FFA733 25%,
    #FDE68A 50%,
    #FFA733 75%,
    #F7931A 100%
  );
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* Pulse glow for bitcoin icon */
@keyframes btc-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(247, 147, 26, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(247, 147, 26, 0.75));
  }
}

.btc-glow {
  animation: btc-pulse 3s infinite ease-in-out;
}

/* Glassmorphism effect */
.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Milestones pins on the timeline */
.milestone-pin {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.milestone-pin:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Number counter mono font for fintech clarity */
.font-mono-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* Modal animation */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-in {
  animation: modalIn 0.2s ease-out forwards;
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Custom styling for range sliders */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.25);
}

.dark input[type=range]::-webkit-slider-runnable-track {
  background: rgba(51, 65, 85, 0.6);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  height: 20px;
  width: 20px;
  border-radius: 9999px;
  background: #F7931A;
  box-shadow: 0 0 10px rgba(247, 147, 26, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.dark input[type=range]::-webkit-slider-thumb {
  border: 2px solid #0F172A;
}

input[type=range]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(247, 147, 26, 0.8);
}
