/* Homepage Slider Styles */
/* Extracted from CI slider.php */

.main-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .main-slider {
        min-height: 400px;
    }
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    object-position: center;
    transform: scale(1.1);
    transition: transform 4s ease-out;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-indicators li {
    width: 50px;
    height: 4px;
    margin: 0 5px;
    border: none;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-indicators li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #ffffff;
}

.carousel-indicators li.active {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators li.active::after {
    width: 100%;
}

/* Navigation Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 0 30px;
}

.main-slider:hover .carousel-control-prev,
.main-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
@keyframes slideLoading {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicators li {
        width: 30px;
        height: 3px;
        margin: 0 3px;
    }
}

/* Touch Swipe Hint */
.swipe-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 14px;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
    display: none;
}

@media (max-width: 768px) {
    .swipe-hint {
        display: block;
        animation: fadeOut 3s forwards 2s;
    }
}

@keyframes fadeOut {
    to { opacity: 0; }
}
