/* Mobile Burger Menu Styles
 * Responsive navigation menu for mobile devices
 * Uses Tailwind-compatible approach with custom animations
 * Supports light and dark modes
 */

/* Burger button - visible only on mobile */
.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 50;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #5e5e5e; /* Light mode: brand-secondaryLight */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.dark .mobile-menu-button span {
    background-color: #a0a0a0; /* Dark mode: brand-secondaryDark */
}

/* Burger animation when menu is open */
.mobile-menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(246, 245, 244, 0.98); /* Light mode: brand-lightBg with opacity */
    backdrop-filter: blur(12px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.dark .mobile-menu {
    background-color: rgba(11, 17, 32, 0.98); /* Dark mode: brand-darkBg with opacity */
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 50;
    padding: 0;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #5e5e5e; /* Light mode: brand-secondaryLight */
    border-radius: 2px;
}

.dark .mobile-menu-close::before,
.dark .mobile-menu-close::after {
    background-color: #a0a0a0; /* Dark mode: brand-secondaryDark */
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover::before,
.mobile-menu-close:hover::after {
    background-color: #3584e4; /* Hover: brand-logo */
}

/* Mobile menu navigation */
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 60px;
}

.mobile-menu nav a {
    padding: 16px 20px;
    font-size: 18px;
    color: #1e1e1e; /* Light mode: brand-textLight */
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dark .mobile-menu nav a {
    color: #f0f0f0; /* Dark mode: brand-textDark */
}

.mobile-menu nav a:hover,
.mobile-menu nav a:active {
    color: #3584e4; /* brand-logo */
    background-color: rgba(53, 132, 228, 0.1);
}

/* Special styling for CTA buttons in mobile menu */
.mobile-menu nav a.btn-outline {
    border: 2px solid #5e5e5e; /* Light mode: brand-secondaryLight */
    color: #1e1e1e; /* Light mode: brand-textLight */
}

.dark .mobile-menu nav a.btn-outline {
    border: 2px solid #a0a0a0; /* Dark mode: brand-secondaryDark */
    color: #f0f0f0; /* Dark mode: brand-textDark */
}

.mobile-menu nav a.btn-outline:hover {
    border-color: #62a0ea; /* brand-accent */
    color: #62a0ea;
    background-color: rgba(98, 160, 234, 0.1);
}

.mobile-menu nav a.btn-primary {
    background-color: #3584e4; /* brand-button */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.mobile-menu nav a.btn-primary:hover {
    background-color: #1a5fb4; /* brand-deep */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

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

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-menu-button,
    .mobile-menu {
        display: none !important;
    }
}
