/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    margin-left: auto;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar {
    background-color: var(--text-primary);
}

/* Responsive Navigation */
@media screen and (max-width: 1300px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 300px;
        height: auto;
        transition: 0.3s ease-in-out;
        padding: 80px 0 20px;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 2px 0;
        padding: 4px 30px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .nav-links a:not(.btn):hover {
        background-color: var(--bg-elevated);
        margin: 2px 0;
        padding: 4px 30px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .nav-links a[aria-current="page"] {
        background-color: var(--bg-elevated);
        margin: 2px 0;
        padding: 4px 30px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .nav-divider {
        width: 80%;
        height: 1px;
        background-color: var(--border-color);
        margin: 10px auto;
    }

    /* Container for login/register buttons */
    .nav-links > :last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 4px;
    }

    .nav-links .btn {
        margin: 0;
        width: 240px;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 8px 0;
        box-sizing: border-box;
        flex-direction: row;
        white-space: nowrap;
    }

    .nav-links .btn i {
        margin-right: 8px;
        flex-shrink: 0;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
