/* ================================================
   TECHCRUZE.COM — RESPONSIVE STYLES
   Mobile-first: 375px base → 768px → 1024px → 1280px
   ================================================ */

/* ==========================================
   BASE: Mobile (375px+)
   ========================================== */

/* Navigation */
.nav-links,
.btn-nav {
  display: none;
}

.hamburger {
  display: flex;
}

/* Hero */
.hero h1 {
  font-size: 28px;
}

.hero-desc {
  font-size: var(--size-body);
}

.hero-actions {
  flex-direction: column;
  align-items: stretch;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  justify-content: center;
}

.trust-badges {
  gap: var(--space-md);
}

/* Grids */
.grid-3,
.grid-2 {
  grid-template-columns: 1fr;
}

.categories-grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* Layout */
.layout-70-30 {
  grid-template-columns: 1fr;
}

.sidebar {
  display: grid;
  grid-template-columns: 1fr;
}

/* Footer */
.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.footer-legal {
  flex-direction: column;
  align-items: flex-start;
}

/* Pros/Cons */
.pros-cons-box {
  grid-template-columns: 1fr;
}

/* Review score box */
.score-header {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.score-number {
  font-size: 48px;
}

/* Article layout */
.article-layout {
  grid-template-columns: 1fr;
}

/* Newsletter form */
.newsletter-form {
  flex-direction: column;
}

/* Comparison tables */
.comparison-table {
  font-size: var(--size-tiny);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-sm);
}

/* Scroll top */
.scroll-top {
  bottom: var(--space-lg);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* Section spacing */
.section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-size: 24px;
}

/* Filter bar */
.filter-bar {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: var(--space-xs);
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Affiliate hero */
.affiliate-hero h1 {
  font-size: 28px;
}

/* Review header */
.review-header h1,
.article-header h1 {
  font-size: 28px;
}

/* Article cover */
.article-cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
}

/* Pricing / rating tables */
.pricing-table,
.rating-table {
  font-size: var(--size-tiny);
}

.pricing-table th,
.pricing-table td,
.rating-table th,
.rating-table td {
  padding: var(--space-sm);
}

/* Hide rating bar on small screens */
.rating-bar-wrap {
  display: none;
}

/* Pagination */
.pagination {
  gap: var(--space-xs);
}

.page-btn {
  width: 36px;
  height: 36px;
  font-size: var(--size-tiny);
}

/* ==========================================
   TABLET: 768px+
   ========================================== */
@media (min-width: 768px) {

  /* Hero */
  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Pros/Cons */
  .pros-cons-box {
    grid-template-columns: 1fr 1fr;
  }

  /* Review score box */
  .score-header {
    flex-direction: row;
    align-items: center;
  }

  .score-number {
    font-size: 56px;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: row;
  }

  /* Sidebar */
  .sidebar {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Section title */
  .section-title {
    font-size: var(--size-h2);
  }

  /* Rating bar */
  .rating-bar-wrap {
    display: block;
  }

  /* Affiliate hero */
  .affiliate-hero h1 {
    font-size: 36px;
  }

  /* Review / article header */
  .review-header h1,
  .article-header h1 {
    font-size: 36px;
  }

  /* Pagination */
  .page-btn {
    width: 40px;
    height: 40px;
    font-size: var(--size-small);
  }
}

/* ==========================================
   LAPTOP: 1024px+
   ========================================== */
@media (min-width: 1024px) {

  /* Navigation — show desktop nav */
  .nav-links {
    display: flex;
  }

  .btn-nav {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  /* Hero */
  .hero h1 {
    font-size: var(--size-h1);
  }

  /* Grids */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Layout */
  .layout-70-30 {
    grid-template-columns: 1fr 320px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* Article layout */
  .article-layout {
    grid-template-columns: 1fr 320px;
  }

  /* Affiliate hero */
  .affiliate-hero h1 {
    font-size: var(--size-h1);
  }

  /* Review / article header */
  .review-header h1,
  .article-header h1 {
    font-size: var(--size-h1);
  }

  /* Footer legal */
  .footer-legal {
    flex-direction: row;
    align-items: center;
  }

  /* Comparison table */
  .comparison-table {
    font-size: var(--size-small);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-md);
  }
}

/* ==========================================
   DESKTOP: 1280px+
   ========================================== */
@media (min-width: 1280px) {

  .container {
    padding: 0 var(--space-lg);
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .layout-70-30 {
    grid-template-columns: 1fr 360px;
  }

  .article-layout {
    grid-template-columns: 1fr 360px;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .navbar,
  .threat-bar,
  .scroll-top,
  .sidebar,
  .newsletter-box,
  .affiliate-cta-box,
  .filter-bar,
  .pagination,
  .footer-socials {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .article-body {
    color: black;
  }

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

/* ==========================================
   ACCESSIBILITY: Reduced Motion
   ========================================== */
@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;
  }
}
