/* HOOT LINX - BRAND FOUNDATION */
.hl-theme {
  --hl-color-canvas: #06111F;
  --hl-color-surface: #071321;
  --hl-color-surface-raised: #102236;
  --hl-color-divider: #243B53;
  --hl-color-input-border: #647B95;
  
  --hl-color-text-primary: #F4F7FC;
  --hl-color-text-secondary: #A8B7CC;
  --hl-color-text-inverse: #06111F;
  
  --hl-color-accent-cyan: #35D3F2;
  --hl-color-accent-blue: #2563EB;
  
  --hl-color-success: #10B981;
  --hl-color-warning: #F59E0B;
  --hl-color-error: #F87171;
  --hl-color-info: #60A5FA;

  --hl-font-sans: 'Plus Jakarta Sans', sans-serif;
  --hl-font-mono: 'Space Mono', monospace;

  --hl-typo-display-size: clamp(2rem, 5vw + 1rem, 3rem);
  --hl-typo-display-weight: 700;
  --hl-typo-display-lh: 1.1;

  --hl-typo-page-title-size: 2.25rem;
  --hl-typo-page-title-weight: 700;
  --hl-typo-page-title-lh: 1.2;

  --hl-typo-section-title-size: 1.5rem;
  --hl-typo-section-title-weight: 600;
  --hl-typo-section-title-lh: 1.3;

  --hl-typo-card-title-size: 1.125rem;
  --hl-typo-card-title-weight: 600;
  --hl-typo-card-title-lh: 1.4;

  --hl-typo-body-size: 1rem;
  --hl-typo-body-weight: 400;
  --hl-typo-body-lh: 1.5;

  --hl-typo-secondary-size: 0.875rem;
  --hl-typo-secondary-weight: 400;
  --hl-typo-secondary-lh: 1.5;

  --hl-typo-label-size: 0.875rem;
  --hl-typo-label-weight: 600;
  --hl-typo-label-lh: 1;

  --hl-typo-caption-size: 0.75rem;
  --hl-typo-caption-weight: 500;
  --hl-typo-caption-lh: 1.4;

  --hl-typo-technical-size: 0.875rem;
  --hl-typo-technical-weight: 400;
  --hl-typo-technical-lh: 1.5;

  --hl-radius-input: 10px;
  --hl-radius-panel: 16px;

  --hl-space-1: 4px;
  --hl-space-2: 8px;
  --hl-space-3: 12px;
  --hl-space-4: 16px;
  --hl-space-5: 20px;
  --hl-space-6: 24px;
  --hl-space-8: 32px;
  --hl-space-10: 40px;
  --hl-space-12: 48px;

  --hl-motion-button: 150ms ease;
  --hl-motion-transition: 150ms ease;
  --hl-motion-reveal: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  
  color: var(--hl-color-text-primary);
  font-family: var(--hl-font-sans);
  background-color: var(--hl-color-canvas);
  overflow-wrap: break-word;
}

.hl-theme, .hl-theme *, .hl-theme *::before, .hl-theme *::after {
  box-sizing: border-box;
}

/* Reduced Motion Infrastructure */
@media (prefers-reduced-motion: reduce) {
  .hl-theme, .hl-theme *, .hl-theme *::before, .hl-theme *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

[data-motion="paused"] .hl-theme, [data-motion="paused"] .hl-theme *,
[data-reduced-motion="true"] .hl-theme, [data-reduced-motion="true"] .hl-theme *,
.hl-theme[data-motion="paused"], .hl-theme[data-motion="paused"] *,
.hl-theme [data-motion="paused"], .hl-theme [data-motion="paused"] *,
.hl-theme[data-reduced-motion="true"], .hl-theme[data-reduced-motion="true"] *,
.hl-theme [data-reduced-motion="true"], .hl-theme [data-reduced-motion="true"] * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Surfaces */
.hl-theme .hl-surface {
  background-color: var(--hl-color-surface);
  border: 1px solid var(--hl-color-divider);
  border-radius: var(--hl-radius-panel);
}

.hl-theme .hl-surface-raised {
  background-color: var(--hl-color-surface-raised);
  border: 1px solid var(--hl-color-divider);
  border-radius: var(--hl-radius-panel);
}

/* Typography Roles */
.hl-theme .hl-text-display {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-display-weight);
  font-size: var(--hl-typo-display-size);
  line-height: var(--hl-typo-display-lh);
  letter-spacing: -0.02em;
}

.hl-theme .hl-text-page-title {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-page-title-weight);
  font-size: var(--hl-typo-page-title-size);
  line-height: var(--hl-typo-page-title-lh);
  letter-spacing: -0.01em;
}

.hl-theme .hl-text-section-title {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-section-title-weight);
  font-size: var(--hl-typo-section-title-size);
  line-height: var(--hl-typo-section-title-lh);
}

.hl-theme .hl-text-card-title {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-card-title-weight);
  font-size: var(--hl-typo-card-title-size);
  line-height: var(--hl-typo-card-title-lh);
}

.hl-theme .hl-text-body {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-body-weight);
  font-size: var(--hl-typo-body-size);
  line-height: var(--hl-typo-body-lh);
}

