/* Responsive Styles */

/* Extra Large Devices (Desktops, 1200px and up) */
@media (max-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (max-width: 1200px) {
  html {
    font-size: 60%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .trending-image {
    height: 20rem;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-nav {
    justify-content: space-between;
    width: 100%;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 992px) {
  html {
    font-size: 56%;
  }

  .header-wrapper {
    height: 7rem;
  }

  .main-nav {
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background-color: white;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-sm);
  }

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

  .hero-content h2 {
    font-size: 3.6rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }

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

  .truth-feature {
    flex-direction: column;
  }

  .community-features {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    flex-direction: column;
  }

  .testimonial-slide {
    min-width: 100%;
  }

  .about-content {
    flex-direction: column;
  }

  .subscribe-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscribe-form {
    max-width: 100%;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: var(--space-xl) var(--space-xxl);
  }

  .footer-nav-column {
    flex-basis: calc(50% - var(--space-lg));
  }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (max-width: 768px) {
  html {
    font-size: 52%;
  }

  .header {
    height: 7rem;
  }

  .header-wrapper {
    height: 7rem;
  }

  .hero-content h2 {
    font-size: 3.2rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .community-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .feature-card,
  .trending-card,
  .truth-card,
  .community-feature,
  .testimonial-slide {
    padding: var(--space-md);
  }

  .trending-image {
    height: 18rem;
  }

  .community-cta .btn {
    display: block;
    width: 100%;
    margin: 0 0 var(--space-sm) 0;
  }

  .subscribe-form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-nav-column {
    flex-basis: 100%;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

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

  .header {
    height: 6rem;
  }

  .header-wrapper {
    height: 6rem;
  }

  .logo h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .main-nav {
    top: 6rem;
    padding: var(--space-sm);
  }

  .hero-section {
    padding: calc(var(--space-xl) * 2) 0 var(--space-xl);
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.6rem;
  }

  .section-heading h2 {
    font-size: 2.6rem;
  }

  .section-heading p {
    font-size: 1.6rem;
  }

  .trending-image {
    height: 16rem;
  }

  .feature-icon {
    font-size: 3.6rem;
  }

  .feature-card h3,
  .trending-content h3,
  .truth-header h3,
  .community-feature h3 {
    font-size: 1.8rem;
  }

  .subscribe-content h2 {
    font-size: 2.4rem;
  }

  .truth-feature {
    padding: var(--space-md);
  }

  .testimonial-slide {
    min-width: 100%;
  }
}