/* Mivzak Press - Accessibility Widget Styles */

#mivzak-a11y-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 9999;
  background-color: #1e3a8a; /* Deep accessible blue */
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 10px 16px;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

#mivzak-a11y-trigger:hover {
  background-color: #172554;
  transform: scale(1.05);
}

#mivzak-a11y-panel {
  position: fixed;
  bottom: 80px;
  left: 24px;
  right: auto;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 2px solid #1e3a8a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  text-align: right;
  overflow: hidden;
}

.a11y-panel-hidden {
  display: none !important;
}

.a11y-panel-header {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-panel-header h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

#mivzak-a11y-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}

.a11y-panel-body {
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.a11y-group {
  margin-bottom: 14px;
}

.a11y-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.a11y-btn-row, .a11y-grid-2 {
  display: flex;
  gap: 6px;
}

.a11y-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.a11y-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: center;
}

.a11y-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.a11y-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 8px;
}

.a11y-btn-reset {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.a11y-statement-link {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

/* Mobile Specific Accessibility Widget Rules */
@media (max-width: 768px) {
  #mivzak-a11y-trigger {
    bottom: 16px;
    left: 14px;
    right: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  #mivzak-a11y-trigger .a11y-label {
    display: none;
  }

  #mivzak-a11y-trigger .a11y-icon {
    font-size: 20px;
  }

  #mivzak-a11y-panel {
    bottom: 68px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
    max-height: 75vh;
  }
}

/* Accessible Modes Override */
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.a11y-high-contrast * {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.a11y-dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}
body.a11y-dark-mode article,
body.a11y-dark-mode header,
body.a11y-dark-mode .sidebar-widget {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #333333 !important;
}

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

body.a11y-yellow-black {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.a11y-yellow-black * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.a11y-highlight-links a {
  text-decoration: underline !important;
  background-color: #fef08a !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

body.a11y-big-cursor, body.a11y-big-cursor * {
  cursor: default !important;
}

body.a11y-stop-anim * {
  animation: none !important;
  transition: none !important;
}

body.a11y-wide-spacing {
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
  line-height: 2 !important;
}
