/* ==========================================================================
   Vida Celular - Responsive CSS
   ==========================================================================
   Mobile-first approach.
   Breakpoints: sm 640px | md 768px | lg 1024px | xl 1280px
   ========================================================================== */


/* ==========================================================================
   Layout Component Base Styles
   ========================================================================== */

.latest-news-layout {
  display: grid;
  gap: 2rem;
}

.latest-news__feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-grid {
  display: grid;
  gap: 1.5rem;
}

.discover-grid {
  display: grid;
  gap: 1.5rem;
}

.card-cluster__list-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--vc-border);
}

.card-cluster__list-item:last-child {
  border-bottom: none;
}

.card-cluster__num {
  font-family: var(--vc-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--vc-primary);
  min-width: 2rem;
  line-height: 1.2;
}


/* ==========================================================================
   Mobile First Base (< 640px)
   ========================================================================== */

/* --- Header --- */
.header-nav {
  display: none;
}

.header-menu-toggle {
  display: flex;
}

/* --- Hero Carousel --- */
.hero-carousel__grid {
  grid-template-columns: 1fr;
}

.hero-carousel__main {
  aspect-ratio: 4 / 3;
}

.hero-carousel__side {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel__side-item {
  min-width: 200px;
  max-height: 150px;
  flex-shrink: 0;
}

/* --- Now Section --- */
.now-section__grid {
  grid-template-columns: 1fr;
}

/* --- Trending Section --- */
.trending-section__grid {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Latest News --- */
.latest-news-layout {
  grid-template-columns: 1fr;
}

.latest-news__sidebar {
  display: none;
}

/* --- Most Read --- */
.most-read-grid {
  grid-template-columns: 1fr;
}

/* --- Category --- */
.category-grid {
  grid-template-columns: 1fr;
}

/* --- Discover --- */
.discover-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Card Feed --- */
.card-feed {
  flex-direction: column;
}

.card-feed__image {
  width: 100%;
}

/* --- Footer --- */
.footer-grid {
  grid-template-columns: 1fr;
}

.footer-brand {
  grid-column: span 1;
}

/* --- Section Padding Reductions --- */
.section-premium {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section-standard {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.section-compact {
  padding-top: 1rem;
  padding-bottom: 1rem;
}


/* ==========================================================================
   @media (min-width: 640px) - sm
   ========================================================================== */

@media (min-width: 640px) {

  .trending-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ==========================================================================
   @media (min-width: 768px) - md
   ========================================================================== */

@media (min-width: 768px) {

  /* Grids */
  .now-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .most-read-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Card Feed horizontal */
  .card-feed {
    flex-direction: row;
  }

  .card-feed__image {
    width: 200px;
  }

  /* Section Padding */
  .section-premium {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-standard {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .section-compact {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  /* Section Title */
  .section-title {
    font-size: var(--vc-text-2xl);
  }

  .section-title--lg {
    font-size: var(--vc-text-3xl);
  }

}


/* ==========================================================================
   @media (min-width: 1024px) - lg
   ========================================================================== */

@media (min-width: 1024px) {

  /* Header */
  .header-nav {
    display: block;
  }

  .header-menu-toggle {
    display: none;
  }

  /* Hero Carousel */
  .hero-carousel__grid {
    grid-template-columns: 2fr 1fr;
  }

  .hero-carousel__side {
    flex-direction: column;
    overflow-x: visible;
  }

  .hero-carousel__side-item {
    min-width: 0;
    max-height: none;
  }

  .hero-carousel__main {
    aspect-ratio: 16 / 10;
  }

  /* Latest News */
  .latest-news-layout {
    grid-template-columns: 2fr 1fr;
  }

  .latest-news__sidebar {
    display: block;
  }

  /* Trending */
  .trending-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Discover */
  .discover-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Card Cluster */
  .card-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .card-cluster--reversed {
    direction: rtl;
  }

  .card-cluster--reversed > * {
    direction: ltr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: span 1;
  }

  /* Section Padding */
  .section-premium {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-standard {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-compact {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

}


/* ==========================================================================
   @media (min-width: 1280px) - xl
   ========================================================================== */

@media (min-width: 1280px) {

  .trending-section__grid {
    grid-template-columns: repeat(6, 1fr);
  }

}
