/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Use Inter as the default font family */
html,
body {
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Scrollbar — adapts to light/dark mode
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Light mode scrollbar */
::-webkit-scrollbar-track {
  background: #fafafa;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track,
.dark::-webkit-scrollbar-track {
  background: #09090b;
}
.dark ::-webkit-scrollbar-thumb,
.dark::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb:hover,
.dark::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Selection color — uses accent via var() */
::selection {
  background: color-mix(in srgb, var(--color-accent-500) 30%, transparent);
  color: var(--color-gray-950);
}

/* ============================================
   Animated Gradient Background (login hero)
   Adapts to light/dark via CSS variables
   ============================================ */
.animated-gradient-bg {
  /* Always dark regardless of light/dark mode — hero should be dramatic */
  background: linear-gradient(
    -45deg,
    #09090b,
    color-mix(in srgb, var(--color-accent-500) 15%, #09090b),
    color-mix(in srgb, var(--color-accent-500) 10%, #18181b),
    color-mix(in srgb, var(--color-accent-500) 18%, #09090b),
    color-mix(in srgb, var(--color-accent-500) 12%, #18181b),
    #18181b,
    color-mix(in srgb, var(--color-accent-500) 10%, #18181b),
    #09090b
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating orbs for extra visual interest — uses accent color */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.gradient-orb-1 {
  width: 500px;
  height: 500px;
  background: color-mix(in srgb, var(--color-accent-500) 50%, transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 450px;
  height: 450px;
  background: color-mix(in srgb, var(--color-accent-600) 40%, transparent);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.gradient-orb-3 {
  width: 350px;
  height: 350px;
  background: color-mix(in srgb, var(--color-accent-400) 35%, transparent);
  top: 29%;
  right: 14%;
  animation-delay: -10s;
}

.gradient-orb-4 {
  width: 300px;
  height: 300px;
  background: color-mix(in srgb, var(--color-accent-700) 35%, transparent);
  bottom: 30%;
  left: 10%;
  animation-delay: -15s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -40px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(-40px, -30px) scale(1.05);
  }
}

/* ============================================
   Pill Scatter Animation (hero)
   ============================================ */
.pill-scatter-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.pill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ============================================
   Form Inputs — consistent padding + dark mode
   ============================================ */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='tel'],
input[type='url'],
input[type='search'],
input[type='date'],
input[type='time'],
input[type='datetime-local'],
textarea,
select {
  padding-left: 16px;
  background-color: var(--color-gray-200);
  border-color: var(--color-gray-400);
  color: var(--color-gray-950);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-gray-500);
}

input[name='question'] {
  width: 100%;
}
