/* Accessibility Widget - Wix/Enable style floating bar */
.a11y-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  font-family: "Assistant", sans-serif;
}

.a11y-toggle {
  display: none;
}

.a11y-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(140, 43, 238, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.a11y-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(140, 43, 238, 0.5);
}

.a11y-btn svg {
  width: 28px;
  height: 28px;
}

.a11y-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 280px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none;
}

.a11y-toggle:checked ~ .a11y-panel {
  display: block;
}

.a11y-panel h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.05em;
}

.a11y-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--white-80);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.a11y-option:hover {
  color: var(--white);
}

.a11y-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.a11y-external {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.a11y-external a {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}

.a11y-external a:hover {
  text-decoration: underline;
}

/* Accessibility mode classes - applied via JS */
html.a11y-large-font {
  font-size: 118%;
}

html.a11y-high-contrast {
  --white-40: rgba(255,255,255,0.9);
  --white-50: rgba(255,255,255,0.95);
  --white-60: rgba(255,255,255,1);
  --white-70: rgba(255,255,255,1);
  --white-80: rgba(255,255,255,1);
  --white-90: rgba(255,255,255,1);
  --bg-dark: #000;
}

html.a11y-highlight-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.a11y-highlight-links a:hover {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
