/* ═══════════════════════════════════════════════════════════════
   SHOWCASE IMAGE SLIDER & LIGHTBOX STYLESHEET
   5-Card Step Showcase Slider (Frameless Images with Ambient Glow)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --ink: #0f172a;
    --ink-muted: #475569;
    --ink-faint: #94a3b8;
    --border: #e2e8f0;
    --border-subtle: rgba(226, 232, 240, 0.8);

    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.45);
    --primary-light: rgba(2, 132, 199, 0.08);

    --radius-card: 10px;
}

[data-theme="dark"] {
    --bg-page: #060b13;
    --bg-surface: #0c1524;
    --bg-surface-alt: #111e33;
    --ink: #f8fafc;
    --ink-muted: #94a3b8;
    --ink-faint: #64748b;
    --border: #1e293b;
    --border-subtle: rgba(255, 255, 255, 0.08);

    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.55);
    --primary-light: rgba(56, 189, 248, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN SECTION: 5-CARD SHOWCASE (ULTRA PREMIUM ACCENTS)
   ═══════════════════════════════════════════════════════════════ */
.showcase-section {
    padding: 40px 0 55px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Header Section Showcase */
.showcase-header {
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 0 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.showcase-header-left {
    max-width: 760px;
}

.showcase-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(2, 132, 199, 0.25);
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.badge-live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
}

.showcase-main-title {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}

.title-gradient-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 50%, #0369a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .title-gradient-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-subtitle {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Nav Controls & Status Counter */
.showcase-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.slider-counter-pill strong {
    color: var(--primary);
    font-size: 13.5px;
}

.slider-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.slider-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-light);
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

/* ═══ SLIDER VIEWPORT & ACCENT HAIRLINES ═══ */
.showcase-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Outer Viewport Slider */
.carousel-outer-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 18px 0 20px;
    transition: border-color 0.35s ease;
}

/* Inset Glow Ramping & Presisi di Tepi Frame */
.carousel-outer-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 6px 1px rgba(2, 132, 199, 0.35);
    transition: box-shadow 0.35s ease;
}

[data-theme="dark"] .carousel-outer-wrap::before {
    box-shadow: inset 0 0 8px 1px rgba(56, 189, 248, 0.45);
}

/* Step Slider Track: Jarak simetris 18px */
.carousel-step-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
    cursor: grab;
    user-select: none;
    padding: 8px 18px;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-step-track:active {
    cursor: grabbing;
}

/* ═══ CARD: ULTRA-PREMIUM EDITORIAL FRAME (MURNI FOTO TANPA BORDER) ═══ */
.gallery-card-frame {
    /* Dihitung dinamis via CSS variable --card-item-width oleh JS */
    flex: 0 0 var(--card-item-width, 240px);
    width: var(--card-item-width, 240px);
    aspect-ratio: 16 / 10;
    background: #000;
    padding: 0;
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/* Aksen Specular Top-Light Glass Reflection */
.gallery-card-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Aksen Floating Zoom Badge on Hover */
.gallery-card-frame::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 4;
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.gallery-card-frame:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), 0 0 24px -2px var(--primary-glow);
    z-index: 20;
}

.gallery-card-frame:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .gallery-card-frame:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.65), 0 0 24px -2px var(--primary-glow);
}

[data-theme="dark"] .gallery-card-frame:hover::after {
    background: var(--primary);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Gambar Internal */
.gallery-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gallery-card-frame:hover .gallery-img-inner {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX PREVIEW MODAL (PURE IMAGE + SIDE ARROWS & COUNTER)
   ═══════════════════════════════════════════════════════════════ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox Floating Header Pill */
.lightbox-top-bar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    z-index: 1010;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-counter-badge {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    animation: zoomModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomModal {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img {
    max-width: 84vw;
    max-height: 84vh;
    display: block;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
    user-select: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg) scale(1.08);
    color: #ffffff;
}

.lightbox-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
}

.lightbox-arrow-prev {
    left: 32px;
}

.lightbox-arrow-next {
    right: 32px;
}

.lightbox-nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

@media (max-width: 768px) {
    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 18px;
    }

    .lightbox-top-bar {
        top: 16px;
        font-size: 11.5px;
        padding: 6px 14px;
    }

    .lightbox-nav-arrow {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .lightbox-arrow-prev {
        left: 12px;
    }

    .lightbox-arrow-next {
        right: 12px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}
