/* ============================================================================
   GLOBALS.CSS - Design System Foundation
   Core tokens, resets, and base styles for Atomic Hedge
   ============================================================================ */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */
:root {
  /* ==========================================================================
       COLOR PALETTE - Warm Earth Tones
       Based on: ["#fffcf2","#ccc5b9","#403d39","#252422","#eb5e28"]
       ========================================================================== */

  --color-cream: #e8e4db; /* Darkened from #fffcf2 - primary text */
  --color-stone: #b5b0a5; /* Brightened from #a39e93 - secondary text */
  --color-charcoal: #2d2b29; /* Darkened from #403d39 - elevated surfaces */
  --color-dark: #1a1918; /* Darkened from #252422 - primary bg */
  --color-accent: #eb5e28; /* Keep accent bright for contrast */

  /* Extended Shades - All deeper */
  --color-dark-deep: #121110; /* Deepest - gaps/borders */
  --color-charcoal-light: #3a3836; /* Hover states */
  --color-charcoal-dark: #242221; /* Between dark and charcoal */
  --color-stone-muted: #6b6660; /* Darkened - tertiary text */
  --color-stone-light: #b8b3a9; /* Darkened - subtle highlights */
  --color-cream-dim: #d4d0c7; /* Darkened - secondary highlights */

  /* Accent Variations */
  --color-accent-hover: #d4541f;
  --color-accent-dim: rgba(235, 94, 40, 0.15);
  --color-accent-glow: rgba(235, 94, 40, 0.25);

  /* VOID EMBER - Pure dark void, ember tears through */
  --color-cream: #f0ece4; /* Almost white warm - primary text */
  --color-stone: #7a7870; /* Ash - secondary text */
  --color-charcoal: #1e1e1c; /* Void grey - elevated surfaces */
  --color-dark: #111110; /* True void - primary bg */
  --color-accent: #ff6a2a; /* Hotter ember, pushed neon */

  --color-dark-deep: #080807;
  --color-charcoal-light: #2a2a28;
  --color-charcoal-dark: #181816;
  --color-stone-muted: #504e48;
  --color-stone-light: #9e9c94;
  --color-cream-dim: #d8d4cc;

  --color-accent-hover: #e85a1e;
  --color-accent-dim: rgba(255, 106, 42, 0.15);
  --color-accent-glow: rgba(
    255,
    106,
    42,
    0.35
  ); /* pushed glow for neon effect */

  /* ==========================================================================
       SEMANTIC COLOR MAPPING
       ========================================================================== */

  /* Backgrounds */
  --bg-primary: var(--color-dark); /* Main page background */
  --bg-elevated: var(--color-charcoal); /* Cards, panels */
  --bg-hover: var(--color-charcoal-light); /* Hover states */
  --bg-deep: var(--color-dark-deep); /* Deepest layer, gaps */
  --bg-input: var(--color-dark-deep); /* Input backgrounds */

  /* Foreground/Text */
  --text-primary: var(--color-cream); /* Headings, important */
  --text-secondary: var(--color-stone); /* Body, descriptions */
  --text-muted: var(--color-stone-muted); /* Placeholders, tertiary */
  --text-inverse: var(--color-dark); /* Text on light bg */

  /* Icons - using existing text colors */
  --icon-color: var(--color-stone); /* Default icon color */
  --icon-hover: var(--color-cream); /* Icon hover */
  --icon-muted: var(--color-stone-muted); /* Muted icons */

  /* Accent */
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-hover);
  --accent-muted: var(--color-accent-dim);
  --accent-glow: var(--color-accent-glow);

  /* Borders */
  --border-default: rgba(215, 210, 200, 0.15);
  --border-hover: rgba(215, 210, 200, 0.25);
  --border-strong: rgba(215, 210, 200, 0.4);
  --border-accent: rgba(235, 94, 40, 0.4);

  /* Semantic Colors */
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --error: #ef4444;
  --error-dim: rgba(239, 68, 68, 0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.15);

  /* ==========================================================================
       LEGACY COMPATIBILITY (shadcn/old variable names + hedge page)
       Maps old variable names to new design system
       ========================================================================== */
  --background: var(--bg-primary);
  --foreground: var(--text-primary);
  --card: var(--bg-elevated);
  --card-foreground: var(--text-primary);
  --popover: var(--bg-elevated);
  --popover-foreground: var(--text-primary);
  --primary: var(--accent);
  --primary-foreground: var(--text-primary);
  --secondary: var(--bg-deep);
  --secondary-foreground: var(--text-secondary);
  --muted: var(--bg-deep);
  --muted-foreground: var(--text-muted);
  --destructive: var(--error);
  --destructive-foreground: var(--text-primary);
  --border: var(--border-default);
  --border-subtle: var(--border-default);
  --input: var(--bg-input);
  --ring: var(--accent);
  --radius: var(--radius-md);
  /* Legacy radius values removed — using tighter tokens from design system above */

  /* Hedge page legacy variables */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);
  --spacing-2xl: var(--space-12);

  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-base: var(--text-base);
  --font-size-md: var(--text-md);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);

  --color-success: var(--success);
  --color-danger: var(--error);
  --color-warning: var(--warning);

  /* ==========================================================================
       TYPOGRAPHY
       ========================================================================== */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Consolas", monospace;
  --font-brand: "Orbitron", var(--font-sans);

  /* Font Sizes */
  --text-xs: 0.6875rem; /* 11px */
  --text-sm: 0.75rem; /* 12px */
  --text-base: 0.875rem; /* 14px */
  --text-md: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 2rem; /* 32px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* ==========================================================================
       SPACING
       ========================================================================== */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-32: 8rem; /* 128px */

  /* ==========================================================================
       BORDER RADIUS (Tighter: max 6px)
       ========================================================================== */
  --radius-sm: 0.1875rem; /* 3px */
  --radius-md: 0.25rem; /* 4px */
  --radius-lg: 0.375rem; /* 6px - MAXIMUM */
  --radius-full: 9999px; /* Pills only */

  /* ==========================================================================
       SHADOWS
       ========================================================================== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-dropdown: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* ==========================================================================
       ANIMATION
       ========================================================================== */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 100ms;
  --duration-normal: 150ms;
  --duration-slow: 200ms;
  --duration-slower: 300ms;

  /* ==========================================================================
       LAYOUT
       ========================================================================== */
  --topnav-height: 3.5rem; /* 56px */
  --footer-height: 2rem; /* 32px */
  --mobile-bottom-nav-height: 3.75rem; /* 60px */
  --sidebar-width: 16rem; /* 256px - for admin */
  --container-max: 1200px;
  --container-wide: 1400px;

  /* ==========================================================================
       Z-INDEX SCALE
       ========================================================================== */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
}

