/* =============================================================================
   Screen System Styles
   ============================================================================= */

/* Screen visibility */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100%;
  opacity: 0;
  visibility: hidden;
}

.screen.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Screen content wrapper */
.screen-content {
  flex: 1;
  padding: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Fullscreen mode for capture screens */
.fullscreen-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.fullscreen-screen .screen-content {
  padding: 0;
  max-width: none;
}

/* Hide header in fullscreen */
body.fullscreen-mode .app-header {
  display: none;
}

body.fullscreen-mode .main-content {
  padding-top: 0;
}

/* Loading states */
.screen-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.screen-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--papyrus-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Error states */
.screen-error {
  text-align: center;
  padding: var(--space-xl);
  color: var(--red-grade);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 25%,
    var(--navy-blue) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--border-radius-sm);
}
