/* ==========================================================================
   SKINORIVA — RESPONSIVE & MOBILE-FIRST STYLESHEET
   Breakpoints: 320px, 375px, 414px, 768px, 1024px, 1280px, 1440px+
   ========================================================================== */

/* Mobile Drawer Styles */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.mobile-drawer.active {
  display: block;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 23, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-drawer.active .mobile-backdrop {
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100%;
  background: var(--color-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-header img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-list a {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-nav-list a:hover {
  color: var(--color-primary-dark);
  padding-left: 4px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: var(--space-xl);
}

/* Tablet & Large Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

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

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

  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .article-sidebar {
    margin-top: var(--space-3xl);
  }
}

/* Tablet Portrait & Small Tablet (<= 768px) */
@media (max-width: 768px) {
  :root {
    --space-2xl: 2rem;
    --space-3xl: 2.75rem;
    --header-height: 72px;
  }

  .brand-logo {
    height: 44px;
  }

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

  .hero-image-wrapper {
    order: -1;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Standard Mobile (<= 480px / 390px / 375px / 360px / 320px) */
@media (max-width: 480px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

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

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

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .ad-top-banner {
    min-height: 50px;
    max-height: 100px;
  }
}

/* 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;
  }
}

/* Print Stylesheet */
@media print {
  .site-header, .site-footer, .ad-slot, .newsletter-banner, .mobile-drawer, .search-modal {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
