/**
 * Timebits Styles - Development Entry Point
 *
 * This file imports all CSS files in proper order for development.
 * In production, these are bundled into /dist/styles.<APP_VERSION>.min.css
 *
 * Load Order:
 * 1. Signal Design export - tokens, themes, normalize, and foundation styles
 * 2. Components - all component-specific styles
 */

/* =============================================================================
   Foundation
   ============================================================================= */

@import url('generated/signal-design.css');

:root {
  --tb-view-transition-duration: 240ms;
  --tb-view-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(tb-overlay),
  ::view-transition-new(tb-overlay) {
    animation-duration: var(--tb-view-transition-duration);
    animation-timing-function: var(--tb-view-transition-ease);
    mix-blend-mode: normal;
  }

  ::view-transition-old(tb-overlay) {
    animation-name: tb-overlay-exit;
  }

  ::view-transition-new(tb-overlay) {
    animation-name: tb-overlay-enter;
  }
}

.user-menu .sd-ui-dropdown__item[data-notifications-state='blocked'] {
  color: var(--accent-amber, var(--ink));
}

.user-menu .sd-ui-dropdown__item.nav-notify {
  position: relative;
  animation: user-menu-notify-pulse 0.85s ease-in-out 3;
}

.user-menu .sd-ui-dropdown__item.nav-notify::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-grass);
  box-shadow: 0 0 0 3px rgba(109, 207, 90, 0.15);
  transform: translateY(-50%);
  pointer-events: none;
}

.request-recovery {
  box-sizing: border-box;
  width: min(32rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--card-border, var(--sd-color-border-subtle));
  border-radius: 1.5rem;
  color: var(--text-primary, var(--sd-color-text-primary));
  background: var(--sd-color-surface-card);
  box-shadow: var(--card-shadow, var(--sd-elevation-overlay));
}

.request-recovery::backdrop {
  background: rgba(8, 22, 14, 0.58);
  backdrop-filter: blur(0.2rem);
}

.request-recovery__panel {
  padding: clamp(1.5rem, 5vw, 2.25rem);
}

.request-recovery__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-primary, var(--sd-color-accent-primary));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-recovery__title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
}

.request-recovery__description {
  margin: 1rem 0 0;
  color: var(--text-secondary, var(--sd-color-text-secondary));
  line-height: 1.55;
}

.request-recovery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.request-recovery__actions .btn-primary {
  color: var(--bg-dark, var(--sd-color-surface-canvas));
  background: var(--accent-primary, var(--sd-color-accent-primary));
}

.request-recovery__actions .btn-primary:hover {
  background: var(--accent-primary-hover, var(--sd-color-accent-primary));
}

@media (max-width: 30rem) {
  .request-recovery__actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .request-recovery[open] {
    animation: request-recovery-enter 160ms ease-out;
  }
}

@keyframes request-recovery-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }
}

@keyframes user-menu-notify-pulse {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 1px rgba(109, 207, 90, 0.24);
  }
}

@keyframes tb-overlay-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tb-overlay-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}
