/* Shared Custom Navigation Styles (Mobile & Desktop) - Hero Dark Theme */

/* Hide custom nav elements by default */
.custom-mobile-nav, .mobile-menu-overlay, .custom-desktop-header {
  display: none !important;
}

/* Mobile viewport styles */
@media (max-width: 768px) {
  /* Hide default React header, static navbars, and custom desktop header */
  #root header, body > nav, header, nav, .custom-desktop-header {
    display: none !important;
  }

  /* Custom mobile navbar */
  .custom-mobile-nav {
    display: flex !important;
    background: #0f172a;
    height: 68px;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #f97316;
  }

  /* Padding for body to prevent content from going under fixed navbar */
  body {
    padding-top: 68px !important;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .mobile-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .mobile-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }

  .mobile-sub {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 400;
  }

  /* Hamburger Menu Button */
  .mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 10000;
  }

  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: #f97316;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Transform Hamburger to X when open */
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  /* Fullscreen Menu Drawer Overlay */
  .mobile-menu-overlay {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 9998;
    padding: 2.5rem 2rem;
    gap: 1.25rem;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
  }

  .mobile-menu-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-link {
    color: #cbd5e1;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-link::after {
    content: '→';
    opacity: 0.5;
    transition: transform 0.2s;
  }

  .mobile-nav-link:active, .mobile-nav-link.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
  }

  .mobile-nav-link.active::after {
    opacity: 1;
    color: #f97316;
    transform: translateX(4px);
  }

  .mobile-cta-btn {
    background: #f97316;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    transition: background 0.2s;
  }

  .mobile-cta-btn:active {
    background: #ea580c;
  }
}

/* Desktop viewport styles - Dark Slate & Black Theme */
@media (min-width: 769px) {
  /* Hide default React header and static navbars */
  #root header, body > nav, header, nav {
    display: none !important;
  }
  
  /* Show custom desktop header */
  .custom-desktop-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  }

  /* Padding for body to prevent content from going under fixed navbar */
  body {
    padding-top: 110px !important; /* 42px top bar + 68px main bar */
  }

  .custom-desktop-header .top-bar {
    background-color: #0f172a; /* Dark slate */
    color: #cbd5e1;
    height: 42px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .custom-desktop-header .top-bar-left {
    display: flex;
    gap: 1.5rem;
    color: #94a3b8;
  }

  .custom-desktop-header .top-bar-right {
    display: flex;
    gap: 1.5rem;
  }

  .custom-desktop-header .top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
  }

  .custom-desktop-header .top-bar a:hover {
    color: #f97316; /* Accent orange */
  }

  .custom-desktop-header .main-bar {
    background-color: #0a0a0a; /* Dark black (matches hero bg) */
    height: 68px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f97316; /* Orange accent line */
  }

  .custom-desktop-header .desktop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .custom-desktop-header .desktop-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }

  .custom-desktop-header .desktop-title {
    color: #ffffff; /* White text */
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .custom-desktop-header .desktop-sub {
    color: #94a3b8; /* Slate gray */
    font-size: 0.75rem;
    font-weight: 500;
  }

  .custom-desktop-header .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .custom-desktop-header .desktop-nav-links > a, 
  .custom-desktop-header .desktop-nav-links .dropdown-btn {
    color: #cbd5e1; /* Off-white */
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .custom-desktop-header .desktop-nav-links > a:hover, 
  .custom-desktop-header .desktop-nav-links .dropdown-btn:hover {
    color: #f97316; /* Orange hover */
  }

  /* Dropdown container */
  .custom-desktop-header .dropdown-container {
    position: relative;
  }

  /* Dropdown menu list */
  .custom-desktop-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #0f172a; /* Dark slate */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #1e293b;
    padding: 0.75rem 0;
    display: none;
    z-index: 10000;
  }

  .custom-desktop-header .dropdown-container:hover .dropdown-menu {
    display: block;
    will-change: transform, opacity;
    animation: desktopSlideDown 0.2s ease-out;
  }

  .custom-desktop-header .dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }

  .custom-desktop-header .dropdown-item:hover {
    background-color: #f97316;
    color: #ffffff;
  }

  @keyframes desktopSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Custom slider styles for Catalog page */
.left-50-pct {
  left: 50% !important;
}
.slider-dot.active-dot {
  width: 16px !important;
  background-color: #f97316 !important;
}
