/* ===========================================
   Luvr AI - Responsive Styles
   =========================================== */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

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

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

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

  .split-layout {
    gap: 30px;
  }

  .split-image {
    flex: 0 0 300px;
  }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 0;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-menu.active {
    opacity: 1;
    pointer-events: all;
  }

  .navbar-menu > a {
    padding: 20px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

  .navbar-menu > a:last-of-type {
    border-bottom: none;
  }

  .navbar-menu > a:hover {
    color: var(--primary-color);
  }

  .navbar-menu > a::after {
    display: none;
  }

  .navbar-menu.active > a,
  .navbar-menu.active > .navbar-cta.mobile {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-menu.active > a:nth-child(1) { transition-delay: 0.05s; }
  .navbar-menu.active > a:nth-child(2) { transition-delay: 0.1s; }
  .navbar-menu.active > a:nth-child(3) { transition-delay: 0.15s; }
  .navbar-menu.active > a:nth-child(4) { transition-delay: 0.2s; }
  .navbar-menu.active > a:nth-child(5) { transition-delay: 0.25s; }
  .navbar-menu.active > .navbar-cta.mobile { transition-delay: 0.3s; }

  .navbar-cta {
    display: none;
  }

  .navbar-cta.mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-cta.mobile .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 1.05rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .mobile-toggle span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-title {
    font-size: 2rem;
  }

  /* Article responsive */
  .article-section {
    padding: 50px 0;
  }

  .article-section h2 {
    font-size: 1.7rem;
  }

  .article-section h3 {
    font-size: 1.25rem;
  }

  .split-layout,
  .split-layout.reverse {
    flex-direction: column;
  }

  .split-image {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .inline-cta {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .toc ol {
    columns: 1;
  }

  .toc {
    padding: 25px;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

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

  section {
    padding: 60px 0;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  .article-section h2 {
    font-size: 1.5rem;
  }

  .callout, .callout-highlight {
    padding: 20px;
  }

  .inline-cta {
    padding: 20px;
  }
}
