/* Accessibility Themes - Goodlady Finance */

:root {
  --ac-filter: none;
  --ac-contrast: 1;
  --ac-brightness: 1;
}

/* Color Blind Mode (Greyscale) */
body.mode-monochrome {
  filter: grayscale(100%) !important;
}

/* High Contrast (Light Mode) */
body.mode-high-contrast-light {
  --bg-deep-black: #ffffff;
  --bg-card: #f8fafc;
  --text-main: #000000;
  --text-muted: #1e293b;
  --accent-gold: #000000;
  --border-color: rgba(0, 0, 0, 0.2);

  background-color: #ffffff !important;
  color: #000000 !important;
  filter: contrast(1.1);
}

body.mode-high-contrast-light * {
  color: #000000 !important;
  border-color: #000000 !important;
  text-shadow: none !important;
}

body.mode-high-contrast-light .btn-primary,
body.mode-high-contrast-light .btn-initiate,
body.mode-high-contrast-light .access-trigger {
  -webkit-tap-highlight-color: transparent;

  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* Color Blind Specific svg filters */
body.mode-protanopia {
  filter: url("#protanopia-filter") !important;
}

body.mode-deuteranopia {
  filter: url("#deuteranopia-filter") !important;
}

body.mode-tritanopia {
  filter: url("#tritanopia-filter") !important;
}

/* Accessible Widget */
.access-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-trigger {
  width: 50px;
  height: 50px;
  background: #c5a059;
  border: none;
  border-radius: 12px;
  color: #030a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.2rem;
}

.access-trigger:hover {
  transform: scale(1.1) rotate(5deg);
  background: white;
}

.access-menu {
  position: absolute;
  bottom: 65px;
  left: 0;
  background: #0d1516;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 16px;
  padding: 20px;
  width: 240px;
  display: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  animation: accessIn 0.4s ease;
}

.access-menu.active {
  display: block;
}

.access-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-bottom: 4px;
}

.access-option:hover {
  background: rgba(197, 160, 89, 0.15);
  color: white;
  transform: translateX(5px);
}

.access-option.active {
  color: #c5a059;
  background: rgba(197, 160, 89, 0.08);
  font-weight: bold;
}

.access-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(197, 160, 89, 0.6);
  letter-spacing: 2px;
  margin-bottom: 15px;
  padding-left: 12px;
  font-weight: 700;
}

@keyframes accessIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .access-widget {
    bottom: 25px;
    left: 25px;
  }

  .access-trigger {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}
