/* Panel Showcase */
.panel-showcase-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--background);
    isolation: isolate;
    overflow: hidden;
}

/* Background */
.panel-showcase-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Background Layers */
.panel-showcase-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 85%;
    height: 65%;
    transform: translateX(-50%);

    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;

    opacity: 0;
    transition: opacity 0.8s ease;

    -webkit-mask-image: radial-gradient(ellipse farthest-side at 50% 100%,
            rgba(0, 0, 0, 0.750) 0%,
            rgba(0, 0, 0, 0.717) 5%,
            rgba(0, 0, 0, 0.683) 10%,
            rgba(0, 0, 0, 0.650) 15%,
            rgba(0, 0, 0, 0.600) 20%,
            rgba(0, 0, 0, 0.550) 25%,
            rgba(0, 0, 0, 0.500) 30%,
            rgba(0, 0, 0, 0.450) 35%,
            rgba(0, 0, 0, 0.400) 40%,
            rgba(0, 0, 0, 0.350) 45%,
            rgba(0, 0, 0, 0.300) 50%,
            rgba(0, 0, 0, 0.250) 55%,
            rgba(0, 0, 0, 0.200) 60%,
            rgba(0, 0, 0, 0.170) 65%,
            rgba(0, 0, 0, 0.140) 70%,
            rgba(0, 0, 0, 0.110) 75%,
            rgba(0, 0, 0, 0.080) 80%,
            rgba(0, 0, 0, 0.060) 85%,
            rgba(0, 0, 0, 0.040) 90%,
            rgba(0, 0, 0, 0.020) 95%,
            transparent 100%);

    mask-image: radial-gradient(ellipse farthest-side at 50% 100%,
            rgba(0, 0, 0, 0.750) 0%,
            rgba(0, 0, 0, 0.717) 5%,
            rgba(0, 0, 0, 0.683) 10%,
            rgba(0, 0, 0, 0.650) 15%,
            rgba(0, 0, 0, 0.600) 20%,
            rgba(0, 0, 0, 0.550) 25%,
            rgba(0, 0, 0, 0.500) 30%,
            rgba(0, 0, 0, 0.450) 35%,
            rgba(0, 0, 0, 0.400) 40%,
            rgba(0, 0, 0, 0.350) 45%,
            rgba(0, 0, 0, 0.300) 50%,
            rgba(0, 0, 0, 0.250) 55%,
            rgba(0, 0, 0, 0.200) 60%,
            rgba(0, 0, 0, 0.170) 65%,
            rgba(0, 0, 0, 0.140) 70%,
            rgba(0, 0, 0, 0.110) 75%,
            rgba(0, 0, 0, 0.080) 80%,
            rgba(0, 0, 0, 0.060) 85%,
            rgba(0, 0, 0, 0.040) 90%,
            rgba(0, 0, 0, 0.020) 95%,
            transparent 100%);
}

.panel-showcase-bg.active {
    opacity: 1;
}

/* Section Content */
.panel-showcase-section .section-container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Heading */
.panel-showcase-heading {
    text-align: center;
    margin-bottom: 50px;
}

.panel-showcase-heading span {
    display: block;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.panel-showcase-heading h2 {
    margin: 0 0 15px;
    color: var(--text-primary);
    font-size: clamp(2rem, 3vw, 3rem);
}

.panel-showcase-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Main Preview */
.panel-showcase-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto 45px;
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    background: rgba(12, 12, 12, 0.8);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.panel-showcase-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 10px;
}

/* Slider Navigation */
.panel-showcase-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

/* Slider */
.panel-showcase-slider {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.panel-showcase-slider::-webkit-scrollbar {
    display: none;
}

/* Panel Items */
.panel-showcase-item {
    position: relative;
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    scroll-snap-align: center;
    transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel-showcase-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.panel-showcase-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 8px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.panel-showcase-item:hover {
    opacity: 1;
    border-color: var(--accent);
}

.panel-showcase-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(54, 179, 141, 0.3);
}

/* Navigation Arrows */
.panel-showcase-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.panel-showcase-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tablet */
@media screen and (max-width: 900px) {
    .panel-showcase-item {
        flex-basis: 110px;
        width: 110px;
        height: 110px;
    }

    .panel-showcase-preview img {
        max-height: 420px;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .panel-showcase-heading {
        margin-bottom: 30px;
    }

    .panel-showcase-preview {
        margin-bottom: 30px;
    }

    .panel-showcase-item {
        flex-basis: 90px;
        width: 90px;
        height: 90px;
    }

    .panel-showcase-navigation {
        gap: 8px;
    }

    .panel-showcase-arrow {
        width: 30px;
        height: 30px;
    }
}