/* Accessibility Menu Styles */
.accessibility-menu {
  position: fixed;
  left: 0;
  top: 30%;
  transform: translateY(-50%);
  z-index: 9999;
}

.accessibility-toggle {
  width: 50px;
  height: 54px;
  background: #21648c;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  outline: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.accessibility-toggle:focus {
  outline: none;
}

.accessibility-content {
  position: absolute;
  left: 0;
  top: 0;
  background: white;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.2);
  width: 0;
  overflow: hidden;
  transition: width 0.4s ease;
  opacity: 1;
}

.accessibility-menu.active .accessibility-content {
  width: 280px;
  border-radius: 0;
}

.accessibility-menu.active .accessibility-toggle {
  left: 280px;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}

.accessibility-header {
  background: #21648c;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accessibility-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Atkinson Hyperlegible', sans-serif;
}

.accessibility-options {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accessibility-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  color: #1a1a1a;
  transition: all 0.2s ease;
  text-align: left;
  outline: none;
}

.accessibility-btn:focus {
  outline: none;
}

.accessibility-btn.active {
  background: #5aa421;
  color: white;
  border-color: #5aa421;
}

.accessibility-btn.reset-btn {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.accessibility-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Accessibility active states on body */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast *,
body.high-contrast *:before,
body.high-contrast *:after {
  background-color: #000 !important;
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.high-contrast img,
body.high-contrast svg {
  filter: grayscale(100%) contrast(100%);
}

body.high-contrast .accessibility-content {
  background: #000 !important;
}

body.high-contrast .accessibility-header {
  background: #333 !important;
}

body.high-contrast .accessibility-btn {
  background: #333 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .accessibility-btn:hover,
body.high-contrast .accessibility-btn.active {
  background: #fff !important;
  color: #000 !important;
}

body.high-contrast .accessibility-toggle {
  background: #333 !important;
  border-color: #fff !important;
}

body.links-underline a,
body.links-underline a:hover,
body.links-underline a:visited,
body.links-underline a:focus {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

body.no-caps,
body.no-caps *,
body.no-caps *::before,
body.no-caps *::after {
  text-transform: none !important;
}

/* Responsive for accessibility menu */
@media (max-width: 768px) {
  .accessibility-menu {
    top: 40%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .accessibility-toggle {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .accessibility-menu.active .accessibility-content {
    width: 250px;
    border-radius: 0;
  }

  .accessibility-menu.active .accessibility-toggle {
    left: 250px;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
  }
}
