/* =====================================================
   Zyndhux Base Styles
   Scope: Global foundation (no components)
   Purpose:
   - Typography
   - Colors
   - Global behavior
   - Accessibility baseline
   ===================================================== */

/* ===================== ROOT ===================== */

/* ===================== TEXT ===================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--zx-text-primary);
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--zx-text-secondary);
  margin-bottom: 0.75em;
}

small {
  font-size: 0.75rem;
  color: var(--zx-text-muted);
}

/* ===================== LINKS ===================== */
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--zx-maintenance);
  outline-offset: 2px;
}

/* ===================== MEDIA ===================== */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===================== FORMS ===================== */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--zx-maintenance);
  outline-offset: 2px;
}

/* ===================== SELECTION ===================== */
::selection {
  background-color: rgba(59,130,246,0.35);
  color: #fff;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ===================== UTILITIES ===================== */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
