/* ========================================
   MOBILE STYLES - JonaTech Cloud Solutions
   Dedicated mobile CSS to avoid conflicts
   ======================================== */

/* Mobile Navigation - Full Width Menu */
@media (max-width: 768px) {
  /* Ensure nav container has positioning context */
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }
  
  .nav {
    position: relative !important;
  }
  
  nav {
    width: 100% !important;
    position: relative !important;
  }
  
  /* Hide menu by default */
  nav ul {
    display: none !important;
    position: absolute !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: rgba(11, 15, 26, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    flex-direction: column !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    z-index: 9998 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Show menu when open */
  nav ul.open {
    display: flex !important;
    animation: slideDown 0.3s ease forwards !important;
  }
  
  /* Menu items */
  nav ul li {
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    list-style: none !important;
  }
  
  nav ul li:last-child {
    border-bottom: none !important;
  }
  
  /* Menu links */
  nav ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 0.65rem 1.5rem !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    min-height: 44px !important;
    text-decoration: none !important;
    background: transparent !important;
  }
  
  nav ul li a:hover,
  nav ul li a:active {
    background: rgba(108, 140, 255, 0.2) !important;
    color: #6c8cff !important;
  }
  
  nav ul li a::after {
    display: none !important;
  }
  
  /* Mobile "More" Dropdown */
  .menu-more {
    position: relative !important;
  }
  
  .more-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    color: #ffffff !important;
  }
  
  .more-toggle i {
    transition: transform 0.3s ease !important;
    margin-left: auto !important;
  }
  
  /* Rotate caret when open */
  .menu-more.open .more-toggle i {
    transform: rotate(180deg) !important;
  }
  
  /* Dropdown container - PROFESSIONAL DARK THEME */
  .more-dropdown {
    position: static !important;
    display: none !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-width: 100% !important;
    z-index: 9999 !important;
    list-style: none !important;
  }
  
  /* Show dropdown when open */
  .menu-more.open .more-dropdown {
    display: block !important;
  }
  
  /* Dropdown items */
  .more-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-left: 0 !important;
    padding-left: 2rem !important;
    background: transparent !important;
    list-style: none !important;
  }
  
  .more-dropdown li:last-child {
    border-bottom: none !important;
  }
  
  /* Dropdown links - PROFESSIONAL WHITE TEXT */
  .more-dropdown a {
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    min-height: 44px !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
  }
  
  .more-dropdown a:hover,
  .more-dropdown a:active {
    background: rgba(108, 140, 255, 0.3) !important;
    color: #ffffff !important;
  }
  
  /* Visual feedback when More is open */
  .menu-more.open > .more-toggle {
    background: rgba(108, 140, 255, 0.15) !important;
    color: #6c8cff !important;
  }
  
  /* Show hamburger menu toggle */
  .menu-toggle {
    display: inline-flex !important;
    z-index: 9999 !important;
  }
  
  .menu-toggle span {
    background-color: white !important;
  }
  
  /* Slide down animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Tablet adjustments */
@media (max-width: 900px) and (min-width: 769px) {
  .more-dropdown {
    position: static !important;
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .more-dropdown a {
    color: #ffffff !important;
  }
}

/* Very small phones */
@media (max-width: 375px) {
  nav ul {
    max-height: 75vh !important;
  }
  
  nav ul li a {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
  }
  
  .more-dropdown a {
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem !important;
  }
}
