/**
 * menu-nav.css - Styles matching sample/menu.html
 * Same visual style, utilities, and theme as menu.html
 */

:root {
    --theme1: rgb(36 28 61 / 1);;
    --theme1-light: #4b3fa5;
    --theme1-hover: rgba(75, 63, 165, 0.5);
    --accent: #c6ff81;
    --accent-soft: rgba(198, 255, 129, 0.4);
    --top-bar-height: 64px;
}

/* Main nav container - same classes as menu.html */
.menu-nav-wrapper {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    height: calc(100% - var(--top-bar-height));
    width: 9rem;
    display: none;
    flex-direction: column;
    flex: none;
    overflow: auto;
    background-color: var(--theme1);
    color: #fff;
    z-index: 40;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-nav-wrapper::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1280px) {
    .menu-nav-wrapper {
        display: flex;
    }
}

/* Global notification (announcement) bar: do not cover sidebar - like menu.html / image 3 */
@media (min-width: 1280px) {
    .announcement-bar {
        left: 9rem !important;
        right: 0;
    }
}

/* Inner flex column - menu.html style */
.menu-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.8rem;
    width: 100%;
}

/* Nav item - matches menu.html flex/items structure */
.menu-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 0.5rem 0.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    background: transparent;
    width: 100%;
    text-align: center;
}

.menu-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-soft);
    color: #fff;
}

/* Active: green highlight only, no blue (old theme) */
.menu-nav-item.active {
    background: linear-gradient(145deg, var(--theme1-light) 0%, var(--theme1) 100%);
    border-color: var(--accent-soft);
    border-left: none;
    box-shadow: 0 0 16px rgba(198, 255, 129, 0.35);
    color: var(--accent);
}

#main_nav .menu-nav-item.active {
    border-left: none !important;
}

.menu-nav-item .menu-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.menu-nav-item .menu-nav-label {
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-nav-item.active .menu-nav-label {
    color: #c6ff81;
}

/* All games trigger button */
.menu-nav-item.all-games-trigger {
    border: none;
    background: transparent;
}

.menu-nav-item.all-games-trigger .menu-nav-arrow {
    margin-left: auto;
}

/* Logout link */
.menu-nav-item.logout-link {
    color: #ff6b6b;
}

.menu-nav-item.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

/* Games submenu inline - menu.html purple theme */
.menu-nav-games-panel {
    display: none;
    margin: 0.5rem 0 0;
    padding: 10px 8px 12px;
    background: var(--theme1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.games-open .menu-nav-games-panel {
    display: block;
}

.menu-nav-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px;
    margin: -2px -2px 6px;
    border-radius: 10px;
    background: var(--theme1-light);
}

.menu-nav-games-header span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.menu-nav-games-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Game items: icon on top, name below, small text - compact inline in menu */
.menu-nav-games-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.menu-nav-games-item:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.menu-nav-games-item.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
}

.menu-nav-games-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin: 0 0 4px 0;
    object-fit: cover;
}

.menu-nav-games-item span {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.menu-nav-viewall {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.menu-nav-viewall:hover {
    color: #c4b5fd;
}

/* Arrow for All games */
.menu-nav-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.games-open .menu-nav-arrow {
    transform: rotate(180deg);
    color: #a78bfa;
}

/* Badge icons - gift, fire, new */
.menu-nav-item {
    position: relative;
}

.gift-icon, .new-icon, .fire-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gift-icon svg, .new-icon svg {
    color: #ff6b6b;
}

.fire-icon svg {
    color: #ff6b6b;
}

.fire-icon.hide { display: none; }

@keyframes fire-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.fire-icon { animation: fire-pulse 2s ease-in-out infinite; }

.has-commission .menu-nav-icon {
    animation: affiliate-pulse 2s ease-in-out infinite;
}

@keyframes affiliate-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes new-icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.new-icon svg { animation: new-icon-pulse 2s ease-in-out infinite; }
