/* Responsive 16:9 Layout CSS */

/* Ensure consistent viewport behavior */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Main container for 16:9 aspect ratio */
.aspect-16-9 {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 100vw;
}

/* Responsive navigation images */
.nav-icon {
  height: 6vh;
  min-height: 40px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* Logo sizing */
.logo {
  height: 8vh;
  min-height: 50px;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Header consistent sizing */
.header-container {
  height: 10vh;
  min-height: 60px;
  max-height: 100px;
}

/* Footer consistent sizing */
.footer-container {
  height: 10vh;
  min-height: 60px;
  max-height: 100px;
}

/* Ensure proper aspect ratio maintenance */
.main-section {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 100vw;
  min-height: 0;
  flex: 1;
}

/* Main content area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow flex shrinking */
}

/* Image containers with consistent aspect ratios */
.image-square {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.image-rectangle {
  width: 192px;
  height: 128px;
  object-fit: cover;
  border-radius: 0.375rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .nav-icon {
    height: 5vh;
    min-height: 35px;
  }
  
  .logo {
    height: 7vh;
    min-height: 45px;
  }
  
  .image-square {
    width: 80px;
    height: 80px;
  }
  
  .image-rectangle {
    width: 160px;
    height: 100px;
  }
  
  /* Adjust main section for mobile */
  .main-section {
    min-height: 60vh;
  }
  
  /* Stack navigation items vertically on very small screens */
  .mobile-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-icon {
    height: 4vh;
    min-height: 30px;
  }
  
  .logo {
    height: 6vh;
    min-height: 40px;
  }
  
  .image-square {
    width: 64px;
    height: 64px;
  }
  
  .image-rectangle {
    width: 128px;
    height: 80px;
  }
  
  /* Further adjustments for very small screens */
  .main-section {
    min-height: 50vh;
  }
  
  /* Reduce padding on small screens */
  .mobile-padding {
    padding: 1rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .header-container {
    height: 15vh;
    min-height: 80px;
  }
  
  .footer-container {
    height: 15vh;
    min-height: 80px;
  }
  
  .main-section {
    flex: 1;
    min-height: 70vh;
  }
}

/* Ensure proper flex behavior for full height layouts */
.full-height-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content sections that should maintain aspect ratio */
.content-section {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Prevent content overflow */
.text-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .responsive-text-lg {
    font-size: 1rem;
  }
  
  .responsive-text-xl {
    font-size: 1.25rem;
  }
  
  .responsive-text-2xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .responsive-text-lg {
    font-size: 0.875rem;
  }
  
  .responsive-text-xl {
    font-size: 1rem;
  }
  
  .responsive-text-2xl {
    font-size: 1.25rem;
  }
}