/* Converty - Modern Minimalist Design System */

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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(82, 82, 91, 0.5);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(113, 113, 122, 0.8);
}

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

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* Swap Button Rotation */
.swap-rotate {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swap-rotate:active {
  transform: rotate(180deg) scale(0.92);
}

/* Smooth Focus Rings */
.focus-ring {
  @apply focus:outline-none focus:ring-2 focus:ring-indigo-500/30 dark:focus:ring-indigo-400/30 focus:border-indigo-500 dark:focus:border-indigo-400 transition-all duration-150;
}

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

/* Input large typography */
.convert-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Chip transition */
.chip-btn {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-btn:hover {
  transform: translateY(-1px);
}

.chip-btn:active {
  transform: translateY(0);
}

/* Dropdown list animation */
.animate-scale-in {
  animation: scaleIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tooltip fade */
.tooltip-enter {
  animation: tooltipFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Subtle glow */
.glow-accent {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.15);
}

.dark .glow-accent {
  box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.22);
}
