/* 移动端菜单样式 - Journal Entries */

/* 汉堡菜单按钮 */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: #374151;
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }
.hamburger-line:nth-child(3) { top: 16px; }

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* 移动端菜单覆盖层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
}

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

/* 移动端菜单内容 */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    padding: 20px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* 移动端菜单链接 */
.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-menu-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(4px);
}

.mobile-menu-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.mobile-menu-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 移动端菜单关闭按钮 */
.mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background-color: #f3f4f6;
}

.mobile-close-btn:active {
    background-color: #e5e7eb;
}

.mobile-close-btn i {
    color: #374151;
    font-size: 18px;
}

/* 导航栏响应式 */
@media (min-width: 1024px) {
    .nav-desktop\:flex {
        display: flex !important;
    }

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