/* ========================================
   SCROLL NAVIGATOR - Landing Page Only
   Scroll Spy with Section Indicators
   
   @package Ezustfonal
   @version 1.17.0
   ======================================== */

.scroll-navigator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.scroll-navigator.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Vertical Line */
.scroll-line {
    position: absolute;
    right: 5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(196, 164, 132, 0.03) 5%,
        rgba(196, 164, 132, 0.08) 12%,
        rgba(196, 164, 132, 0.15) 20%,
        rgba(196, 164, 132, 0.25) 30%,
        rgba(196, 164, 132, 0.4) 50%,
        rgba(196, 164, 132, 0.25) 70%,
        rgba(196, 164, 132, 0.15) 80%,
        rgba(196, 164, 132, 0.08) 88%,
        rgba(196, 164, 132, 0.03) 95%,
        transparent 100%
    );
}

/* Dots */
.scroll-dot {
    position: relative;
    width: 12px;
    height: 12px;
    background: rgba(196, 164, 132, 0.4);
    border: 1px solid rgba(196, 164, 132, 0.3);
    border-radius: 50%;
    margin: 40px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: block;
}

.scroll-dot:hover {
    background: rgba(196, 164, 132, 0.7);
    border-color: rgba(196, 164, 132, 0.5);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: var(--color-primary, #C4A484);
    border-color: var(--color-primary, #C4A484);
    box-shadow: 0 0 20px rgba(196, 164, 132, 0.6),
                0 0 40px rgba(196, 164, 132, 0.3);
    animation: activate 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Activation Animation - Glow + Scale */
@keyframes activate {
    0% { 
        transform: scale(0.8);
        box-shadow: 0 0 0 rgba(196, 164, 132, 0);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 30px rgba(196, 164, 132, 0.8);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(196, 164, 132, 0.6);
    }
}

/* Tooltip */
.scroll-tooltip {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(68, 64, 60, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tooltip Arrow */
.scroll-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(68, 64, 60, 0.95);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.scroll-dot:hover .scroll-tooltip,
.scroll-dot:focus .scroll-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile: Hide completely */
@media (max-width: 768px) {
    .scroll-navigator {
        display: none !important;
    }
}

/* Tablet: Adjust positioning */
@media (max-width: 1024px) {
    .scroll-navigator {
        right: 20px;
    }
    
    .scroll-dot {
        margin: 30px 0;
    }
}

/* Accessibility: Focus states */
.scroll-dot:focus {
    outline: 2px solid var(--color-primary, #C4A484);
    outline-offset: 4px;
}

.scroll-dot:focus:not(:focus-visible) {
    outline: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .scroll-tooltip {
        background: rgba(250, 250, 249, 0.95);
        color: #44403C;
    }
    
    .scroll-tooltip::after {
        border-left-color: rgba(250, 250, 249, 0.95);
    }
}

/* Dark Mode Class Override - AGGRESSIVE */
html.dark-mode .scroll-navigator {
    /* Brighter line for dark backgrounds */
}

html.dark-mode .scroll-line {
    background: linear-gradient(
        to bottom,
        rgba(196, 164, 132, 0.3) 0%,
        rgba(196, 164, 132, 0.6) 50%,
        rgba(196, 164, 132, 0.3) 100%
    ) !important;
}

html.dark-mode .scroll-dot {
    background: rgba(196, 164, 132, 0.6) !important;
    border: 1px solid rgba(196, 164, 132, 0.4) !important;
}

html.dark-mode .scroll-dot:hover {
    background: rgba(196, 164, 132, 0.85) !important;
    border-color: rgba(196, 164, 132, 0.6) !important;
}

html.dark-mode .scroll-dot.active {
    background: #C4A484 !important;
    border-color: #C4A484 !important;
    box-shadow: 0 0 30px rgba(196, 164, 132, 0.9),
                0 0 60px rgba(196, 164, 132, 0.5) !important;
}

html.dark-mode .scroll-tooltip {
    background: rgba(250, 250, 249, 0.95) !important;
    color: #1c1917 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html.dark-mode .scroll-tooltip::after {
    border-left-color: rgba(250, 250, 249, 0.95) !important;
}
