/* ── Potcoava A11Y – Text Magnifier (Lupă) ────────────────────── */

/* Lupa flotantă */
#pa11y-magnifier {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  top: 0; left: 0;
  transform: translate(-50%, -130%);
  transition: opacity .1s;
}

#pa11y-magnifier[hidden] { display: none !important; }

/* Cadrul lupei */
.pa11y-magnifier-lens {
  background: #fff;
  border: 3px solid #1a3a5c;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(26,58,92,.15);
  padding: 10px 16px;
  min-width: 280px;
  max-width: 380px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Săgeată jos (pointer spre cursor) */
.pa11y-magnifier-lens::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #1a3a5c;
  border-bottom: none;
}
.pa11y-magnifier-lens::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #fff;
  border-bottom: none;
  z-index: 1;
}

/* Textul mărit */
.pa11y-magnifier-content {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a3a5c;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  font-family: Arial, sans-serif;
}

/* Iconița lupă */
.pa11y-magnifier-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #1a3a5c;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}

/* Cursor personalizat când lupa e activă */
body.pa11y-magnifier-active {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='10' fill='none' stroke='%231a3a5c' stroke-width='2.5'/%3E%3Cline x1='21' y1='21' x2='29' y2='29' stroke='%231a3a5c' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='13' r='5' fill='rgba(26,58,92,0.15)'/%3E%3C/svg%3E") 13 13, crosshair !important;
}

/* Buton lupă în toolbar – mov */
#pa11y-magnifier-btn {
  background: #f3e5f5 !important;
  border-color: #ce93d8 !important;
  color: #6a1b9a !important;
}
#pa11y-magnifier-btn:hover,
#pa11y-magnifier-btn:focus {
  background: #6a1b9a !important;
  color: #fff !important;
  border-color: #6a1b9a !important;
}
#pa11y-magnifier-btn[aria-pressed="true"] {
  background: #6a1b9a !important;
  color: #fff !important;
  border-color: #4a148c !important;
}
