/**
 * Rubikto Pro - Custom Scroller CSS
 */

.rubikto-pro-scroller {
    position: fixed;
    z-index: 99999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.rubikto-pro-scroller.enabled {
    display: block !important;
}

.rubikto-pro-scroller.disabled {
    display: none !important;
}

.rubikto-pro-scroller.visible {
    opacity: 1;
    visibility: visible;
}

/* Position Classes */
.scroller-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.scroller-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.scroller-left {
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

.scroller-right {
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

/* Size Classes */
.scroller-small {
    --scroller-size: 2px;
}

.scroller-medium {
    --scroller-size: 4px;
}

.scroller-large {
    --scroller-size: 6px;
}

.scroller-small.scroller-top,
.scroller-small.scroller-bottom {
    height: var(--scroller-size);
}

.scroller-small.scroller-left,
.scroller-small.scroller-right {
    width: var(--scroller-size);
}

.scroller-medium.scroller-top,
.scroller-medium.scroller-bottom {
    height: var(--scroller-size);
}

.scroller-medium.scroller-left,
.scroller-medium.scroller-right {
    width: var(--scroller-size);
}

.scroller-large.scroller-top,
.scroller-large.scroller-bottom {
    height: var(--scroller-size);
}

.scroller-large.scroller-left,
.scroller-large.scroller-right {
    width: var(--scroller-size);
}

/* Progress Bar Type */
.scroller-progress .scroller-progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--scroller-bg-color, #f0f0f0);
    position: relative;
    overflow: hidden;
}

.scroller-progress .scroller-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--scroller-color, #007cba);
    transition: width 0.3s ease;
    transition: width 0.1s ease;
    position: relative;
}

.scroller-progress .scroller-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Circle Type */
.scroller-circle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 99999;
}

.scroller-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroller-circle path {
    fill: none;
    stroke: var(--scroller-bg-color, #f0f0f0);
    stroke-width: 4;
    stroke-linecap: round;
}

.scroller-circle path:last-child {
    stroke: var(--scroller-color, #007cba);
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.1s ease;
}

/* Dots Type */
.scroller-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.scroller-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--scroller-bg-color, #f0f0f0);
    transition: background-color 0.3s ease;
}

.scroller-dots .dot.active {
    background-color: var(--scroller-color, #007cba);
    animation: dot-pulse 0.6s ease-in-out;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Custom Type */
.scroller-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--scroller-color, #007cba);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.scroller-custom:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Speed Classes */
.scroller-slow .scroller-progress-fill,
.scroller-slow path:last-child {
    transition: all 0.3s ease;
}

.scroller-normal .scroller-progress-fill,
.scroller-normal path:last-child {
    transition: all 0.1s ease;
}

.scroller-fast .scroller-progress-fill,
.scroller-fast path:last-child {
    transition: all 0.05s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroller-circle {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .scroller-custom {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .scroller-dots {
        padding: 6px;
        gap: 3px;
    }
    
    .scroller-dots .dot {
        width: 6px;
        height: 6px;
    }
}

/* RTL Support */
.rtl .scroller-circle {
    right: auto;
    left: 20px;
}

.rtl .scroller-custom {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .rtl .scroller-circle {
        left: 10px;
    }
    
    .rtl .scroller-custom {
        left: 10px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .scroller-progress .scroller-progress-bar {
        background-color: #000000 !important;
    }
    
    .scroller-progress .scroller-progress-fill {
        background-color: #ffffff !important;
    }
    
    .scroller-circle path {
        stroke: #000000 !important;
    }
    
    .scroller-circle path:last-child {
        stroke: #ffffff !important;
    }
    
    .scroller-dots .dot {
        background-color: #000000 !important;
    }
    
    .scroller-dots .dot.active {
        background-color: #ffffff !important;
    }
    
    .scroller-custom {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroller-progress .scroller-progress-fill,
    .scroller-circle path:last-child {
        transition: none;
    }
    
    .scroller-progress .scroller-progress-fill::after {
        animation: none;
    }
    
    .scroller-dots .dot.active {
        animation: none;
    }
    
    .scroller-custom:hover {
        transform: none;
    }
} 