/* Additional styles for copy feedback */
.copy-feedback {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: opacity 0.3s;
}

.copy-feedback.fade-out {
  opacity: 0;
}

/* Optimize for different screen sizes */
@media (max-width: 480px) {
  .verse {
    padding: 0.3rem;
  }
  
  .verse-number {
    min-width: 1.2rem;
  }
  
  .content-header {
    padding: 0.5rem;
  }
  
  .nav-button {
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #6200ee;
    --text-color: #000000;
    --background-color: #ffffff;
    --verse-number-color: #0000ff;
    --button-bg: #0000ff;
    --button-text: #ffffff;
  }
  
  [data-theme="dark"] {
    --primary-color: #ffff00;
    --secondary-color: #ffff00;
    --text-color: #ffffff;
    --background-color: #000000;
    --verse-number-color: #ffff00;
    --button-bg: #ffff00;
    --button-text: #000000;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Optimize font loading */
@font-face {
  font-family: 'SBL Hebrew';
  src: local('SBL Hebrew');
  font-display: swap;
}

@font-face {
  font-family: 'SBL Greek';
  src: local('SBL Greek');
  font-display: swap;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
}

/* Optimize for print */
@media print {
  @page {
    margin: 1cm;
  }
  
  .verse {
    break-inside: avoid;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
}
