/* Индикаторы прокрутки - элегантные кружки с градиентами */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.7));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 50;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px) scale(0.8);
}

/* Убираем внутреннюю точку полностью */
.scroll-indicator::before {
    display: none;
}

.scroll-indicator:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 0.9));
    border-color: rgba(200, 200, 200, 0.6);
    transform: translateX(0) scale(1.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.scroll-indicator.active {
    background: linear-gradient(135deg, rgba(70, 70, 70, 0.95), rgba(50, 50, 50, 0.9));
    border-color: rgba(40, 40, 40, 0.8);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(0) scale(1.6);
}

.scroll-indicator.completed {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.9), rgba(140, 140, 140, 0.8));
    border-color: rgba(120, 120, 120, 0.7);
}

/* Показываем индикаторы при скролле с красивой анимацией */
.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* Позиционирование индикаторов ближе друг к другу */
.scroll-indicator[data-section="0"] { top: calc(50% - 90px); }
.scroll-indicator[data-section="1"] { top: calc(50% - 60px); }
.scroll-indicator[data-section="2"] { top: calc(50% - 30px); }
.scroll-indicator[data-section="3"] { top: calc(50% + 0px); }
.scroll-indicator[data-section="4"] { top: calc(50% + 30px); }
.scroll-indicator[data-section="5"] { top: calc(50% + 60px); }
.scroll-indicator[data-section="6"] { top: calc(50% + 90px); }

/* Убираем старый прогресс-бар */
.scroll-progress {
    display: none;
}

.scroll-progress-fill {
    display: none;
}

/* Тултипы для индикаторов - бело-серый дизайн */
.scroll-indicator-tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    color: rgba(80, 80, 80, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(12px);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(200, 200, 200, 0.4);
}

.scroll-indicator-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.98);
}

.scroll-indicator:hover .scroll-indicator-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-8px);
}

/* Красивая анимация появления индикаторов */
.scroll-indicator.visible {
    animation: slideInIndicator 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-indicator.visible[data-section="0"] { animation-delay: 0.05s; }
.scroll-indicator.visible[data-section="1"] { animation-delay: 0.1s; }
.scroll-indicator.visible[data-section="2"] { animation-delay: 0.15s; }
.scroll-indicator.visible[data-section="3"] { animation-delay: 0.2s; }
.scroll-indicator.visible[data-section="4"] { animation-delay: 0.25s; }
.scroll-indicator.visible[data-section="5"] { animation-delay: 0.3s; }
.scroll-indicator.visible[data-section="6"] { animation-delay: 0.35s; }

@keyframes slideInIndicator {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.5);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Анимация исчезновения */
.scroll-indicator:not(.visible) {
    animation: slideOutIndicator 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes slideOutIndicator {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .scroll-indicator {
        right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .scroll-indicator {
        right: 1rem;
        width: 20px;
        height: 20px;
    }
    
    .scroll-indicator::before {
        width: 6px;
        height: 6px;
    }
}

/* Скрываем индикаторы на мобильных устройствах */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
    
    .scroll-indicator-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        display: none !important;
    }
    
    .scroll-indicator-tooltip {
        display: none !important;
    }
}

/* Стили для мобильных устройств с поддержкой touch */
@media (hover: none) and (pointer: coarse) {
    .scroll-indicator:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(200, 200, 200, 0.4);
        transform: none;
    }
    
    .scroll-indicator:hover::before {
        transform: scale(0);
        background: rgba(160, 160, 160, 0.7);
    }
    
    .scroll-indicator:active {
        background: rgba(240, 240, 240, 1);
        border-color: rgba(160, 160, 160, 0.8);
        transform: scale(1.1);
    }
    
    .scroll-indicator:active::before {
        transform: scale(1);
        background: rgba(80, 80, 80, 0.9);
    }
}
