/* Game On Menu Widget Styles - Menu Only Version */

:root {
    --bg: #111520;
    --panel: #1a2130;
    --panel-2: #121826;
    --text: #e6e8ee;
    --muted: #a7b0c0;
    --accent: #e70e11;
    --brand: #ff3845;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --ring: 0 0 0 3px rgb(231 14 17 / .25);
    --grad-1:linear-gradient(180deg, #FF3F3F 0%, #934790 100%);
    --grad-2:linear-gradient(180deg, #0E7675 0%, #476EAE 100%);
    --menu-stripe-red: #e74b56;
    --menu-stripe-teal: #2fc7b5;
}

/* Base Styles */
.game-on-menu-wrapper {
    position: relative;
    width: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* Topbar/Header Styles */
.game-on-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, var(--panel) 0%, #171e2c 100%);
}

.game-on-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Desktop Navigation */
.game-on-desktop-nav {
    display: none;
    flex: 1;
    position: relative;
}

.game-on-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.game-on-menu-item {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 3px solid var(--menu-stripe-red);
}

/* Alternating border colors for each menu item */
.game-on-menu-item:nth-child(even) {
    border-top-color: var(--menu-stripe-teal);
}

.game-on-menu-item > button,
.game-on-menu-item > a {
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.game-on-menu-item > button:hover,
.game-on-menu-item > a:hover {
    background: #20283a;
}

.game-on-chevron {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg);
    margin-top: 2px;
}
/* 
Dropdown panel */

.game-on-dropdown {
    position: absolute;
    top: 48px;
    left: 78%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 260px;
    opacity: 0;
    overflow: hidden;
    transition: all 0.28s ease;
    z-index: 1000;
    overflow: visible;
    border-radius: 8px;
  }
  
  
  /* card inside dropdown — pointer attached to this element so it "shares" the same bg */
  .game-on-dropdown .game-on-card {
    position: relative;
    border-radius: 8px;
    overflow: visible; /* so gradient and pseudo-elements respect corners */
  }

.game-on-dropdown .game-on-card::before {
    content: "";
    position: absolute;
    left: 20%;
    top: -8px; 
    transform: translateX(-50%);
    width: 22px;
    height: 12px;
    pointer-events: none;
    -webkit-clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    background: inherit;
    z-index: -2;
  }

.game-on-dropdown .game-on-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 26px;
    height: 14px;
    -webkit-clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    z-index: 1;
    pointer-events: none;
  }

.game-on-menu-item:hover .game-on-dropdown,
.game-on-menu-item:focus-within .game-on-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.game-on-dropdown .game-on-card.gradient-1 {
    background: var(--grad-1);
}

.game-on-dropdown .game-on-card.gradient-2 {
    background: var(--grad-2);
}

.game-on-dropdown a {
    display: block;
    text-decoration: none;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    transition: background-color 0.2s ease;
}

.game-on-dropdown a:last-child {
    border-bottom: none;
}

.game-on-dropdown a:hover {
    text-decoration: underline;
}

/* Hamburger Menu */
.game-on-hamburger {
    margin-left: auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #20283a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.game-on-hamburger:hover {
    background: #2a3447;
}

.game-on-hamburger span,
.game-on-hamburger::before,
.game-on-hamburger::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #e8edf9;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.game-on-hamburger::before {
    transform: translateY(-6px);
}

.game-on-hamburger::after {
    transform: translateY(6px);
}

.game-on-hamburger.active::before {
    transform: rotate(45deg);
}

.game-on-hamburger.active span {
    opacity: 0;
}

.game-on-hamburger.active::after {
    transform: rotate(-45deg);
}

/* Mobile Drawer */
.game-on-overlay {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 30;
}

.game-on-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.game-on-drawer {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    z-index: 31;
    background: linear-gradient(180deg, var(--panel), #111725 60%);
    border-top: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
    transform: translateY(-100%);
    opacity: 0;
    transition: all .28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-on-drawer.active {
    transform: translateY(0);
    opacity: 1;
}

.game-on-drawer-header {
    display: none;
}

.game-on-drawer-close {
    display: none;
}

/* Mobile Menu List */
.game-on-mobile-list {
    padding: 12px 18px 18px 18px;
    overflow: auto;
    flex: 1;
    max-height: 400px;
}

.game-on-mobile-accordion {
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.game-on-mobile-accordion > button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 12px 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.game-on-mobile-accordion > button:hover {
    background: rgba(255,255,255,.05);
}

.game-on-mobile-bar {
    width: 3px;
    height: 20px;
    border-radius: 3px;
    background: var(--menu-stripe-red);
}

.game-on-mobile-accordion:nth-child(2) .game-on-mobile-bar {
    background: var(--menu-stripe-teal);
}

.game-on-mobile-accordion:nth-child(4) .game-on-mobile-bar {
    background: var(--menu-stripe-teal);
}

.game-on-mobile-arrow {
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    width: 8px;
    height: 8px;
    transform: rotate(-45deg);
    transition: transform .2s;
}

.game-on-mobile-accordion[aria-expanded="true"] .game-on-mobile-arrow {
    transform: rotate(135deg);
}

.game-on-mobile-panel {
    display: none;
    padding: 4px 8px 12px 12px;
}

.game-on-mobile-panel.active {
    display: block;
}

.game-on-mobile-panel a {
    display: block;
    text-decoration: none;
    color: #e8edf9;
    background: #222a3a;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 4px 0;
    border: 1px solid rgba(255,255,255,.08);
    transition: all 0.2s ease;
    font-size: 13px;
}

.game-on-mobile-panel a:hover {
    background: #2a3447;
    transform: translateX(2px);
}

/* Mobile CTA Button */
.game-on-mobile-cta {
    display: block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    margin: 16px 12px 16px 12px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(231,14,17,.35);
}

.game-on-mobile-cta:hover {
    background: #c70d10;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(231,14,17,.4);
    border-radius: 14px;
}

/* Responsive Breakpoints */
@media (min-width: 980px) {
    .game-on-hamburger {
        display: none;
    }
    
    .game-on-desktop-nav {
        display: block;
    }
    
    .game-on-drawer,
    .game-on-overlay {
        display: none !important;
    }
}

/* Body scroll lock */
body.game-on-menu-open {
    overflow: hidden;
}


/* Loading state */
.game-on-menu-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}