/* ── PNS Shared Hover/Slide Navigation ──────────────────────────────────── */

@font-face {
    font-family: 'WWE Raw';
    src: url('wwe-raw.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.pns-nav,
.pns-mobile-trigger {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Desktop: thin strip, expands on hover
   Mobile:  hidden panel, slides in on trigger tap               */

.pns-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    width: 56px;
    overflow: hidden;
    z-index: 9000;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.7);
    border-right: 1px solid rgba(0, 255, 65, 0.12);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.pns-nav-header {
    display: flex;
    align-items: center;
    min-width: 260px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.12);
    flex-shrink: 0;
}

.pns-logo-mark {
    width: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #00ff41;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pns-nav-brand {
    font-family: 'WWE Raw', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: normal;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.pns-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

/* ── Nav List ───────────────────────────────────────────────────────────── */
.pns-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 65, 0.15) transparent;
}

.pns-nav-list::-webkit-scrollbar {
    width: 3px;
}
.pns-nav-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.15);
    border-radius: 2px;
}

.pns-nav-item a {
    display: flex;
    align-items: center;
    min-width: 260px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.pns-nav-item a:hover {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.06);
}

.pns-nav-item a.pns-active {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

.pns-nav-item a.pns-active .pns-icon {
    color: #00ff41;
}

.pns-nav-item a.pns-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00ff41;
}

.pns-icon {
    width: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pns-label {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pns-nav-divider {
    height: 1px;
    background: rgba(0, 255, 65, 0.08);
    margin: 5px 14px;
    min-width: 232px;
}

/* ── Body offset — clears the fixed 56px sidebar strip ─────────────────── */
@media (min-width: 769px) {
    body {
        padding-left: 56px;
    }
}

/* ── Desktop hover expand ───────────────────────────────────────────────── */
@media (hover: hover) and (min-width: 769px) {
    .pns-nav:hover {
        width: 260px;
    }

    .pns-nav:hover .pns-nav-brand {
        opacity: 1;
        transition-delay: 0.06s;
    }

    .pns-nav:hover .pns-label {
        opacity: 1;
        transform: none;
        transition-delay: 0.08s;
    }
}

/* ── Mobile trigger button ──────────────────────────────────────────────── */
.pns-mobile-trigger {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9001;
    width: 42px;
    height: 42px;
    background: #0a0a0a;
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00ff41;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.pns-mobile-trigger:hover {
    background: #111;
    border-color: #00ff41;
}

/* ── Backdrop ───────────────────────────────────────────────────────────── */
.pns-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 8999;
    pointer-events: none;
    transition: background 0.3s ease;
}

.pns-backdrop.pns-backdrop-visible {
    background: rgba(0, 0, 0, 0.75);
    pointer-events: all;
}

/* ── Mobile mode (≤ 768px) ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pns-nav {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pns-nav.pns-open {
        transform: translateX(0);
    }

    .pns-nav .pns-label {
        opacity: 1;
        transform: none;
    }

    .pns-nav .pns-nav-brand {
        opacity: 1;
    }

    .pns-mobile-trigger {
        display: flex;
    }

    .pns-backdrop {
        display: block;
    }
}
