/* ========================================
   MOBILE MENU PANEL STYLES
   Functional hamburger menu with smooth animations
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 24px;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    color: #30D5C8;
    transform: scale(1.1);
}

.mobile-menu:focus {
    outline: 2px solid #30D5C8;
    outline-offset: 2px;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 80px 0 40px;
}

.mobile-menu-panel.active {
    right: 0;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links li a {
    display: block;
    padding: 18px 24px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-links li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: rgba(48, 213, 200, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-nav-links li a:hover::before,
.mobile-nav-links li a:focus::before {
    width: 100%;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a:focus {
    color: #30D5C8;
    padding-left: 32px;
}

/* Overlay behind menu */
.mobile-menu-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
}

.mobile-menu-panel.active::before {
    opacity: 1;
    visibility: visible;
}

/* Close icon animation */
.mobile-menu[aria-expanded="true"] i::before {
    content: "\f00d"; /* FontAwesome times icon */
}

/* Show mobile menu toggle on smaller screens */
@media (max-width: 1024px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none !important;
    }
}

/* Desktop view - hide mobile menu */
@media (min-width: 1025px) {
    .mobile-menu,
    .mobile-menu-panel {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-panel,
    .mobile-menu,
    .mobile-nav-links li a {
        transition: none;
    }
}

/* Dark theme support */
[data-theme="dark"] .mobile-menu-panel {
    background: #1a1a1a;
}

[data-theme="dark"] .mobile-nav-links li {
    border-bottom-color: #333;
}

[data-theme="dark"] .mobile-nav-links li a {
    color: #ffffff;
}

[data-theme="dark"] .mobile-menu {
    color: #ffffff;
}
