/* =========================================
   Responsive Design - Mobile First Approach
   ========================================= */

/* Tablet Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Typography adjustments */
  html {
    font-size: 14px;
  }
  
  /* Header & Navigation */
  .header-content {
    flex-wrap: wrap;
    position: relative;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm);
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-light-gray);
  }
  
  .language-switcher {
    border-left: none;
    border-top: 1px solid var(--color-light-gray);
    padding: var(--spacing-sm) 0 0 0;
    margin: var(--spacing-sm) 0 0 0;
    justify-content: center;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Hero Section */
  .hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Steps Container */
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  /* Screenshots */
  .screenshots-carousel {
    padding-left: var(--spacing-sm);
  }
  
  .screenshot-item {
    min-width: 250px;
  }
  
  /* Download Section */
  .download-buttons {
    flex-direction: column;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Section spacing */
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  /* Container padding */
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
  /* Further typography adjustments */
  html {
    font-size: 13px;
  }
  
  /* Logo */
  .logo img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  /* Hero */
  h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Feature Cards */
  .feature-card {
    padding: var(--spacing-sm);
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Steps */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Screenshots */
  .screenshot-item {
    min-width: 200px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  /* QR Code */
  .qr-code img {
    width: 120px;
    height: 120px;
  }
  
  /* Section spacing */
  .section {
    padding: var(--spacing-md) 0;
  }
  
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
}

/* Large Desktop (min-width: 1400px) */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape Phone */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--spacing-md) 0;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero-cta,
  .download-section,
  .mobile-menu-toggle,
  .language-switcher {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .legal-content {
    max-width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-gold-dark: #B8860B;
    --color-red-dark: #8B0000;
  }
  
  .btn-primary {
    border: 2px solid var(--color-charcoal);
  }
  
  a {
    text-decoration: underline;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Uncomment if dark mode is desired
  :root {
    --color-ivory: #2A2A2A;
    --color-charcoal: #E8E8E8;
    --color-white: #1A1A1A;
  }
  */
}

