/* 漢堡選單組件樣式 */

/* 漢堡按鈕 */
.hamburger-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: rgba(0, 200, 83, 0.1);
    border: 2px solid #00C853;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(0, 200, 83, 0.2);
    transform: scale(1.05);
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: #00C853;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 漢堡按鈕動畫（開啟時變成 X） */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* 遮罩層 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* 側滑選單 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(0, 11, 26, 0.98);
    backdrop-filter: blur(10px);
    border-left: 2px solid #00C853;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 5rem 0 2rem;
}

.mobile-menu.active {
    right: 0;
}

/* 選單項目 */
.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
}

.mobile-menu-item.primary {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 184, 212, 0.15));
    font-weight: 600;
    color: #00C853;
}

/* 選單分隔線 */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* 響應式斷點 */
@media (max-width: 1023px) {
    .hamburger-btn {
        display: flex;
    }

    .desktop-nav {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hamburger-btn {
        display: none !important;
    }

    .mobile-menu,
    .menu-overlay {
        display: none !important;
    }
}

/* 防止選單開啟時背景滾動 */
body.menu-open {
    overflow: hidden;
}