/* Orientation Lock Overlay */
#orientation-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(10, 26, 47, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: var(--white);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#orientation-lock-overlay.show {
  opacity: 1;
}

#orientation-lock-overlay-message {
  padding: 2rem;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

#orientation-lock-overlay h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

#orientation-lock-overlay p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.orientation-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
}

.brand-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  opacity: 0.8;
}

/* Mobile-only orientation detection */
@media (orientation: landscape) and (max-width: 768px) and (max-height: 500px) {
  #orientation-lock-overlay {
    display: flex;
  }
  
  body > *:not(#orientation-lock-overlay) {
    filter: blur(5px);
    pointer-events: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .orientation-icon {
    animation: none;
  }
  
  #orientation-lock-overlay {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #orientation-lock-overlay {
    background: #000000;
    border: 2px solid #ffffff;
  }
  
  #orientation-lock-overlay-message {
    background: #000000;
    border: 2px solid #ffffff;
  }
}

/* Screen reader only content */
.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;
}