/* ============================================
   SHERCO ID - Responsive Design
   ============================================ */

/* Tablet */
@media (min-width: 640px) {
  .features-grid {
    gap: 2rem;
  }
  
  .feature-item {
    padding: 2rem;
  }
  
  .feature-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
  
  .passport-frame {
    width: 360px;
    height: 480px;
  }
  
  .actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .photo-wrapper {
    max-width: 400px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .welcome-screen {
    padding: 3rem;
  }
  
  .headline {
    font-size: 2.5rem;
  }
  
  .camera-viewport {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .editor-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
  }
  
  .preview-section {
    position: sticky;
    top: 80px;
  }
  
  .photo-wrapper {
    max-width: 100%;
  }
  
  .tools-section {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  .results-content {
    max-width: 800px;
  }
  
  .photo-frame-final img {
    width: 300px;
    height: 400px;
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .splash-content,
  .hero-content {
    max-width: 600px;
  }
  
  .camera-viewport {
    max-width: 1000px;
  }
}

/* Mobile optimizations */
@media (max-width: 639px) {
  .brand-title {
    font-size: 2.5rem;
  }
  
  .headline {
    font-size: 1.75rem;
  }
  
  .features-grid {
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .passport-frame {
    width: 260px;
    height: 346px;
  }
  
  .face-guide {
    width: 180px;
    height: 240px;
  }
  
  .editor-footer {
    padding: 1rem;
  }
  
  .actions-grid {
    gap: 0.75rem;
  }
  
  .action-card {
    padding: 1rem;
  }
  
  .action-icon {
    font-size: 1.5rem;
  }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .splash-content {
    transform: scale(0.8);
  }
  
  .camera-controls {
    padding: 1rem;
  }
  
  .btn-capture {
    width: 60px;
    height: 60px;
  }
  
  .guide-text {
    margin-top: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-dark: #F9FAFB;
    --color-white: #1F2937;
    --color-light: #374151;
  }
  
  .splash-screen {
    background: linear-gradient(135deg, #1F2937 0%, #111827 50%, #0F172A 100%);
  }
  
  .welcome-screen {
    background: linear-gradient(180deg, #1F2937 0%, #0F172A 100%);
  }
  
  .editor-screen {
    background: #111827;
  }
  
  .tools-section,
  .photo-wrapper {
    background: #1F2937;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn-start,
  .btn-capture,
  .btn-save,
  .btn-share,
  .action-card {
    min-height: 48px;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
}