/**
 * CareerPath Guide - Responsive Stylesheet
 * Complete viewport support: 320px, 375px, 425px, 768px, 1024px, 1366px, 1920px
 */

/* Large Desktops / 1366px & 1920px */
@media (min-width: 1440px) {
  :root {
    --container-max: 1280px;
  }
}

/* Tablets and Desktops <= 1024px */
@media (max-width: 1024px) {
  .guides-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-pills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-split {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    order: 2;
  }

  .header-search-form__input {
    width: 200px;
  }
  
  .header-search-form__input:focus {
    width: 240px;
  }
}

/* Mobile & Small Tablets <= 768px */
@media (max-width: 768px) {
  .site-tagline {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 99;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    white-space: normal;
  }

  .primary-nav__link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-surface-raised);
  }

  .mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-editorial {
    padding: 2.5rem 0 2rem;
  }

  .hero-editorial__title {
    font-size: 1.85rem;
  }

  .hero-editorial__lead {
    font-size: 1rem;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .guides-grid--3col,
  .guides-grid--2col {
    grid-template-columns: 1fr;
  }

  .category-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-card {
    padding: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__button {
    min-height: 44px;
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-box__avatar {
    width: 80px;
    height: 80px;
  }

  .table-content {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small Smart Phones <= 425px & 320px */
@media (max-width: 425px) {
  .site-header__top-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header-search-form {
    order: 3;
    width: 100%;
  }

  .header-search-form__input {
    width: 100%;
  }

  .header-search-form__input:focus {
    width: 100%;
  }

  .category-pills-grid {
    grid-template-columns: 1fr;
  }

  .hero-editorial__title {
    font-size: 1.6rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .section-header--flex {
    flex-direction: column;
    align-items: flex-start;
  }
}
