/**
 * Category Slider / Carousel
 * Horizontal sliding menu untuk kategori peraturan
 */

.category-slider-wrapper {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.category-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.category-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease-in-out;
    padding: 10px 0;
}

/* Slider Item */
.category-slider-item {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-slider-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: white;
}

.category-slider-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Icon Circle */
.category-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.5);
    padding: 10px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Category Label */
.category-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

/* Category Count */
.category-count {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 3px;
}

/* Arrow Buttons */
.category-slider-arrow {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    flex-shrink: 0;
}

.category-slider-arrow:hover {
    background: white;
    color: #3498db;
    transform: scale(1.1);
}

.category-slider-arrow:active {
    transform: scale(0.95);
}

.category-slider-arrow i {
    pointer-events: none;
}

/* Disabled state */
.category-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.category-slider-arrow:disabled:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1200px) {
    .category-slider-item {
        width: 130px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
    }

    .category-label {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .category-slider-wrapper {
        padding: 20px 0;
    }

    .category-slider-container {
        gap: 10px;
    }

    .category-slider-track {
        gap: 20px;
    }

    .category-slider-item {
        width: 110px;
    }

    .category-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .category-label {
        font-size: 10px;
    }

    .category-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-slider-item {
        width: 90px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-label {
        font-size: 9px;
    }

    .category-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-slider-item {
    animation: slideIn 0.5s ease-out;
}

.category-slider-item:nth-child(1) { animation-delay: 0.1s; }
.category-slider-item:nth-child(2) { animation-delay: 0.2s; }
.category-slider-item:nth-child(3) { animation-delay: 0.3s; }
.category-slider-item:nth-child(4) { animation-delay: 0.4s; }
.category-slider-item:nth-child(5) { animation-delay: 0.5s; }
.category-slider-item:nth-child(6) { animation-delay: 0.6s; }
.category-slider-item:nth-child(7) { animation-delay: 0.7s; }
.category-slider-item:nth-child(8) { animation-delay: 0.8s; }
