/* Advanced Slide Menu - CSS */

/* Hamburger Icon */
.asm-hamburger-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.asm-hamburger-icon span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Menu Overlay */
.asm-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Main Slide Menu */
.asm-slide-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.asm-slide-menu.active {
    left: 0;
}

.asm-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    min-height: 70px;
    align-items: center;
}

.asm-close-menu {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asm-close-menu:hover {
    color: #000;
}

.asm-main-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.asm-main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asm-main-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.asm-main-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.asm-main-menu a:hover {
    background: #f9f9f9;
}

.asm-main-menu .asm-arrow {
    font-size: 20px;
    color: #999;
    margin-left: auto;
}

.asm-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.asm-join-club-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.asm-join-club-btn:hover {
    background: #333;
    color: #fff;
}

.asm-login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.asm-login-link:hover {
    color: #000;
}

/* Submenu */
.asm-slide-submenu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.asm-slide-submenu.active {
    left: 0;
}

.asm-submenu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asm-back-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.asm-back-btn:hover {
    color: #000;
}

.asm-submenu-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.asm-submenu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asm-submenu-close:hover {
    color: #000;
}

.asm-slide-submenu nav {
    padding: 20px 0;
}

.asm-slide-submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asm-slide-submenu li {
    border-bottom: 1px solid #f5f5f5;
}

.asm-slide-submenu a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.asm-slide-submenu a:hover {
    background: #f9f9f9;
}

/* Responsive */
@media (min-width: 768px) {
    .asm-slide-menu,
    .asm-slide-submenu {
        width: 380px;
        left: -380px;
    }
}