/**
 * PRINTERCONNECT MPS - ACCESSIBILITY & WCAG 2.1 AA COMPLIANCE STYLES
 */

/* 1. Skip to Content Link (Pular para o conteúdo principal) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #6366f1;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 999999;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* 2. Barra de Acessibilidade Flutuante */
.accessibility-bar {
  position: fixed;
  top: 90px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 99970;
  box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.accessibility-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.accessibility-btn:hover,
.accessibility-btn:focus-visible {
  background: #6366f1;
  color: #ffffff;
  border-color: #818cf8;
  transform: scale(1.05);
  outline: 2px solid #ffffff;
}

.accessibility-btn.active {
  background: #4f46e5;
  color: #fbbf24;
  border-color: #fbbf24;
}

/* 3. Modo de Alto Contraste (WCAG AAA) */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast * {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.high-contrast a,
body.high-contrast button,
body.high-contrast .text-gradient {
  color: #ffff00 !important;
  background: none !important;
  -webkit-text-fill-color: #ffff00 !important;
}

body.high-contrast a:hover,
body.high-contrast a:focus-visible {
  text-decoration: underline !important;
  outline: 2px solid #ffff00 !important;
}

body.high-contrast .site-header,
body.high-contrast .site-footer,
body.high-contrast .feature-card,
body.high-contrast .plan-card,
body.high-contrast .cookie-consent-banner,
body.high-contrast .cookie-modal {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}

/* 4. Sublinhar Todos os Links */
body.underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 5. Fonte de Alta Legibilidade */
body.readable-font {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em !important;
  word-spacing: 0.05em !important;
  line-height: 1.8 !important;
}

/* 6. Anéis de Foco Visível para Navegação por Teclado */
:focus-visible {
  outline: 3px solid #818cf8 !important;
  outline-offset: 3px !important;
}

