/* ==========================================================================
   Fotonet Gallery Design Tokens (v3: Apple x LM Studio x DeepSeek x Figma)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg: #F5F5F7;
  --bg-subtle: #EEEEF2;
  --card: #FFFFFF;
  --card-elevated: #FFFFFF;
  --border: #E8E8ED;
  --border-subtle: #DFDFE5;
  --border-focus: #4D6BFE;

  /* Typography Colors */
  --ink: #111113;
  --ink-secondary: #515158;
  --gray: #86868B;
  --gray-light: #AEAEB2;
  --track: #F2F2F7;
  --peer-bar: #C9CDD6;

  /* Brand / Accents */
  --accent: #4D6BFE;
  --accent-hover: #3D58D6;
  --accent-light: #EBF0FF;
  --accent-subtle: rgba(77, 107, 254, 0.08);
  --accent-up: #97A8FF;
  --accent-glow: rgba(77, 107, 254, 0.25);
  --violet: #7C5CFC;
  --violet-light: #F2EDFF;
  --emerald: #10B981;
  --emerald-subtle: rgba(16, 185, 129, 0.1);
  --amber: #F59E0B;
  --rose: #EF4444;

  /* Dark Topbar Tokens (LM Studio) */
  --topbar: #0A0A0C;
  --topbar-surface: #141418;
  --chip-dk-bg: #1C1C20;
  --chip-dk-fg: #B9B9C2;
  --topbar-border: rgba(255, 255, 255, 0.08);

  /* Geometry & Radiuses */
  --r-card: 26px;
  --r-panel: 16px;
  --r-pill: 9999px;
  --r-btn: 12px;
  --r-input: 10px;

  /* Shadows (Apple Layered Soft Shadows) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.09), 0 6px 16px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 24px rgba(77, 107, 254, 0.35);

  /* Typography Stacks */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: 150ms var(--ease-spring);
  --transition-normal: 250ms var(--ease-spring);
  --transition-slow: 400ms var(--ease-spring);

  /* Keyframe Timers */
  --dur-shimmer: 1.8s;
  --dur-graph: 1.2s;
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(77, 107, 254, 0.03) 0%, transparent 60%);
}

/* -------------------------------------------------- Animation Keyframes --- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes growBarX {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes countUpIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(77, 107, 254, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(77, 107, 254, 0);
  }
}

/* Skeleton Loading Utility */
.skeleton {
  background: linear-gradient(90deg, #EBEBED 25%, #F7F7FA 37%, #EBEBED 63%);
  background-size: 200% 100%;
  animation: shimmer var(--dur-shimmer) infinite ease-in-out;
  border-radius: 6px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
  border-color: transparent !important;
}

.skeleton * {
  visibility: hidden;
}



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

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-light);
  border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray);
}
