/* Main styles for index.php */

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f11;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation Keyframes for Rotating Words - равномерная без пауз */
@keyframes rotateWords {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words {
    animation: rotateWords 12s infinite linear;
}

/* Анимация для H1 - синхронизирована с шапкой */
@keyframes rotateWordsH1 {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words-h1 {
    animation: rotateWordsH1 12s infinite linear;
}

/* Hide scrollbar for sidebar but apply custom one if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Neon underline animation for PC names */
.pc-name-link {
    text-decoration: none;
}

.pc-name-link .neon-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    transition: width 0.4s ease-out;
}

.pc-name-link:hover .neon-underline {
    width: 100%;
}

/* Multiselect dropdown - Cyberpunk style */
.custom-multiselect-dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    width: 100%;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(168, 85, 247, 0.15);
}

/* Поле поиска в dropdown */
.dropdown-search {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 30, 0.98);
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.dropdown-search input {
    width: 100%;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.dropdown-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Опция в списке */
.custom-multiselect-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-multiselect-option:last-child {
    border-bottom: none;
}

.custom-multiselect-option:hover {
    background: rgba(168, 85, 247, 0.15);
}

/* Кастомный чекбокс */
.custom-multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-multiselect-option input[type="checkbox"]:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.custom-multiselect-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.custom-multiselect-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* Лейбл опции */
.custom-multiselect-option label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.custom-multiselect-option:hover label {
    color: white;
}

.custom-multiselect-option input[type="checkbox"]:checked + label {
    color: #a855f7;
    font-weight: 500;
}

/* Range input styling - Neon gradient */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    --range-progress: 100%;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 30px rgba(34, 211, 238, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(34, 211, 238, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: linear-gradient(to right,
            #a855f7 0%,
            #22d3ee var(--range-progress),
            #374151 var(--range-progress),
            #374151 100%);
}

/* Firefox */
input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: #374151;
}

input[type=range]::-moz-range-progress {
    background: linear-gradient(to right, #a855f7, #22d3ee);
    height: 4px;
    border-radius: 2px;
}
