/* Mobile Navigation Styles */

/* Hide mobile navigation elements by default (desktop view) */
.mobile-nav-button,
.mobile-nav,
.mobile-nav-overlay {
    display: none;
}

/* Mobile Navigation Button (Hamburger) */
.mobile-nav-button {
    float: right;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-nav-button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger-menu {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu div {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-menu .top-bun {
    /* Top bar */
}

.hamburger-menu .meat {
    /* Middle bar */
}

.hamburger-menu .bottom-bun {
    /* Bottom bar */
}

/* Hamburger animation on hover */
.mobile-nav-button:hover .hamburger-menu div {
    width: 100%;
}

.mobile-nav-button:hover .hamburger-menu .top-bun {
    animation: burger-hover 0.8s infinite ease-in-out alternate;
}

.mobile-nav-button:hover .hamburger-menu .meat {
    animation: burger-hover 0.8s infinite ease-in-out alternate forwards 150ms;
}

.mobile-nav-button:hover .hamburger-menu .bottom-bun {
    animation: burger-hover 0.8s infinite ease-in-out alternate forwards 300ms;
}

@keyframes burger-hover {
    0% {
        width: 100%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #1a1b1d;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    left: 0;
}

/* Mobile Navigation Header */
.mobile-nav-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-close {
    cursor: pointer;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.mobile-nav-close:hover {
    color: #ccc;
}

/* Mobile Page Top (Social Media) */
.mobile-pagetop {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.mobile-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-socials a {
    color: white;
    text-decoration: none;
}

.mobile-socials a:hover {
    color: #ccc;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    display: block;
    border-bottom: 1px solid #333;
}

.mobile-nav-list > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-nav-list > li > a:hover {
    background-color: #333;
    color: white;
}

/* Mobile Dropdown Menus */
.mobile-nav-list .dropdown-toggle > a::after {
    content: "+";
    float: right;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mobile-nav-list .dropdown-toggle.open > a::after {
    transform: rotate(45deg);
}

.mobile-nav-list .dropdown-menu.mobile-dropdown {
    display: none;
    background-color: #2a2b2d;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list .dropdown-menu.mobile-dropdown.open {
    display: block !important;
}

.mobile-nav-list .dropdown-menu.mobile-dropdown li a {
    display: block;
    padding: 12px 40px;
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.mobile-nav-list .dropdown-menu.mobile-dropdown li a:hover {
    background-color: #333;
    color: white;
}

/* Third level dropdowns */
.mobile-nav-list
    .dropdown-menu.mobile-dropdown
    .dropdown-menu.mobile-dropdown
    li
    a {
    padding-left: 60px;
    font-size: 13px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 1120px) {
    /* Hide desktop navigation */
    .desktop-nav {
        display: none !important;
    }

    /* Show mobile navigation button */
    .mobile-nav-button {
        display: flex !important;
    }

    /* Hide page top on mobile */
    #pagetop {
        display: none;
    }
}

@media only screen and (min-width: 1121px) {
    /* Ensure mobile elements are hidden on desktop */
    .mobile-nav-button,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }

    /* Ensure desktop navigation is visible */
    .desktop-nav {
        display: block !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open {
    overflow: hidden;
}