.hl-theme .hl-text-secondary {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-secondary-weight);
  font-size: var(--hl-typo-secondary-size);
  line-height: var(--hl-typo-secondary-lh);
  color: var(--hl-color-text-secondary);
}

.hl-theme .hl-text-label {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-label-weight);
  font-size: var(--hl-typo-label-size);
  line-height: var(--hl-typo-label-lh);
}

.hl-theme .hl-text-caption {
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-caption-weight);
  font-size: var(--hl-typo-caption-size);
  line-height: var(--hl-typo-caption-lh);
  color: var(--hl-color-text-secondary);
}

.hl-theme .hl-text-technical {
  font-family: var(--hl-font-mono);
  font-weight: var(--hl-typo-technical-weight);
  font-size: var(--hl-typo-technical-size);
  line-height: var(--hl-typo-technical-lh);
  color: var(--hl-color-text-secondary);
}

/* Semantic Colors Text (accessible on raised surfaces) */
.hl-theme .hl-text-success { color: var(--hl-color-success); }
.hl-theme .hl-text-error { color: var(--hl-color-error); }
.hl-theme .hl-text-warning { color: var(--hl-color-warning); }
.hl-theme .hl-text-info { color: var(--hl-color-info); }

/* Controls */
.hl-theme .hl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hl-space-3) var(--hl-space-4);
  background-color: var(--hl-color-accent-cyan);
  color: var(--hl-color-text-inverse);
  border-radius: var(--hl-radius-input);
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-label-weight);
  font-size: var(--hl-typo-label-size);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--hl-motion-button), transform var(--hl-motion-button);
  min-height: 44px;
}

.hl-theme .hl-btn-primary:hover {
  background-color: #55E0FF;
}

.hl-theme .hl-btn-primary:active {
  transform: scale(0.98);
}

.hl-theme .hl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hl-space-3) var(--hl-space-4);
  background-color: var(--hl-color-surface-raised);
  color: var(--hl-color-text-primary);
  border-radius: var(--hl-radius-input);
  border: 1px solid var(--hl-color-divider);
  font-family: var(--hl-font-sans);
  font-weight: var(--hl-typo-label-weight);
  font-size: var(--hl-typo-label-size);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--hl-motion-button), border-color var(--hl-motion-button);
  min-height: 44px;
}

.hl-theme .hl-btn-secondary:hover {
  background-color: var(--hl-color-divider);
}

.hl-theme .hl-btn-secondary:active {
  transform: scale(0.98);
}

.hl-theme .hl-input {
  width: 100%;
  display: flex;
  background-color: var(--hl-color-canvas);
  border: 1px solid var(--hl-color-input-border);
  border-radius: var(--hl-radius-input);
  padding: var(--hl-space-3) var(--hl-space-4);
  color: var(--hl-color-text-primary);
  font-family: var(--hl-font-sans);
  font-size: var(--hl-typo-body-size);
  min-height: 44px;
  transition: border-color var(--hl-motion-transition), box-shadow var(--hl-motion-transition);
}

.hl-theme .hl-input[readonly] {
  background-color: var(--hl-color-surface);
}

.hl-theme *:focus-visible {
  outline: 2px solid var(--hl-color-accent-cyan);
  outline-offset: 2px;
}

/* Utilities */
.hl-theme .hl-flex { display: flex; }
.hl-theme .hl-flex-col { display: flex; flex-direction: column; }
.hl-theme .hl-flex-wrap { flex-wrap: wrap; }
.hl-theme .hl-items-center { align-items: center; }
.hl-theme .hl-justify-center { justify-content: center; }
.hl-theme .hl-gap-1 { gap: var(--hl-space-1); }
.hl-theme .hl-gap-2 { gap: var(--hl-space-2); }
.hl-theme .hl-gap-3 { gap: var(--hl-space-3); }
.hl-theme .hl-gap-4 { gap: var(--hl-space-4); }
.hl-theme .hl-gap-6 { gap: var(--hl-space-6); }
.hl-theme .hl-gap-8 { gap: var(--hl-space-8); }
.hl-theme .hl-gap-12 { gap: var(--hl-space-12); }
.hl-theme .hl-p-4 { padding: var(--hl-space-4); }
.hl-theme .hl-p-6 { padding: var(--hl-space-6); }
.hl-theme .hl-p-8 { padding: var(--hl-space-8); }
.hl-theme .hl-mt-2 { margin-top: var(--hl-space-2); }
.hl-theme .hl-mt-4 { margin-top: var(--hl-space-4); }
.hl-theme .hl-mt-6 { margin-top: var(--hl-space-6); }
.hl-theme .hl-mt-8 { margin-top: var(--hl-space-8); }
.hl-theme .hl-mb-2 { margin-bottom: var(--hl-space-2); }
.hl-theme .hl-mb-4 { margin-bottom: var(--hl-space-4); }
.hl-theme .hl-mb-6 { margin-bottom: var(--hl-space-6); }
.hl-theme .hl-mb-8 { margin-bottom: var(--hl-space-8); }
.hl-theme .hl-w-full { width: 100%; }
.hl-theme .hl-block { display: block; }
