/* ==========================================================================
   Byte Robotik - Split Vitrine Showcase Component
   Full-Width Unified Box: One half crisp image, other half dark-blurred image with content
   ========================================================================== */

.br-split-vitrine-section {
    position: relative;
    width: 100%;
    background: #1c1c1c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 0;
}

/* Full Bleed Unified Box (100% width covering the whole section) */
.br-split-vitrine {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #1c1c1c;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 560px;
}

@media (min-width: 992px) {
    .br-split-vitrine {
        grid-template-columns: 1.05fr 0.95fr;
        min-height: 700px;
    }
}

@media (min-width: 1200px) {
    .br-split-vitrine {
        min-height: 760px;
    }
}

@media (min-width: 1400px) {
    .br-split-vitrine {
        min-height: 820px;
    }
}

/* --------------------------------------------------------------------------
   LEFT HALF: Dark-Blurred Background Pane with Content
   -------------------------------------------------------------------------- */
.br-split-vitrine__content-pane {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    background: #1c1c1c;
}

@media (min-width: 992px) {
    .br-split-vitrine__content-pane {
        min-height: 700px;
    }
}

@media (min-width: 1200px) {
    .br-split-vitrine__content-pane {
        min-height: 760px;
    }
}

@media (min-width: 1400px) {
    .br-split-vitrine__content-pane {
        min-height: 820px;
    }
}

/* Clear & Visible Dark-Blurred Duplicate Image */
.br-split-vitrine__blur-img {
    position: absolute;
    inset: -35px;
    width: calc(100% + 70px);
    height: calc(100% + 70px);
    object-fit: cover;
    object-position: center;
    filter: blur(24px) brightness(0.42) saturate(1.35);
    transform: scale(1.1);
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Subtle Gradient Overlay for Text Readability without destroying the image */
.br-split-vitrine__blur-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.72) 0%, rgba(28, 28, 28, 0.52) 60%, rgba(28, 28, 28, 0.82) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Subtle vertical divider between the two halves on desktop */
@media (min-width: 992px) {
    .br-split-vitrine__content-pane::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
        z-index: 4;
    }
}

/* Foreground Content Wrapper */
.br-split-vitrine__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 3rem 2rem;
    gap: 2.2rem;
}

@media (min-width: 768px) {
    .br-split-vitrine__inner {
        padding: 4rem 3.5rem;
    }
}

@media (min-width: 1200px) {
    .br-split-vitrine__inner {
        padding: 4.8rem 5rem 4.8rem 6vw;
    }
}

@media (min-width: 1400px) {
    .br-split-vitrine__inner {
        padding: 5.5rem 6rem 5.5rem 7vw;
    }
}

/* --------------------------------------------------------------------------
   THEME-COMPATIBLE PILL BADGE
   Linear / Apple Keynote style frosted dark glass capsule
   -------------------------------------------------------------------------- */
.br-split-vitrine__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.br-split-vitrine__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.br-split-vitrine__badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Subtle Glowing Brand Pulse Dot */
.br-split-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF6A00;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.9);
    display: inline-block;
    flex-shrink: 0;
    animation: brBadgePulse 2.4s infinite ease-in-out;
}

@keyframes brBadgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.br-split-vitrine__counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    user-select: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Body: Headline & Description */
.br-split-vitrine__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
}

.br-split-vitrine__title {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    font-weight: 850;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.br-split-vitrine__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Footer: Action Button & Carousel Navigation */
.br-split-vitrine__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.br-split-vitrine__footer .btn-brand,
#sv-link {
    font-size: 1.15rem;
    padding: 0.95rem 2.4rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    border-radius: 14px;
    background: #FF6A00 !important;
    background-color: #FF6A00 !important;
    border-color: #FF6A00 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.2s ease;
}

.br-split-vitrine__footer .btn-brand:hover,
.br-split-vitrine__footer .btn-brand:focus,
#sv-link:hover,
#sv-link:focus {
    background: #E85D00 !important;
    background-color: #E85D00 !important;
    border-color: #E85D00 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

/* Navigation Controls (Arrows + Dots) */
.br-split-vitrine__nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
}

.br-split-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.br-split-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.br-split-nav-btn:active {
    transform: scale(0.92);
}

.br-split-vitrine__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.br-split-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.br-split-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.br-split-dot.is-active {
    width: 32px;
    background: #FF6A00 !important;
    box-shadow: 0 0 14px rgba(255, 106, 0, 0.9) !important;
}

/* --------------------------------------------------------------------------
   RIGHT HALF: Crisp High-Fidelity Photo Showcase Pane
   Prevents stretch, blurriness, and distortion by preserving true aspect ratio
   -------------------------------------------------------------------------- */
.br-split-vitrine__image-pane {
    position: relative;
    overflow: hidden;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 2rem;
}

@media (min-width: 992px) {
    .br-split-vitrine__image-pane {
        min-height: 700px;
        padding: 3rem 3.5rem;
    }
}

@media (min-width: 1200px) {
    .br-split-vitrine__image-pane {
        min-height: 760px;
        padding: 3.5rem 4.5rem;
    }
}

@media (min-width: 1400px) {
    .br-split-vitrine__image-pane {
        min-height: 820px;
        padding: 4rem 5.5rem;
    }
}

.br-split-vitrine__media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-split-vitrine__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.45s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-split-vitrine__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* High-Fidelity Image Rendering:
   - object-fit: contain preserves original aspect ratio without stretching
   - max-width / max-height prevent forced upscale distortion
   - -webkit-optimize-contrast ensures crisp edge rendering
   - Elegant showcase frame with radius & drop-shadow
*/
.br-split-vitrine__img {
    max-width: 96%;
    max-height: 94%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #1c1c1c;
    border-radius: 20px;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 255, 255, 0.12);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.br-split-vitrine:hover .br-split-vitrine__slide.is-active .br-split-vitrine__img {
    transform: scale(1.025);
    box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.95),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Subtle corner inner glow on image pane */
.br-split-vitrine__image-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 3;
}
