/**
 * FURNOSTYLES — RESPONSIVE CSS
 * =============================
 * File: assets/css/responsive.css
 * Purpose: All @media breakpoint overrides for the above three files.
 *          Breakpoints: 1080px (tablet), 760px (mobile), 520px (small mobile).
 *          Also includes prefers-reduced-motion override block.
 *
 * Load order: 4 of 4 (always last)
 * Class prefix: fns-
 *
 * REUSABLE DESIGN SYSTEM:
 * - Responsive breakpoints for consistent scaling
 * - Grid system adjustments for smaller screens
 * - Typography scaling for mobile
 * - Reduced motion support for accessibility
 */

/* ============================================================
   TABLET LANDSCAPE (1080px and below)
============================================================ */

@media (max-width: 1080px) {
  :root {
    --fns-container-padding: 20px;
  }

  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  .fns-hero-title {
    font-size: 52px;
  }

  .fns-hero-subtitle {
    font-size: 19px;
  }

  .fns-section-title {
    font-size: 40px;
  }

  .fns-section-subtitle {
    font-size: 17px;
  }

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

  .fns-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--fns-spacing-lg);
  }

  .premium-header {
    flex-wrap: wrap;
  }

  .fld-youtube-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: var(--fns-spacing-md);
  }
}

/* ============================================================
   TABLET PORTRAIT (760px and below)
============================================================ */

@media (max-width: 760px) {
  :root {
    --fns-container-padding: 16px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }

  .fns-hero-title {
    font-size: 44px;
  }

  .fns-hero-subtitle {
    font-size: 17px;
  }

  .fns-section-title {
    font-size: 34px;
  }

  .fns-section-subtitle {
    font-size: 16px;
  }

  .fns-grid-4,
  .fns-grid-3,
  .fns-grid-2 {
    grid-template-columns: 1fr;
  }

  .fns-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--fns-spacing-md);
  }

  .fns-stat-item {
    padding: var(--fns-spacing-md);
  }

  .fns-stat-item h3 {
    font-size: 40px;
  }

  .fns-hero {
    padding: 100px var(--fns-container-padding) 80px;
    min-height: 65vh;
  }

  .fns-hero::before {
    background: rgba(11, 47, 58, 0.75);
  }

  .fns-hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .fns-hero-actions .fns-btn {
    width: 100%;
    max-width: 300px;
  }

  .premium-topbar {
    flex-direction: column;
    gap: var(--fns-spacing-sm);
    text-align: center;
  }

  .premium-topbar span:last-child b {
    margin: 0 var(--fns-spacing-xs);
  }

  .premium-brand {
    font-size: 20px;
  }

  .premium-brand img {
    height: 32px;
  }

  .fld-icon-actions {
    gap: var(--fns-spacing-xs);
  }

  .cart-float,
  .chat-float {
    padding: var(--fns-spacing-sm) var(--fns-spacing-md);
    font-size: 12px;
  }

  .chat-float {
    bottom: 72px;
  }
}

/* ============================================================
   MOBILE (520px and below)
============================================================ */

@media (max-width: 520px) {
  :root {
    --fns-container-padding: 12px;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .fns-hero-title {
    font-size: 36px;
  }

  .fns-hero-subtitle {
    font-size: 16px;
  }

  .fns-section-title {
    font-size: 28px;
  }

  .fns-section-subtitle {
    font-size: 15px;
  }

  .fns-stats {
    grid-template-columns: 1fr;
    gap: var(--fns-spacing-md);
  }

  .fns-stat-item h3 {
    font-size: 36px;
  }

  .fns-section {
    padding: var(--fns-spacing-2xl) 0;
  }

  .fns-hero {
    padding: 80px var(--fns-container-padding) 60px;
    min-height: 60vh;
  }

  .fns-hero::before {
    background: rgba(11, 47, 58, 0.8);
  }

  .fns-card {
    padding: var(--fns-spacing-md);
  }

  .fns-card:hover {
    transform: translateY(-3px);
  }

  .fns-card-image {
    height: 160px;
  }

  .premium-header {
    padding: var(--fns-spacing-sm) var(--fns-container-padding);
  }

  .fld-youtube-search input,
  .fld-youtube-search button {
    height: 38px;
  }

  .cart-float,
  .chat-float {
    right: 16px;
    bottom: 16px;
    padding: 10px 16px;
  }

  .chat-float {
    bottom: 68px;
  }
}

/* ============================================================
   REDUCED MOTION PREFERENCE
============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
