/* ==========================================================================
   Section Navigator - Up/Down Navigation Component
   ========================================================================== */

.section-navigator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;

    /* Glassmorphism effect matching navbar */
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 177, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        rgba(0, 9, 47, 0.85);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 177, 23, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Position variants */
.section-navigator-right {
    right: 1.5rem;
}

.section-navigator-left {
    left: 1.5rem;
}

/* Navigation buttons */
.section-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.section-nav-btn:hover {
    background: rgba(255, 177, 23, 0.2);
}

.section-nav-btn:active {
    transform: scale(0.95);
}

.section-nav-btn:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.section-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.section-nav-btn:disabled:hover {
    background: transparent;
}

/* Arrow indicators using CSS */
.nav-arrow {
    display: block;
    width: 12px;
    height: 12px;
    border: solid var(--color-gold);
    border-width: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.nav-arrow-up {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.nav-arrow-down {
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.section-nav-btn:hover .nav-arrow {
    border-color: var(--color-white);
}

/* Section dots (optional) */
.section-dots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(207, 224, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dot:hover {
    background: rgba(255, 177, 23, 0.5);
    transform: scale(1.2);
}

.section-dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.3);
}

/* Hidden state when at boundaries */
.section-navigator.at-top .section-nav-up,
.section-navigator.at-bottom .section-nav-down {
    opacity: 0.3;
    pointer-events: none;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet and smaller */
@media (max-width: 991px) {
    .section-navigator {
        gap: 0.3rem;
        padding: 0.5rem 0.4rem;
    }

    .section-nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-arrow {
        width: 10px;
        height: 10px;
        border-width: 0 2px 2px 0;
    }

    .section-navigator-right {
        right: 1rem;
    }

    .section-navigator-left {
        left: 1rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .section-navigator {
        /* Move to bottom on mobile */
        top: auto;
        bottom: 1.5rem;
        transform: none;
        flex-direction: row;
        padding: 0.4rem 0.75rem;
        border-radius: 30px;
    }

    .section-navigator-right {
        right: 50%;
        transform: translateX(50%);
    }

    .section-navigator-left {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-nav-btn {
        width: 38px;
        height: 38px;
    }

    .nav-arrow-up {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    .nav-arrow-down {
        transform: rotate(45deg);
        margin-bottom: 2px;
    }

    .section-dots {
        flex-direction: row;
        padding: 0 0.5rem;
    }

    .section-dot {
        width: 6px;
        height: 6px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .section-navigator {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .section-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Subtle pulse to draw attention initially */
@keyframes navigator-pulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 177, 23, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(255, 177, 23, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.section-navigator.pulse-once {
    animation: navigator-pulse 2s ease-in-out;
}

/* Bounce animation for arrows */
@keyframes arrow-bounce-up {
    0%, 100% { transform: rotate(-135deg) translateY(0); }
    50% { transform: rotate(-135deg) translateY(-3px); }
}

@keyframes arrow-bounce-down {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(3px); }
}

.section-nav-up:hover .nav-arrow-up {
    animation: arrow-bounce-up 0.5s ease infinite;
}

.section-nav-down:hover .nav-arrow-down {
    animation: arrow-bounce-down 0.5s ease infinite;
}

/* ==========================================================================
   Hide on specific conditions
   ========================================================================== */

/* Hide when footer is in view or when scrolled to very top */
.section-navigator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

@media (max-width: 767px) {
    .section-navigator.hidden {
        transform: translateX(50%) scale(0.9);
    }

    .section-navigator-left.hidden {
        transform: translateX(-50%) scale(0.9);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .section-navigator,
    .section-nav-btn,
    .nav-arrow,
    .section-dot {
        transition: none;
    }

    .section-nav-up:hover .nav-arrow-up,
    .section-nav-down:hover .nav-arrow-down {
        animation: none;
    }
}
