/* PJGold Animation Enhanced Styles - Complements JS-injected styles */

/* Accessibility: Focus states */
.pjgold-animation__container:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* Control buttons (if using a11y controls) */
.pjgold-animation__controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  z-index: 1000;
  font-family: system-ui, -apple-system, sans-serif;
}

.pjgold-animation__control {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

.pjgold-animation__control:hover,
.pjgold-animation__control:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Screen reader only text */
.pjgold-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile responsive controls */
@media (max-width: 768px) {
  .pjgold-animation__controls {
    bottom: 10px;
    padding: 10px;
    width: calc(100% - 20px);
    max-width: 500px;
  }
  
  .pjgold-animation__control {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pjgold-animation__container {
    border: 2px solid;
  }
  
  .pjgold-animation__control {
    border-width: 3px;
    font-weight: bold;
  }
}

/* Print styles */
@media print {
  .pjgold-animation__controls,
  .pjgold-animation__progress,
  .pjgold-interruptor-indicator,
  .pjgold-scroll-affordance {
    display: none !important;
  }
}

/* Debug mode - useful during development */
.pjgold-animation__container--debug::before {
  content: attr(data-pjgold-frame);
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-family: monospace;
  z-index: 999999;
}