/* ==========================================================================
   Over50Dating-Site.com - Accessibility Stylesheet
   Designed for WCAG 2.1 AAA Compliance, Vision Accommodations & Cookie Consent
   ========================================================================== */

/* Font Size Modes */
html[data-font-size="sm"] {
  --base-font-size: 15px;
}

html[data-font-size="md"] {
  --base-font-size: 17px; /* Default */
}

html[data-font-size="lg"] {
  --base-font-size: 19px; /* Enhanced for readability */
}

html[data-font-size="xl"] {
  --base-font-size: 21px; /* Extra Large for low vision */
}

/* High Contrast Mode */
body.high-contrast {
  --color-primary: #000000;
  --color-primary-dark: #000000;
  --color-accent: #B33D00;
  --color-accent-hover: #802B00;
  --color-accent-light: #FFF2EB;
  --color-bg-main: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F0F0F0;
  --color-text-main: #000000;
  --color-text-muted: #222222;
  --color-border: #444444;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}

body.high-contrast a {
  text-decoration-thickness: 2px;
  font-weight: 700;
}

body.high-contrast .btn-primary {
  background-color: #000000;
  border: 2px solid #000000;
  color: #FFFFFF !important;
}

body.high-contrast .btn-primary:hover {
  background-color: #222222;
}

body.high-contrast .btn-secondary {
  border: 2px solid #000000;
  color: #000000 !important;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Keyboard Focus Rings */
:focus-visible {
  outline: 3px solid #D96B43 !important;
  outline-offset: 3px !important;
}

/* 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;
  }
}
