/* Mobile Menu Styles — same animation as img-master-tmpl/component-navigation.html */

/* Mobile Menu Overlay */
#mobileMenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(16, 23, 61, 0.76);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenuOverlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
#mobileMenuPanel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    min-width: 280px;
    background-color: #282a5e;
    box-shadow: -8px 0 30px rgba(13, 19, 54, 0.5);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

#mobileMenuPanel.open {
    transform: translateX(0);
}

/* Mobile Menu Header */
#mobileMenuPanel .flex.flex-col.h-full > div:first-child,
#mobileMenuPanel .flex.h-full.flex-col > div:first-child {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Content */
#mobileMenuPanel .flex-1 {
    padding: 1.5rem;
}

/* Mobile Menu Footer */
#mobileMenuPanel .p-6.border-t {
    background-color: #1e2149;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Navigation Links */
#mobileMenuPanel nav a {
    display: block;
    padding: 0.75rem 0;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

#mobileMenuPanel nav a:hover {
    color: #dac076;
    border-left-color: #dac076;
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 0.75rem;
}

/* Mobile Menu Section Headers */
#mobileMenuPanel h3 {
    color: #dac076 !important;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Contact / Footer icons */
#mobileMenuPanel .flex.items-start.space-x-3,
#mobileMenuPanel .flex.items-center.space-x-3 {
    margin-bottom: 0.75rem;
}

#mobileMenuPanel .border-t svg {
    color: #dac076;
    flex-shrink: 0;
}

/* Hamburger Button */
#mobileMenuBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

#mobileMenuBtn svg {
    width: 2.25rem;
    height: 2.25rem;
    pointer-events: none;
}

#mobileMenuBtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #dac076;
}

/* Close Button */
#mobileMenuClose {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#mobileMenuClose:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobileMenuClose svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
}

@media (max-width: 480px) {
    #mobileMenuPanel .flex-1 {
        padding: 1rem;
    }
    #mobileMenuPanel .p-6.border-t {
        padding: 1rem;
    }
}

#mobileMenuPanel.hidden {
    display: none !important;
}

#mobileMenuOverlay.hidden {
    display: none !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Animation for mobile menu items (same as reference) */
#mobileMenuPanel nav a {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.3s ease forwards;
}

#mobileMenuPanel nav a:nth-child(1) { animation-delay: 0.1s; }
#mobileMenuPanel nav a:nth-child(2) { animation-delay: 0.2s; }
#mobileMenuPanel nav a:nth-child(3) { animation-delay: 0.3s; }
#mobileMenuPanel nav a:nth-child(4) { animation-delay: 0.4s; }
#mobileMenuPanel nav a:nth-child(5) { animation-delay: 0.5s; }
#mobileMenuPanel nav a:nth-child(6) { animation-delay: 0.6s; }
#mobileMenuPanel nav a:nth-child(7) { animation-delay: 0.7s; }
#mobileMenuPanel nav a:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #mobileMenuPanel,
    #mobileMenuOverlay,
    #mobileMenuPanel nav a {
        transition: none !important;
        animation: none !important;
    }
}

#mobileMenuPanel {
    display: block !important;
}

#mobileMenuPanel {
    z-index: 9999 !important;
}

#mobileMenuOverlay {
    z-index: 9998 !important;
}
