/**
 * Carousel Navigation Component Styles
 * Reusable carousel/slider navigation styles
 */

/* Carousel Container */
.carousel-nav-component {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Track */
.carousel-nav-component .carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

/* Carousel Slide */
.carousel-nav-component .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Navigation Arrows */
.carousel-nav-component .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .carousel-nav-component .carousel-arrow {
        width: 3rem;
        height: 3rem;
    }
}

.carousel-nav-component .carousel-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav-component .carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-component .carousel-arrow.prev {
    left: 0.5rem;
}

@media (min-width: 768px) {
    .carousel-nav-component .carousel-arrow.prev {
        left: 1rem;
    }
}

.carousel-nav-component .carousel-arrow.next {
    right: 0.5rem;
}

@media (min-width: 768px) {
    .carousel-nav-component .carousel-arrow.next {
        right: 1rem;
    }
}

.carousel-nav-component .carousel-arrow svg {
    width: 1rem;
    height: 1rem;
    fill: #333333;
}

@media (min-width: 768px) {
    .carousel-nav-component .carousel-arrow svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Dot Navigation */
.carousel-nav-component .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.carousel-nav-component .carousel-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-nav-component .carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.carousel-nav-component .carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Dark Theme Dots */
.carousel-nav-component.dark-theme .carousel-dot {
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-nav-component.dark-theme .carousel-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-nav-component.dark-theme .carousel-dot.active {
    background-color: #333333;
}

/* Number Navigation */
.carousel-nav-component .carousel-numbers {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.carousel-nav-component .carousel-number {
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav-component .carousel-number:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.carousel-nav-component .carousel-number.active {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

/* Thumbnail Navigation */
.carousel-nav-component .carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
}

.carousel-nav-component .carousel-thumbnail {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .carousel-nav-component .carousel-thumbnail {
        width: 4.5rem;
        height: 4.5rem;
    }
}

.carousel-nav-component .carousel-thumbnail:hover {
    opacity: 1;
}

.carousel-nav-component .carousel-thumbnail.active {
    border-color: #0d653a;
    opacity: 1;
}

.carousel-nav-component .carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar Navigation */
.carousel-nav-component .carousel-progress {
    width: 100%;
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
    border-radius: 0.125rem;
    overflow: hidden;
}

.carousel-nav-component .carousel-progress-bar {
    height: 100%;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.carousel-nav-component.dark-theme .carousel-progress {
    background-color: rgba(0, 0, 0, 0.1);
}

.carousel-nav-component.dark-theme .carousel-progress-bar {
    background-color: #0d653a;
}

/* Auto-play Indicator */
.carousel-nav-component .autoplay-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.75rem;
}

.carousel-nav-component .autoplay-indicator .pause-icon,
.carousel-nav-component .autoplay-indicator .play-icon {
    width: 0.75rem;
    height: 0.75rem;
}

/* Swipe Hint */
.carousel-nav-component .swipe-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .carousel-nav-component .swipe-hint {
        display: none;
    }
}

.carousel-nav-component .swipe-hint svg {
    width: 1rem;
    height: 1rem;
    animation: swipe-animation 1.5s ease-in-out infinite;
}

@keyframes swipe-animation {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* Fade Transition Variant */
.carousel-nav-component.fade-transition .carousel-track {
    position: relative;
}

.carousel-nav-component.fade-transition .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-nav-component.fade-transition .carousel-slide.active {
    position: relative;
    opacity: 1;
}

/* Vertical Carousel Variant */
.carousel-nav-component.vertical .carousel-track {
    flex-direction: column;
}

.carousel-nav-component.vertical .carousel-arrow.prev {
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.carousel-nav-component.vertical .carousel-arrow.next {
    top: auto;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.carousel-nav-component.vertical .carousel-dots {
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}
