/* ==========================================================================
   Logo Carousel — Frontend Styles
   ========================================================================== */

/* Wrapper */
.lc-carousel-wrapper {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Viewport clips the track */
.lc-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* Track holds all slides in a row */
.lc-carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Individual slide */
.lc-carousel-slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Logo link — fixed height container, image scales within */
.lc-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    line-height: 0;
    overflow: hidden;
}

/* Logo image — fill container via object-fit */
.lc-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
    padding: 0 20px;
}

/* Caption */
.lc-logo-caption {
    margin-top: 8px;
    font-size: 0.8em;
    color: #666;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Grayscale mode */
.lc-grayscale .lc-logo-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.lc-grayscale .lc-carousel-slide:hover .lc-logo-image {
    filter: grayscale(0%);
    opacity: 1;
}

/* Fade animation variant */
.lc-carousel-wrapper[data-animation="fade"] .lc-carousel-slide {
    opacity: 0;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.lc-carousel-wrapper[data-animation="fade"] .lc-carousel-slide.lc-fade-active {
    opacity: 1;
    position: relative;
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.lc-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.lc-nav-arrow:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    opacity: 1;
}

.lc-nav-arrow:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.lc-nav-prev {
    left: 4px;
}

.lc-nav-next {
    right: 4px;
}

.lc-nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   Pagination Dots
   ========================================================================== */

.lc-nav-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
}

.lc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #aaa;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lc-dot:hover {
    background: #999;
    border-color: #999;
}

.lc-dot.lc-dot-active {
    background: #333;
    border-color: #333;
    transform: scale(1.2);
}

.lc-dot:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .lc-nav-arrow {
        width: 30px;
        height: 30px;
    }

    .lc-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .lc-carousel-track {
        transition: none !important;
    }

    .lc-logo-image {
        transition: none !important;
    }

    .lc-carousel-wrapper[data-animation="fade"] .lc-carousel-slide {
        transition: none !important;
    }
}
