/* ============================================
   JOSEPH SAN EXACT - NAVIGATION LAYOUT
   Bottom Center: Pill-shaped slider nav
   Middle Right: Single circular orientation toggle
   ============================================ */

/* PILL-SHAPED SLIDER NAVIGATION - Bottom Center */
.slider-nav-pill {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    /* INCREASED from 100 */
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide nav pill when menu is open */
.slider-nav-pill.menu-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Arrow buttons inside pill */
.pill-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: rgba(255, 255, 255, 0.5);
}

.pill-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.pill-arrow-btn:active {
    transform: scale(0.95);
}

.pill-arrow-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Counter in the middle of pill */
.pill-counter {
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    min-width: 80px;
    text-align: center;
}

/* ORIENTATION TOGGLE - Single Circle on Middle Right */
.orientation-toggle {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    /* INCREASED from 100 */
    pointer-events: auto;
    /* Ensure clicks work */
}

.orientation-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: rgba(255, 255, 255, 0.6);
}

.orientation-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.orientation-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.orientation-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Rotate icon when orientation changes */
.orientation-btn.horizontal svg {
    transform: rotate(90deg);
}

/* Rotate pill arrows for vertical mode */
.slider-nav-pill.vertical .pill-arrow-btn svg {
    transform: rotate(90deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .slider-nav-pill {
        bottom: 2rem;
    }

    .pill-arrow-btn {
        width: 45px;
        height: 45px;
    }

    .pill-counter {
        font-size: 0.875rem;
        min-width: 60px;
        padding: 0 1rem;
    }

    .orientation-toggle {
        right: 1rem;
    }

    .orientation-btn {
        width: 50px;
        height: 50px;
    }

    .orientation-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile-only orientation toggle inside nav pill */
.pill-orientation-btn {
    display: none;
}

@media (max-width: 768px) {
    .pill-orientation-btn {
        display: flex;
    }
}