/* ==========================================================
   SCROLL INDICATOR - Barra de Navegação Lateral
   Visual: Titanium/Neon com Tooltips Glassmorphism
   ========================================================== */

/* ========== Container Principal ========== */
.scroll-indicator {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lista de Nós */
.scroll-indicator ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scroll-indicator li {
    position: relative;
}

/* ========== Pontos (Nós de Navegação) ========== */
.scroll-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Hover State */
.scroll-dot:hover {
    border-color: rgba(122, 76, 255, 0.6);
    transform: scale(1.3);
    background: rgba(122, 76, 255, 0.1);
}

/* Active State (Seção Visível) */
.scroll-dot.active {
    width: 12px;
    height: 12px;
    background: #7A4CFF;
    border-color: #7A4CFF;
    box-shadow: 
        0 0 10px rgba(122, 76, 255, 0.6),
        0 0 20px rgba(122, 76, 255, 0.3);
    transform: scale(1);
}

.scroll-dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1px solid rgba(122, 76, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

/* Animação do Anel de Pulso */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ========== Tooltip (Label Lateral) ========== */
.scroll-tooltip {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(122, 76, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Seta do Tooltip */
.scroll-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(122, 76, 255, 0.3);
}

/* Mostrar Tooltip no Hover */
.scroll-dot:hover + .scroll-tooltip,
.scroll-dot.active + .scroll-tooltip {
    opacity: 1;
    visibility: visible;
    display: block;
    left: 30px;
}

/* Tooltip Brilhante no Active */
.scroll-dot.active + .scroll-tooltip {
    border-color: rgba(122, 76, 255, 0.6);
    background: rgba(122, 76, 255, 0.15);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(122, 76, 255, 0.2);
}

/* ========== Responsive (Mobile Hidden) ========== */
@media (max-width: 1024px) {
    .scroll-indicator {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ========== Estado de Transição Suave ========== */
.scroll-dot {
    will-change: transform, background, border-color;
}

.scroll-tooltip {
    will-change: opacity, visibility, left;
}

/* ========== Efeito Adicional: Linha Conectora ========== */
.scroll-indicator::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%
    );
    z-index: -1;
}
