/* ==========================================================================
   ART OF CRAPS - TOP NAVIGATION
   Version: 1.0
   Replaces default GeneratePress header
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. DISABLE GP DEFAULT HEADER (belt + suspenders)
   -------------------------------------------------------------------------- */

.site-header,
#site-navigation,
.main-navigation,
.navigation-search,
.gen-sidebar-nav {
    display: none !important;
}


/* --------------------------------------------------------------------------
   2. NAV WRAPPER
   -------------------------------------------------------------------------- */

.aoc-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--aoc-charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aoc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}


/* --------------------------------------------------------------------------
   3. LOGO
   -------------------------------------------------------------------------- */

.aoc-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aoc-nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.aoc-nav-logo img {
    height: 42px;
    width: auto;
    display: block;
}


/* --------------------------------------------------------------------------
   4. DESKTOP MENU
   -------------------------------------------------------------------------- */

.aoc-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aoc-nav-links li {
    position: relative;
}

.aoc-nav-links li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-radius: var(--aoc-radius-sm);
    transition: color var(--aoc-transition), background var(--aoc-transition);
    white-space: nowrap;
}

.aoc-nav-links li a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.07);
}

/* Active page indicator */
.aoc-nav-links li.aoc-nav-active > a {
    color: #FFFFFF;
}

.aoc-nav-links li.aoc-nav-active > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--aoc-red);
    border-radius: 2px;
}


/* --------------------------------------------------------------------------
   5. DROPDOWN ARROW ON CATEGORY LINKS
   -------------------------------------------------------------------------- */

.aoc-nav-has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.4);
    transition: transform var(--aoc-transition);
}

/* Override the active indicator for dropdown items */
.aoc-nav-has-dropdown.aoc-nav-active > a::after {
    position: static;
    background: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.4);
    height: auto;
    left: auto;
    right: auto;
    bottom: auto;
    border-radius: 0;
}


/* --------------------------------------------------------------------------
   6. DROPDOWN MENU
   -------------------------------------------------------------------------- */

.aoc-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--aoc-charcoal-mid);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--aoc-radius-md);
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    list-style: none;
    margin: 0;
}

.aoc-nav-has-dropdown:hover .aoc-nav-dropdown {
    display: block;
}

/* Invisible bridge so hover doesn't break between link and dropdown */
.aoc-nav-has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.aoc-nav-dropdown li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background var(--aoc-transition), color var(--aoc-transition);
    border-radius: 0;
    line-height: 1.4;
    white-space: normal;
}

.aoc-nav-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

/* Category header inside dropdown */
.aoc-nav-dropdown li.aoc-dropdown-header a {
    font-weight: 600;
    color: var(--aoc-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 18px 6px;
    pointer-events: none;
}

.aoc-nav-dropdown li.aoc-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}


/* --------------------------------------------------------------------------
   7. HIGHLIGHTED BUTTONS (Simulator + Casinos)
   -------------------------------------------------------------------------- */

.aoc-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.aoc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--aoc-radius-sm);
    transition: background var(--aoc-transition), transform 0.15s ease;
    white-space: nowrap;
}

.aoc-nav-btn:hover {
    transform: translateY(-1px);
}

/* Simulator - Green */
.aoc-nav-btn-simulator {
    background: var(--aoc-green);
    color: #FFFFFF;
}

.aoc-nav-btn-simulator:hover {
    background: var(--aoc-green-light);
    color: #FFFFFF;
}

/* Casinos - Red with subtle glow */
.aoc-nav-btn-casinos {
    background: var(--aoc-red);
    color: #FFFFFF;
}

.aoc-nav-btn-casinos:hover {
    background: var(--aoc-red-light);
    color: #FFFFFF;
}


/* --------------------------------------------------------------------------
   8. MOBILE HAMBURGER BUTTON
   -------------------------------------------------------------------------- */

.aoc-nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.aoc-nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger to X animation */
.aoc-nav-hamburger.aoc-nav-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.aoc-nav-hamburger.aoc-nav-open span:nth-child(2) {
    opacity: 0;
}

.aoc-nav-hamburger.aoc-nav-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   9. MOBILE MENU
   -------------------------------------------------------------------------- */

.aoc-nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--aoc-charcoal);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 24px 32px;
    z-index: 9998;
}

.aoc-nav-mobile.aoc-nav-mobile-open {
    display: block;
}

.aoc-nav-mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aoc-nav-mobile-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aoc-nav-mobile-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.aoc-nav-mobile-links > li > a:hover {
    color: #FFFFFF;
}

/* Mobile dropdown toggle arrow */
.aoc-mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--aoc-radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
}

.aoc-mobile-dropdown-toggle svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.aoc-mobile-dropdown-toggle.aoc-mobile-dd-open svg {
    transform: rotate(180deg);
}

/* Mobile sub-menu */
.aoc-nav-mobile-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

.aoc-nav-mobile-sub.aoc-mobile-sub-open {
    display: block;
}

.aoc-nav-mobile-sub li a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    line-height: 1.4;
}

.aoc-nav-mobile-sub li a:hover {
    color: #FFFFFF;
}

/* Mobile action buttons */
.aoc-nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aoc-nav-mobile-actions .aoc-nav-btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: var(--aoc-radius-md);
}


/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .aoc-nav-links,
    .aoc-nav-actions {
        display: none !important;
    }

    .aoc-nav-hamburger {
        display: block;
    }

    .aoc-nav-inner {
        height: 58px;
        padding: 0 16px;
    }

    .aoc-nav-logo img {
        height: 36px;
    }

    .aoc-nav-mobile {
        top: 58px;
    }
}

/* Body scroll lock when mobile menu is open */
body.aoc-nav-scroll-lock {
    overflow: hidden;
}


/* --------------------------------------------------------------------------
   11. ADMIN BAR OFFSET (when logged in)
   -------------------------------------------------------------------------- */

.admin-bar .aoc-nav {
    top: 32px;
}

.admin-bar .aoc-nav-mobile {
    top: 96px;
}

@media (max-width: 782px) {
    .admin-bar .aoc-nav {
        top: 46px;
    }

    .admin-bar .aoc-nav-mobile {
        top: 104px;
    }
}
