/* Pure Flat Minimalist Styles (No Gradients, High Contrast, Web Interface Guidelines) */

/* Explicit transitions for buttons and theme toggles */
button, a, input, .transition-theme {
  transition-property: background-color, border-color, color, opacity;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@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;
  }
}

/* Accessible focus ring on keyboard interaction */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Flat Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 2px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #27272a;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Tabular numbers for dates and metrics */
.font-tabular {
  font-variant-numeric: tabular-nums;
}

/* Clean badge styling: never break words inside a badge */
.tech-badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  unicode-bidi: isolate;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .tech-badge {
  direction: ltr;
}