/* ============================================================================
   CSS RESET & BASE
   ============================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport for mobile */
}

/* ============================================================================
   TOUCH SCROLLING (iOS momentum)
   ============================================================================ */
@media (hover: none) and (pointer: coarse) {
  .app-main,
  .overflow-auto,
  .overflow-x-auto,
  .overflow-y-auto,
  .grid-item-body {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================================
   TYPOGRAPHY BASE STYLES
   ============================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

h5 {
  font-size: var(--text-md);
}

h6 {
  font-size: var(--text-base);
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

strong,
b {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* ============================================================================
   LINKS
   ============================================================================ */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

a:hover {
  color: var(--text-primary);
}

a.link {
  color: var(--accent);
}

a.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================================================
   SELECTION
   ============================================================================ */
::selection {
  background-color: var(--accent-muted);
  color: var(--text-primary);
}

/* ============================================================================
   SCROLLBAR STYLING
   ============================================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-charcoal);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-charcoal-light);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-charcoal) var(--bg-deep);
}

/* ============================================================================
   FOCUS STYLES
   ============================================================================ */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================================
   CODE/MONOSPACE
   ============================================================================ */
code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.125rem 0.25rem;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

pre {
  padding: var(--space-4);
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* ============================================================================
   LISTS
   ============================================================================ */
ul,
ol {
  list-style: none;
}

/* ============================================================================
   IMAGES
   ============================================================================ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================================
   FORM ELEMENTS BASE
   ============================================================================ */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================================
   TABLE BASE
   ============================================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================================================
   UTILITY CLASSES - Typography
   ============================================================================ */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-md {
  font-size: var(--text-md);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}

.font-normal {
  font-weight: var(--font-normal);
}
.font-medium {
  font-weight: var(--font-medium);
}
.font-semibold {
  font-weight: var(--font-semibold);
}
.font-bold {
  font-weight: var(--font-bold);
}

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

.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.text-accent {
  color: var(--accent);
}
.text-success {
  color: var(--success);
}
.text-error {
  color: var(--error);
}
.text-warning {
  color: var(--warning);
}
.text-info {
  color: var(--info);
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leading-tight {
  line-height: var(--leading-tight);
}
.leading-snug {
  line-height: var(--leading-snug);
}
.leading-normal {
  line-height: var(--leading-normal);
}
.leading-relaxed {
  line-height: var(--leading-relaxed);
}

/* ============================================================================
   UTILITY CLASSES - Spacing
   ============================================================================ */
.m-0 {
  margin: 0;
}
.m-1 {
  margin: var(--space-1);
}
.m-2 {
  margin: var(--space-2);
}
.m-3 {
  margin: var(--space-3);
}
.m-4 {
  margin: var(--space-4);
}
.m-6 {
  margin: var(--space-6);
}
.m-8 {
  margin: var(--space-8);
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--space-1);
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-3 {
  margin-top: var(--space-3);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-1);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-3 {
  margin-bottom: var(--space-3);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-6 {
  margin-bottom: var(--space-6);
}
.mb-8 {
  margin-bottom: var(--space-8);
}

.ml-0 {
  margin-left: 0;
}
.ml-1 {
  margin-left: var(--space-1);
}
.ml-2 {
  margin-left: var(--space-2);
}
.ml-3 {
  margin-left: var(--space-3);
}
.ml-4 {
  margin-left: var(--space-4);
}

.mr-0 {
  margin-right: 0;
}
.mr-1 {
  margin-right: var(--space-1);
}
.mr-2 {
  margin-right: var(--space-2);
}
.mr-3 {
  margin-right: var(--space-3);
}
.mr-4 {
  margin-right: var(--space-4);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: var(--space-1);
}
.p-2 {
  padding: var(--space-2);
}
.p-3 {
  padding: var(--space-3);
}
.p-4 {
  padding: var(--space-4);
}
.p-6 {
  padding: var(--space-6);
}
.p-8 {
  padding: var(--space-8);
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-1 {
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}
.px-2 {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}
.px-3 {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}
.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.px-6 {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.py-1 {
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.py-3 {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* ============================================================================
   UTILITY CLASSES - Layout
   ============================================================================ */
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}

.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}

.gap-0 {
  gap: 0;
}
.gap-1 {
  gap: var(--space-1);
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}

/* ============================================================================
   UTILITY CLASSES - Sizing
   ============================================================================ */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}
.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}
.h-app-viewport {
  height: calc(
    100dvh - var(--topnav-height) -
      var(--app-bottom-ui-height, var(--footer-height))
  );
}
.min-h-app-viewport {
  min-height: calc(
    100dvh - var(--topnav-height) -
      var(--app-bottom-ui-height, var(--footer-height))
  );
}

.max-w-sm {
  max-width: 24rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-full {
  max-width: 100%;
}

/* ============================================================================
   UTILITY CLASSES - Visual
   ============================================================================ */
.bg-primary {
  background-color: var(--bg-primary);
}
.bg-elevated {
  background-color: var(--bg-elevated);
}
.bg-deep {
  background-color: var(--bg-deep);
}
.bg-hover {
  background-color: var(--bg-hover);
}

.border {
  border: 1px solid var(--border-default);
}
.border-t {
  border-top: 1px solid var(--border-default);
}
.border-b {
  border-bottom: 1px solid var(--border-default);
}
.border-l {
  border-left: 1px solid var(--border-default);
}
.border-r {
  border-right: 1px solid var(--border-default);
}
.border-none {
  border: none;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: var(--radius-full);
}
.rounded-none {
  border-radius: 0;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-none {
  box-shadow: none;
}

.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}

.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-100 {
  opacity: 1;
}

/* ============================================================================
   UTILITY CLASSES - Position
   ============================================================================ */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}
.fixed-app-viewport {
  position: fixed;
  top: var(--topnav-height);
  right: 0;
  bottom: var(--app-bottom-ui-height, var(--footer-height));
  left: 0;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.left-0 {
  left: 0;
}
.pb-safe-bottom {
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0));
}

.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}

/* ============================================================================
   UTILITY CLASSES - Cursor & Interaction
   ============================================================================ */
.cursor-pointer {
  cursor: pointer;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.pointer-events-none {
  pointer-events: none;
}

.select-none {
  user-select: none;
}
.select-all {
  user-select: all;
}

/* ============================================================================
   UTILITY CLASSES - Transitions
   ============================================================================ */
.transition {
  transition-property: all;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-default);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-default);
}

.transition-transform {
  transition-property: transform;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-default);
}

.transition-opacity {
  transition-property: opacity;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-default);
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */
@media (max-width: 767px) {
  .sm\:hidden {
    display: none;
  }
  .sm\:block {
    display: block;
  }
  .sm\:flex {
    display: flex;
  }
  .sm\:flex-col {
    flex-direction: column;
  }
  .sm\:text-center {
    text-align: center;
  }
  .sm\:w-full {
    width: 100%;
  }
  .sm\:px-4 {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  .md\:block {
    display: block;
  }
  .md\:flex {
    display: flex;
  }
  .md\:inline-flex {
    display: inline-flex;
  }
  .md\:grid {
    display: grid;
  }
}

@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }
  .lg\:block {
    display: block;
  }
  .lg\:flex {
    display: flex;
  }
  .lg\:inline-flex {
    display: inline-flex;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
