/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #F2F2F2;
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background: rgba(147, 51, 234, 0.25);
    transform: scale(1.05);
}

:root[data-theme="light"] .theme-toggle-btn {
    background: rgba(242, 90, 56, 0.15);
    border-color: rgba(242, 90, 56, 0.3);
}

:root[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(242, 90, 56, 0.25);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(147, 51, 234, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    transition: all 0.3s ease;
}

.burger-menu:hover {
    background: rgba(147, 51, 234, 0.25);
}

:root[data-theme="light"] .burger-menu {
    background: rgba(242, 90, 56, 0.15);
    border-color: rgba(242, 90, 56, 0.3);
}

:root[data-theme="light"] .burger-menu:hover {
    background: rgba(242, 90, 56, 0.25);
}

.burger-line {
    width: 24px;
    height: 3px;
    background-color: #F2F2F2;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1A0B2E;
        margin-top: 1rem;
        border-radius: 8px;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 100;
    }

    :root[data-theme="light"] nav {
        background: #260E09;
    }

    nav.active {
        max-height: 500px;
        opacity: 1;
        border: 1px solid rgba(147, 51, 234, 0.3);
    }

    :root[data-theme="light"] nav.active {
        border-color: rgba(242, 90, 56, 0.3);
    }

    .menu {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
    }

    .nav_el {
        margin: 0;
    }

    .profile_btn,
    .login_btn {
        text-align: center;
        display: block;
        margin: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .burger-line {
        width: 20px;
        height: 2.5px;
    }
}
