/* ==========================================================================
   Kinetic Runner & Slider Navbar Styles (photomosaic.work)
   ========================================================================== */

.kinetic-navbar-wrapper {
    width: 100%;
    position: relative;
    z-index: 100;
    margin-bottom: 20px;
}

.kinetic-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 52px;
    width: 100%;
}

/* SVG Physics layer for dynamic golden tension ropes */
#physicsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Wings */
.nav-wing {
    display: flex;
    align-items: center;
    position: relative;
    height: 52px;
}

/* Fixed Stationary Anchor Buttons */
.stationary-anchor {
    height: 40px;
    background: #ffffff;
    border: 1px solid rgba(182, 149, 43, 0.28);
    border-radius: 20px;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.stationary-anchor:hover {
    border-color: #b6952b;
    box-shadow: 0 6px 22px rgba(182, 149, 43, 0.2);
    color: #8c7018;
    transform: translateY(-1px);
}

.stationary-anchor.gold-pill {
    border-color: rgba(182, 149, 43, 0.45);
    color: #8c7018;
}

/* Horizontal Carousel Slider Tray */
.slider-tray-wrap {
    height: 40px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(182, 149, 43, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0px;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    z-index: 6;
    position: relative;
}

.left-wing .slider-tray-wrap {
    border-radius: 0 20px 20px 0;
    margin-left: -14px;
    padding-left: 20px;
    border-left: none;
}

.right-wing .slider-tray-wrap {
    border-radius: 20px 0 0 20px;
    margin-right: -14px;
    padding-right: 20px;
    border-right: none;
    justify-content: flex-end;
}

/* Scroll Edge Gradient Shader */
.scroll-fade-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: #b6952b;
    font-weight: 800;
    opacity: 0.9;
}

.left-wing .scroll-fade-edge {
    right: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.98));
}

.right-wing .scroll-fade-edge {
    left: 0;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.98));
}

/* Scrollable Track inside the Tray */
.tray-scroll-container {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 6px;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
}

.tray-scroll-container::-webkit-scrollbar {
    display: none;
}

.tray-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tray-pill:hover {
    background: rgba(182, 149, 43, 0.12);
    border-color: #b6952b;
    color: #8c7018;
    transform: translateY(-1px);
}

.tray-badge {
    background: #b6952b;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 5px;
}

/* Runway Track & Human Runner */
.runner-track {
    position: relative;
    height: 48px;
    width: 270px;
    display: flex;
    align-items: center;
    z-index: 8;
    margin: 0 4px;
}

.cyber-rail {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}

.cyber-rail::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #b6952b 0, #b6952b 6px, transparent 6px, transparent 12px);
    opacity: 0.45;
}

/* Draggable Human Runner Handle */
.runner-handle {
    width: 68px;
    height: 56px;
    cursor: grab;
    position: absolute;
    top: -6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 12;
    touch-action: none;
}

.runner-handle:active {
    cursor: grabbing;
}

.lottie-runner-box {
    width: 48px;
    height: 48px;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.08s ease;
}

.runner-badge {
    font-size: 0.54rem;
    font-weight: 700;
    color: #8c7018;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: -6px;
    background: #ffffff;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(182, 149, 43, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .runner-track {
        width: 180px;
    }
}

@media (max-width: 640px) {
    .kinetic-navbar {
        flex-direction: column;
        height: auto;
        gap: 12px;
    }
    .nav-wing {
        width: 100%;
        justify-content: space-between;
    }
}
