/* ==========================================================================
   ACCESSIBILITY & DEAF MINISTRY SPECIALIZED STYLES
   ========================================================================== */

/* Top Quick Action & Accessibility Bar */
.top-bar {
  background-color: var(--primary-950);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 110;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-announcement {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.top-bar-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-phone, .top-bar-address {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-inverse-muted);
}

.top-bar-phone:hover, .top-bar-address:hover {
  color: var(--gold-400);
}

/* Accessibility Control Drawer / Floating Widget Trigger */
.a11y-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.a11y-trigger-btn:hover {
  background: var(--gold-400);
  color: var(--primary-950);
}

/* Accessibility Drawer Modal */
.a11y-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface-elevated);
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.35);
  border-left: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.a11y-drawer.open {
  right: 0;
}

.a11y-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.a11y-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.a11y-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.a11y-close-btn {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.a11y-close-btn:hover {
  background: var(--ruby-100);
  color: var(--ruby-600);
}

.a11y-section {
  margin-bottom: 1.5rem;
}

.a11y-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a11y-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.a11y-btn {
  padding: 0.5rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.a11y-btn:hover {
  border-color: var(--gold-400);
  background: var(--gold-50);
}

.a11y-btn.active {
  background: var(--primary-900);
  color: var(--white);
  border-color: var(--primary-900);
}

.a11y-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.a11y-toggle-info strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.a11y-toggle-info span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Accessible Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--neutral-300);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--gold-500);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   FLOATING ASL PICTURE-IN-PICTURE (PIP) OVERLAY FOR DEAF COMMUNITY
   ========================================================================== */
.asl-pip-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 260px;
  background: var(--primary-950);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--gold-400);
  z-index: 950;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: slide-up-pip 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.asl-pip-container.active {
  display: flex;
}

@keyframes slide-up-pip {
  from { transform: translateY(50px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.asl-pip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--primary-900);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.asl-pip-header span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.asl-pip-close {
  color: var(--text-inverse-muted);
  font-size: 1rem;
}

.asl-pip-close:hover {
  color: var(--ruby-500);
}

.asl-pip-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asl-pip-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asl-signing-animation-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.asl-pip-caption {
  padding: 0.6rem 0.75rem;
  background: var(--primary-950);
  color: #e2ecf9;
  font-size: 0.75rem;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
