/*
 * 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.
 */

:root {
  --color-app-bg:       #0b0f1a;
  --color-surface:      #111827;
  --color-surface-raised: #161d2e;
  --color-border:       #1e2633;
  --color-editor-bg:    #1a1f2e;
  --color-text-primary: #e8edf3;
  --color-text-muted:   #8b96a8;
  --color-text-subtle:  #4a5568;
  --color-accent:       #d97a38;
  --color-accent-light: #f0a468;
  --color-accent-bg:    rgba(217, 122, 56, 0.1);
}

/* Wiggle animation for attention-grabbing links */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-4deg); }
  30%  { transform: rotate(4deg); }
  45%  { transform: rotate(-3deg); }
  60%  { transform: rotate(3deg); }
  75%  { transform: rotate(-1deg); }
  90%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.wiggle-periodic {
  display: inline-block;
  animation: wiggle 0.5s ease-in-out;
  animation-iteration-count: 1;
}

/* IDE dark reset — applied to html on dark pages */
html.ide-dark {
  background: var(--color-app-bg);
  color: var(--color-text-primary);
}

html.ide-dark body {
  background: var(--color-app-bg);
  color: var(--color-text-primary);
}
