/**
 * Mobile Navigation Styles
 * Hamburger menu and responsive navigation
 */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu - Fullscreen with transparency */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mobile-menu.active {
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 15px 40px;
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.05);
}

/* Theme Toggle Adjustments */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    z-index: 100;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show sun in dark mode, moon in light mode */
.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Responsive - Show hamburger on tablet/mobile */
@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .main-header nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .hamburger-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .mobile-menu a {
        font-size: 1.3rem;
        padding: 12px 30px;
    }

    .logo {
        font-size: 1.4rem;
    }
}