/* Results Visualization Styles */

/* Visualization Switch */
.viz-switch {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 25px 0 20px 0;
    padding: 8px;
    background: rgba(247, 249, 252, 0.6);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(52, 85, 120, 0.04);
}

.viz-btn {
    border: 1.5px solid rgba(212, 196, 168, 0.4);
    background: #FDF8F0;
    color: #5a5a5a;
    padding: 10px 28px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-btn:hover:not(.active) {
    background: #F5ECDC;
    color: #3a3a3a;
    border-color: rgba(212, 196, 168, 0.6);
}

.viz-btn.active {
    background: #E8D5B7;
    color: #3a3a3a;
    border-color: rgba(212, 196, 168, 0.8);
    box-shadow: 0 2px 6px rgba(212, 196, 168, 0.3);
}

/* Content Sections */
.viz-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.viz-content.active {
    display: block;
    opacity: 1;
}

/* Showcase Container with Navigation */
.showcase-container {
    position: relative;
    width: 150%;
    margin-left: -20%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade mask for edges to hide thumbnails under arrows */
.showcase-container::before,
.showcase-container::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.showcase-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.showcase-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Showcase Bar */
.showcase-bar {
    display: flex;
    gap: 10px;
    padding: 0 60px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    justify-content: center; /* Center when content doesn't fill */
    width: 100%;
}

/* When content overflows, align to start */
.showcase-bar.overflow {
    justify-content: flex-start;
}

.showcase-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.showcase-thumb {
    flex: 0 0 280px; /* Fixed width for consistent size */
    width: 280px;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

/* Navigation Arrows */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 196, 168, 0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    color: #5a5a5a;
    font-size: 22px;
    user-select: none;
}

.showcase-nav:hover {
    background: #E8D5B7;
    color: #3a3a3a;
    border-color: rgba(212, 196, 168, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.showcase-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.showcase-nav-left {
    left: 10px;
}

.showcase-nav-right {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .showcase-container {
        width: 100%;
        margin-left: 0;
        padding: 20px 40px;
    }

    .showcase-thumb {
        flex: 0 0 220px;
        width: 220px;
    }

    .showcase-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .showcase-nav-left {
        left: 0;
    }

    .showcase-nav-right {
        right: 0;
    }
}

/* Remove old responsive rules */

.showcase-thumb:hover {
    border-color: #5a8ab8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 85, 120, 0.15);
}

.showcase-thumb.active {
    border-color: #345;
    box-shadow: 0 4px 16px rgba(52, 85, 120, 0.25);
}

.showcase-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video label overlay */
.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 6px;
    font-size: 0.75rem;
    text-align: center;
}

/* Method labels for comparison videos */
.method-labels {
    display: none;
    width: 150%;
    margin-left: -20%;
    margin-top: -15px;
    justify-content: space-around;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #5a5a5a;
    font-weight: 500;
}

.method-labels.active {
    display: flex;
}

.method-labels span {
    flex: 1;
    text-align: center;
    padding: 4px 8px;
}
