/* Orot Portal - Accessibility Widget Styles */

#orot-a11y-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background-color: #c27847; /* Bronze Terracotta */
  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;
}

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

#orot-a11y-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 2px solid #c27847;
  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: #1c1a18;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #c27847;
}

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

#orot-a11y-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.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: #f7f6f4;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1c1a18;
  cursor: pointer;
  text-align: center;
}

.a11y-btn:hover {
  background: #fdf6f0;
  border-color: #c27847;
  color: #c27847;
}

.a11y-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e7e5e4;
  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: #c27847;
}

/* 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;
}
