/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE.CSS - Mobile & Tablet Fallback Styles
   PMVW Landing Page - Phase 5
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   MOBILE FALLBACK (< 768px)
   Remove TV metaphor, use traditional scroll
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide living room elements */
  .living-room,
  .tv-hero-fixed,
  .zoom-scroll,
  .lamp-glow-overlay {
    display: none !important;
  }

  /* Reset TV screen to normal flow */
  .tv-screen {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  .tv-screen__content {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  /* Hide TV hero image on mobile */
  .tv-hero {
    display: none;
  }

  /* Section adjustments */
  .section {
    min-height: auto;
    padding: var(--space-12) var(--space-4);
  }

  .section--compact {
    padding: var(--space-8) var(--space-4);
  }

  /* Hero adjustments */
  .section--hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
  }

  .hero-tagline {
    font-size: var(--text-3xl);
  }

  .hero-tagline-emphasis {
    font-size: var(--text-lg);
  }

  /* Features logo - smaller on mobile */
  .features-logo__image {
    width: 64px;
    height: 64px;
  }

  /* Features grid - single column, tight TV UI feel */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Use cases - reset for normal flow on mobile */
  .section[data-section="use-cases"] {
    position: static;
    padding: var(--space-8) var(--space-4);
  }

  .section[data-section="use-cases"] .section-heading {
    display: block;
  }

  .use-cases-grid {
    position: static;
    height: auto;
  }

  .use-case-caption h4 {
    font-size: var(--text-xs);
  }

  .use-case-caption p {
    display: none;
  }

  .feature-card {
    padding: var(--space-5) var(--space-5);
  }

  /* Steps - smaller */
  .step {
    gap: var(--space-3);
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: var(--text-xs);
  }

  /* Price card */
  .price-card {
    padding: var(--space-6);
    max-width: 100%;
  }

  .price-amount {
    font-size: var(--text-3xl);
  }

  /* Buttons */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Section headings */
  .section-heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
  }

  /* Rating stars */
  .rating-star {
    width: 24px;
    height: 24px;
  }

  /* Divider */
  .divider {
    width: 80%;
  }

  /* Requirements list */
  .requirements-list {
    align-items: flex-start;
    padding-left: var(--space-4);
  }
}

/* ─────────────────────────────────────────
   TABLET (768px - 1024px)
   Scale living room, adjust TV bounds
   ───────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Slightly smaller text */
  .hero-tagline {
    font-size: clamp(1.25rem, 4vw, var(--text-3xl));
  }

  .hero-subtitle {
    font-size: var(--text-sm);
  }

  /* Features - 2 columns on tablet, TV UI gaps */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  /* 7-card grid: 3x3 on tablet with last card centered, TV UI gaps */
  .features-grid--7 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .features-grid--7 .feature-card:last-child {
    grid-column: 2;
  }

  /* Only center last child for 3-card grids */
  .features-grid:not(.features-grid--7) .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  /* Smaller padding */
  .section {
    padding: var(--space-6) var(--space-4);
  }

  /* Smaller nav dots */
  .floating-nav {
    left: 1%;
  }

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

/* ─────────────────────────────────────────
   LARGE DESKTOP (1440px+)
   Enhanced spacing and fonts
   ───────────────────────────────────────── */
@media (min-width: 1440px) {
  .section {
    padding: var(--space-10) var(--space-8);
  }

  .hero-tagline {
    font-size: var(--text-5xl);
  }

  .section-heading {
    font-size: var(--text-4xl);
  }

  .feature-card {
    padding: var(--space-6) var(--space-8);
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .price-card {
    padding: var(--space-10);
  }
}

/* ─────────────────────────────────────────
   TOUCH DEVICE OPTIMIZATIONS
   ───────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-dot {
    width: 16px;
    height: 16px;
    margin: var(--space-2) 0;
  }

  /* Show labels always on touch (no hover) */
  .nav-label {
    display: none;
  }

  /* Disable hover transforms on touch */
  .feature-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ─────────────────────────────────────────
   LANDSCAPE MOBILE
   ───────────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
  .section {
    min-height: auto;
    padding: var(--space-6) var(--space-4);
  }

  .section--hero {
    padding: var(--space-8) var(--space-4);
  }

  /* 2-column features in landscape */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─────────────────────────────────────────
   HIGH CONTRAST MODE
   ───────────────────────────────────────── */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid var(--white);
  }

  .btn-secondary {
    border-width: 3px;
  }

  .feature-card {
    border: 1px solid var(--tv-ui-text-secondary);
  }

  .testimonial-card {
    border-left-width: 6px;
  }

  .nav-dot {
    border-width: 3px;
  }
}

/* ─────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────── */
@media print {
  .living-room,
  .tv-hero-fixed,
  .zoom-scroll,
  .floating-nav,
  .scroll-hint,
  .lamp-glow-overlay {
    display: none !important;
  }

  .tv-screen {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  .section {
    page-break-inside: avoid;
    padding: 2rem 1rem;
  }

  .btn {
    border: 1px solid currentColor;
  }
}
