/**
 * assets/css/responsive.css
 * Responsive Styles
 * Argon Bangunan Cerdas Theme
 */

/* =========================================
   TABLET LANDSCAPE (992px and below)
========================================= */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   TABLET PORTRAIT (768px and below)
========================================= */
@media (max-width: 768px) {
  :root {
    --font-size-2xl: 28px;
    --font-size-xl: 22px;
    --font-size-lg: 17px;
    --space-xl: 2rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    text-align: center;
  }

  .main-navigation li {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .footer-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Cards */
  .card {
    padding: var(--space-md);
  }

  /* Product gallery */
  .product-content-wrapper {
    grid-template-columns: 1fr;
  }

  .product-gallery-wrapper,
  .product-summary-wrapper {
    width: 100%;
  }
}

/* =========================================
   MOBILE (480px and below)
========================================= */
@media (max-width: 480px) {
  :root {
    --font-size-2xl: 24px;
    --font-size-xl: 20px;
    --font-size-lg: 16px;
    --space-xl: 1.5rem;
    --container-padding: 1rem;
  }

  body {
    font-size: 15px;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 15px;
  }

  .slider-nav.prev {
    left: 0.5rem;
  }

  .slider-nav.next {
    right: 0.5rem;
  }

  .slider-indicators {
    padding: var(--space-sm);
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 24px;
  }

  .card-title {
    font-size: var(--font-size-lg);
  }

  .site-description {
    font-size: 13px;
  }

  .theme-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 14px;
  }

  .search-form {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .search-field,
  .search-submit {
    width: 100%;
  }

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

  .author-avatar {
    margin: 0 auto var(--space-md);
  }
}

/* =========================================
   LARGE SCREENS (1400px and above)
========================================= */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1320px;
  }
}

/* =========================================
   EXTRA LARGE SCREENS (1600px and above)
========================================= */
@media (min-width: 1600px) {
  :root {
    --container-max-width: 1440px;
    --font-size-2xl: 36px;
    --font-size-xl: 26px;
  }
}

/* =========================================
   PRINT STYLES
========================================= */
@media print {
  .site-header,
  .site-footer,
  .slider-nav,
  .slider-indicators,
  .theme-toggle,
  .comments-area {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #666;
  }
}

/* =========================================
   ACCESSIBILITY HELPERS
========================================= */
/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  z-index: 100000;
  padding: 8px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 6px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-text-primary);
  display: block;
  font-size: var(--font-size-base);
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}
