/* ==========================================================================
   POLITICALLY WORDPRESS THEME - ACCESSIBILITY SYSTEM
   ========================================================================== */

/* Floating Accessibility Button */
.floating-accessibility-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
  z-index: 998;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  border: none;
}
.floating-accessibility-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.6), 0 0 0 4px rgba(250, 204, 21, 0.3);
}
.floating-accessibility-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.floating-accessibility-trigger svg {
  width: 28px;
  height: 28px;
}

/* Accessibility Modal Dialog */
.accessibility-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.accessibility-modal-backdrop.open {
  display: flex;
}
.accessibility-modal-dialog {
  background-color: #12151b;
  border: 1px solid #2d3748;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(250, 204, 21, 0.2);
  color: #f3f4f6;
  direction: rtl;
  text-align: right;
  animation: a11y-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes a11y-fade-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #262c36;
}
.a11y-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.a11y-title-wrap svg {
  color: #facc15;
  width: 24px;
  height: 24px;
}
.a11y-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}
.a11y-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #1c212a;
  color: #a8b3cf;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.a11y-close-btn:hover {
  background-color: #ff1e42;
  color: #ffffff;
}

/* Accessibility Toggles Grid */
.a11y-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.a11y-toggle-btn {
  background-color: #181d26;
  border: 1px solid #262c36;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  width: 100%;
}
.a11y-toggle-btn:hover {
  background-color: #212835;
  border-color: #3b4453;
}
.a11y-toggle-btn.active {
  background: rgba(250, 204, 21, 0.15);
  border-color: #facc15;
  color: #fff;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}
.a11y-toggle-btn svg {
  width: 20px;
  height: 20px;
  color: #a8b3cf;
}
.a11y-toggle-btn.active svg {
  color: #facc15;
}
.a11y-btn-label {
  font-size: 0.88rem;
  font-weight: 700;
}
.a11y-btn-desc {
  font-size: 0.72rem;
  color: #8b9bb4;
  line-height: 1.3;
}

/* Action Buttons */
.a11y-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #262c36;
}
.a11y-reset-btn {
  font-size: 0.82rem;
  color: #ff6b81;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}
.a11y-reset-btn:hover {
  background-color: rgba(255, 30, 66, 0.15);
}
.a11y-statement-link {
  font-size: 0.82rem;
  color: #facc15;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   ACTIVE ACCESSIBILITY CLASSES ON BODY
   ========================================================================== */
body.acc-contrast {
  color: #ffffff !important;
  background-color: #000000 !important;
}
body.acc-contrast * {
  border-color: #ffff00 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.acc-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.acc-contrast .floating-accessibility-trigger {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.acc-grayscale {
  filter: grayscale(100%) !important;
}

body.acc-larger-text {
  font-size: 118% !important;
}
body.acc-larger-text .site-title {
  font-size: 2rem !important;
}
body.acc-larger-text .lead-title {
  font-size: 2.2rem !important;
}
body.acc-larger-text .article-content-body {
  font-size: 1.3rem !important;
}

body.acc-readable-font * {
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
  line-height: 1.8 !important;
}

body.acc-highlight-links a,
body.acc-highlight-links button {
  text-decoration: underline #facc15 !important;
  text-decoration-thickness: 2px !important;
  color: #facc15 !important;
}

body.acc-stop-animations * {
  animation: none !important;
  transition: none !important;
}

body.acc-big-cursor,
body.acc-big-cursor * {
  cursor: crosshair !important;
}
