/* Responsive Layout Overrides */

@media (max-width: 1024px) {
  :root {
    --container-width: 960px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
  }
  
  .footer-newsletter {
    grid-column: span 3;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  /* Navigation */
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 5, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    border-right: 1px solid rgba(124, 58, 237, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  body.light-theme .nav-links {
    background: rgba(248, 250, 252, 0.98);
    border-right: 1px solid rgba(124, 58, 237, 0.08);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:hover, .nav-link.active {
    background: var(--button-hover-bg);
  }

  /* Grid Restructuring */
  .grid-3, .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .footer-newsletter {
    grid-column: span 2;
  }
  
  /* Hero Banner adjustments */
  .hero-section {
    padding: 60px 0 !important;
    text-align: center;
  }
  
  .hero-title {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }
  
  .hero-subtitle {
    font-size: 16px !important;
    margin: 0 auto 24px auto !important;
  }
  
  .hero-search-wrapper {
    max-width: 100% !important;
  }
  
  /* Explore page structure */
  .explore-container {
    flex-direction: column;
  }
  
  .explore-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    margin-bottom: 24px;
  }
  
  .explore-sidebar-content {
    display: none;
  }
  
  .explore-sidebar.active .explore-sidebar-content {
    display: block;
    margin-top: 12px;
  }
  
  .explore-sidebar-toggle-btn {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
  }
  
  /* Detail Page adjustments */
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-newsletter {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .brand-text {
    font-size: 18px;
  }
  
  .logo-wrapper {
    width: 36px;
    height: 36px;
  }
}
