/* accessibility.css */
/* ============================================
   DJC ACCESSIBILITY WIDGET - STYLES
   Copy this entire file into your CSS folder
   ============================================ */

/* ===== ACCESSIBILITY WIDGET ===== */
.djc-accessibility-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #1a3b5d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.djc-accessibility-widget:hover {
  transform: scale(1.1);
  background: #0f2c46;
}
.djc-accessibility-widget:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-color: #1a3b5d;
}
.djc-widget-tooltip {
  position: absolute;
  right: 66px;
  background: #1a3b5d;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: inherit;
}
.djc-accessibility-widget:hover .djc-widget-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ===== ACCESSIBILITY PANEL ===== */
.djc-accessibility-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 99999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e8e4dc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.djc-accessibility-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.djc-accessibility-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3b5d;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.djc-accessibility-panel h3 i {
  color: #1a3b5d;
}
.djc-accessibility-panel .djc-close-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: inherit;
}
.djc-accessibility-panel .djc-close-panel:hover,
.djc-accessibility-panel .djc-close-panel:focus-visible {
  background: #f0ede5;
  outline: 2px solid #1a3b5d;
}
.djc-accessibility-group {
  margin-bottom: 16px;
}
.djc-accessibility-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1e2b;
  margin-bottom: 6px;
}
.djc-accessibility-group .djc-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.djc-accessibility-group .djc-btn-group button {
  padding: 8px 16px;
  border: 2px solid #d0d5dc;
  border-radius: 30px;
  background: #f9f9f7;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  color: #1a1e2b;
  font-family: inherit;
}
.djc-accessibility-group .djc-btn-group button:hover {
  background: #eef3f9;
  border-color: #1a3b5d;
}
.djc-accessibility-group .djc-btn-group button:focus-visible {
  outline: 3px solid #1a3b5d;
  outline-offset: 2px;
}
.djc-accessibility-group .djc-btn-group button.djc-active {
  background: #1a3b5d;
  color: #ffffff;
  border-color: #1a3b5d;
}
.djc-accessibility-group .djc-btn-group button.djc-active:hover {
  background: #0f2c46;
}
.djc-accessibility-divider {
  border: none;
  border-top: 1px solid #e8e4dc;
  margin: 16px 0;
}
.djc-accessibility-reset {
  width: 100%;
  padding: 10px;
  border: 2px solid #dc3545;
  border-radius: 30px;
  background: transparent;
  color: #dc3545;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
}
.djc-accessibility-reset:hover {
  background: #dc3545;
  color: white;
}
.djc-accessibility-reset:focus-visible {
  outline: 3px solid #dc3545;
  outline-offset: 2px;
}

/* ============================================
   ACCESSIBILITY STYLES (applied to body)
   ============================================ */

/* ----- High Contrast ----- */
body.djc-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.djc-high-contrast a:not(.djc-accessibility-widget):not(.djc-close-panel):not(.djc-accessibility-reset) {
  color: #ffffff !important;
}
body.djc-high-contrast .card,
body.djc-high-contrast .djc-accessibility-panel {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
}
body.djc-high-contrast .btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
}
body.djc-high-contrast .btn-outline {
  border-color: #ffffff !important;
  color: #ffffff !important;
}
body.djc-high-contrast .navbar {
  background: #111111 !important;
  border-bottom-color: #444 !important;
}
body.djc-high-contrast .nav-links a,
body.djc-high-contrast .dropdown > a {
  color: #ffffff !important;
}
body.djc-high-contrast .section-dark-alt {
  background: #0a0a0a !important;
}
body.djc-high-contrast footer {
  background: #0a0a0a !important;
}
body.djc-high-contrast .flip-card-front {
  background: #1a1a1a !important;
  border-color: #444 !important;
}
body.djc-high-contrast .flip-card-back {
  background: #222 !important;
}
body.djc-high-contrast .leader-info h3,
body.djc-high-contrast .event-carousel-title,
body.djc-high-contrast .section-title {
  color: #ffffff !important;
}
body.djc-high-contrast .event-carousel-content {
  background: #1a1a1a !important;
  border-color: #444 !important;
}
body.djc-high-contrast .split-message h2 {
  background: none !important;
  color: #ffffff !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
body.djc-high-contrast .open-positions {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
}
body.djc-high-contrast .mission-block {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
}
body.djc-high-contrast .section-sub {
  color: #cccccc !important;
}
body.djc-high-contrast .event-date {
  color: #ffffff !important;
}
body.djc-high-contrast .event-title {
  color: #ffffff !important;
}
body.djc-high-contrast .event-desc {
  color: #cccccc !important;
}

/* ----- Grayscale ----- */
body.djc-grayscale {
  filter: grayscale(100%);
}

/* ----- Underline Links ----- */
body.djc-underline-links a:not(.btn-primary):not(.btn-outline):not(.btn-outline-light):not(.btn-light-outline):not(.djc-accessibility-widget):not(.djc-close-panel):not(.djc-accessibility-reset) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

/* ----- Readable Font (OpenDyslexic) ----- */
body.djc-readable-font,
body.djc-readable-font * {
  font-family: 'OpenDyslexic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ----- Highlight Titles ----- */
body.djc-highlight-titles h1,
body.djc-highlight-titles h2,
body.djc-highlight-titles h3,
body.djc-highlight-titles h4,
body.djc-highlight-titles .section-title,
body.djc-highlight-titles .event-carousel-title,
body.djc-highlight-titles .leader-info h3,
body.djc-highlight-titles .split-message h2 {
  background: #ffeb3b !important;
  color: #000000 !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}
body.djc-highlight-titles .split-message h2 {
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* ----- Enhanced Focus ----- */
body.djc-enhanced-focus *:focus-visible {
  outline: 4px solid #ff0000 !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}

/* ----- Large Text ----- */
body.djc-large-text {
  font-size: 1.2rem !important;
}
body.djc-large-text h1 {
  font-size: 3.2rem !important;
}
body.djc-large-text h2 {
  font-size: 2.8rem !important;
}
body.djc-large-text h3 {
  font-size: 2rem !important;
}
body.djc-large-text p,
body.djc-large-text li {
  font-size: 1.3rem !important;
  line-height: 1.8 !important;
}
body.djc-large-text .btn-primary,
body.djc-large-text .btn-outline {
  font-size: 1.2rem !important;
  padding: 16px 32px !important;
}

/* ----- Extra Large Text ----- */
body.djc-xl-text {
  font-size: 1.4rem !important;
}
body.djc-xl-text h1 {
  font-size: 3.6rem !important;
}
body.djc-xl-text h2 {
  font-size: 3rem !important;
}
body.djc-xl-text h3 {
  font-size: 2.2rem !important;
}
body.djc-xl-text p,
body.djc-xl-text li {
  font-size: 1.5rem !important;
  line-height: 2 !important;
}
body.djc-xl-text .btn-primary,
body.djc-xl-text .btn-outline {
  font-size: 1.4rem !important;
  padding: 20px 40px !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .djc-accessibility-widget {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 16px;
    right: 16px;
  }
  .djc-widget-tooltip {
    display: none;
  }
  .djc-accessibility-panel {
    right: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    padding: 20px;
    border-radius: 16px;
  }
  .djc-accessibility-group .djc-btn-group button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .djc-accessibility-panel {
    right: 8px;
    bottom: 72px;
    width: calc(100vw - 16px);
    padding: 16px;
    border-radius: 12px;
    max-height: calc(100vh - 100px);
  }
  .djc-accessibility-panel h3 {
    font-size: 1rem;
  }
  .djc-accessibility-group .djc-btn-group button {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}