/* ===== HEADER & NAVIGATION (PANDAPETIR88 STYLE) ===== */

/* Mobile Navigation */
.nav {
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav__menu {
    flex: 0 0 auto;
}

.nav__logo {
    flex: 1;
    text-align: center;
}

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__notification {
    flex: 0 0 auto;
    cursor: pointer;
}

/* Hamburger Menu */
.hamburger {
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin: 0;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger Active State */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Overlay */
.overlap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
}

.overlap.active {
    display: block;
}

/* Side Navigation Menu */
.menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #1a1a1a;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.menu.active {
    left: 0;
}

.sidenav {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.welcome {
    color: #923489;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.sidenav_logo {
    text-align: center;
    margin-bottom: 20px;
}

.sidenav_logo img {
    height: 50px;
    width: auto;
}

.sidenav_btn_title {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.sidenav_btn_button {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sidenav-login,
.sidenav-register {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.sidenav-login {
    background: #923489;
    color: #000;
}

.sidenav-login:hover {
    background: #e6c200;
}

.sidenav-register {
    background: transparent;
    border: 2px solid #923489;
}

.sidenav-register a {
    color: #923489;
    text-decoration: none;
}

.sidenav-register:hover {
    background: #923489;
}

.sidenav-register:hover a {
    color: #000;
}

.sidenav_btn_forgetpw {
    text-align: center;
}

.sidenav_btn_forgetpw a {
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.sidenav_btn_forgetpw a:hover {
    color: #923489;
}

/* Side Navigation Games Menu */
.sidenav-games {
    padding: 0;
}

.sidenav-games ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidenav-games li {
    border-bottom: 1px solid #333;
}

.sidenav-games li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.sidenav-games li a:hover {
    background: #252525;
}

.sidenav-games li img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.sidenav-games li span {
    font-size: 14px;
}

/* Menu Row with Dropdown */
.menu-row {
    cursor: pointer;
}

.menu-row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.menu-row svg {
    transition: transform 0.3s;
}

.menu-row.active svg {
    transform: rotate(180deg);
}

.all-games {
    background: #0f0f0f;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.all-games.active {
    max-height: 500px;
}

.all-games li a {
    padding: 12px 20px 12px 50px;
}

/* Desktop - Hide mobile menu */
@media (min-width: 769px) {
    #showM {
        display: none;
    }
}

/* Fixed Bottom Menu for Mobile */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border-top: 2px solid #923489;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.fixed-bottom-menu a {
    flex: 1;
    text-align: center;
    color: #888;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s;
}

.fixed-bottom-menu a:hover,
.fixed-bottom-menu a.active {
    color: #923489;
}

.fixed-bottom-menu i {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}

@media (min-width: 769px) {
    .fixed-bottom-menu {
        display: none;
    }
}
