/* ==========================================================================
   TUTARI Wide Screen Layout Optimizations
   Version: 1.0.0
   Last Updated: 2026-02-07
   
   Purpose: Optimize layouts for wide screens (≥1920px) to eliminate wasted
   space and improve visual hierarchy.
   ========================================================================== */

/* ==========================================================================
   CONTAINER SYSTEM
   ========================================================================== */

/* Containers optimized for different content types */
.container-text {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-content {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container-wide {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.container-full {
  max-width: 100%;
  padding-left: 60px;
  padding-right: 60px;
}

/* Enhanced containers for ultra-wide screens */
@media (min-width: 1920px) {
  .container-text {
    max-width: 1300px;
  }
  
  .container-content {
    max-width: 1600px;
  }
  
  .container-wide {
    max-width: 2000px;
  }
}

/* ==========================================================================
   SECTION SPACING OPTIMIZATION
   ========================================================================== */

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-lg {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Increase spacing slightly on very wide screens */
@media (min-width: 1920px) {
  .section {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  
  .section-lg {
    padding-top: 140px;
    padding-bottom: 140px;
  }
}

/* ==========================================================================
   GRID SYSTEMS
   ========================================================================== */

/* Adaptive grid for cards and features */
.adaptive-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 768px) {
  .adaptive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .adaptive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1920px) {
  .adaptive-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

@media (min-width: 2400px) {
  .adaptive-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
  }
}

/* Product grid - optimized for product listings */
.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1920px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* Features grid - wider spacing for better visuals */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1920px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

/* Split hero (60/40 layout) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  min-height: 500px;
  padding: 60px 32px;
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 55% 45%;
    gap: 60px;
    min-height: 70vh;
    max-height: 800px;
    padding: 0 60px;
  }
}

@media (min-width: 1920px) {
  .hero-split {
    grid-template-columns: 60% 40%;
    gap: 80px;
    padding: 0 80px;
  }
}

.hero-split-content {
  z-index: 2;
}

.hero-split-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Asymmetric hero with background */
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-asymmetric {
    grid-template-columns: 65% 35%;
  }
}

@media (min-width: 1920px) {
  .hero-asymmetric {
    grid-template-columns: 70% 30%;
  }
}

/* ==========================================================================
   BENTO GRID LAYOUT
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1600px;
  }
}

@media (min-width: 1920px) {
  .bento-grid {
    gap: 32px;
    max-width: 1800px;
  }
}

/* Bento item sizes */
.bento-item {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Small: 1/3 width on desktop */
.bento-item.small {
  grid-column: span 4;
}

/* Medium: 1/2 width on desktop */
.bento-item.medium {
  grid-column: span 4;
}

@media (min-width: 768px) {
  .bento-item.medium {
    grid-column: span 4;
  }
}

@media (min-width: 1200px) {
  .bento-item.small {
    grid-column: span 4;
  }
  
  .bento-item.medium {
    grid-column: span 6;
  }
}

/* Large: Full width or 2/3 width */
.bento-item.large {
  grid-column: span 4;
  grid-row: span 1;
}

@media (min-width: 768px) {
  .bento-item.large {
    grid-column: span 8;
  }
}

@media (min-width: 1200px) {
  .bento-item.large {
    grid-column: span 6;
    grid-row: span 2;
  }
}

/* Wide: Spans most of the width */
.bento-item.wide {
  grid-column: span 4;
}

@media (min-width: 768px) {
  .bento-item.wide {
    grid-column: span 6;
  }
}

@media (min-width: 1200px) {
  .bento-item.wide {
    grid-column: span 8;
  }
}

/* ==========================================================================
   SPLIT CONTENT SECTIONS
   ========================================================================== */

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 400px;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 50% 50%;
    min-height: 600px;
  }
}

.split-content {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1920px) {
  .split-content {
    padding: 80px 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

.split-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

@media (min-width: 1024px) {
  .split-image {
    min-height: 600px;
  }
}

/* Reverse layout */
.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

/* ==========================================================================
   STATS SECTIONS
   ========================================================================== */

.stats-banner {
  background: linear-gradient(135deg, #1f0757 0%, #0d6efd 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
  }
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1400px;
  }
}

@media (min-width: 1920px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
  }
}

/* Inline stats (for hero sections) */
.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 1920px) {
  .stats-inline {
    gap: 48px;
  }
}

/* ==========================================================================
   CONTENT + SIDEBAR LAYOUT
   ========================================================================== */

.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1800px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr 350px;
    gap: 60px;
  }
}

@media (min-width: 1920px) {
  .content-sidebar-layout {
    grid-template-columns: 1fr 400px;
    gap: 80px;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* ==========================================================================
   COMPARISON TABLE LAYOUT
   ========================================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow-x: auto;
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: 200px repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .comparison-grid {
    grid-template-columns: 250px repeat(3, 1fr);
  }
}

@media (min-width: 1920px) {
  .comparison-grid {
    grid-template-columns: 300px repeat(4, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1920px) {
  .feature-card {
    padding: 40px;
  }
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-card h3,
.feature-card h4 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

/* ==========================================================================
   BRAND-SPECIFIC OPTIMIZATIONS
   ========================================================================== */

/* Acronis */
.ac-page .ac-hero {
  min-height: 70vh;
  max-height: 800px;
}

@media (min-width: 1920px) {
  .ac-page .ac-products-section .row.g-4 {
    row-gap: 2rem !important;
    column-gap: 2rem !important;
  }
  
  .ac-page .col-lg-4 {
    flex: 0 0 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
  }
}

/* Bitdefender */
.bd-page .bd-hero {
  min-height: 70vh;
  max-height: 800px;
}

@media (min-width: 1920px) {
  .bd-page .bd-products-section .row.g-4 > [class*="col-"] {
    flex: 0 0 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Max-width utilities */
.max-w-text { max-width: 1200px; margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 1400px; margin-left: auto; margin-right: auto; }
.max-w-wide { max-width: 1800px; margin-left: auto; margin-right: auto; }

@media (min-width: 1920px) {
  .max-w-text { max-width: 1300px; }
  .max-w-content { max-width: 1600px; }
  .max-w-wide { max-width: 2000px; }
}

/* Grid column count utilities */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 1920px) {
  .grid-cols-2-to-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-3-to-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-cols-4-to-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Gap utilities for wide screens */
@media (min-width: 1920px) {
  .gap-wide { gap: 40px; }
  .gap-x-wide { column-gap: 40px; }
  .gap-y-wide { row-gap: 40px; }
}

/* ==========================================================================
   RESPONSIVE IMAGE OPTIMIZATION
   ========================================================================== */

.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-hero {
  max-height: 600px;
  object-fit: cover;
  border-radius: 16px;
}

@media (min-width: 1920px) {
  .image-hero {
    max-height: 700px;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .hero-split,
  .split-section {
    display: block;
  }
  
  .bento-grid,
  .adaptive-grid,
  .features-grid {
    display: block;
  }
  
  .bento-item,
  .feature-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}
