/* ==========================================================================
   Interactive Showcase (HB) - High-Performance 60FPS Architecture v2.1.0
   ========================================================================== */

.ish-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    contain: layout style;
}

.ish-container {
    display: flex;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    width: 100%;
}

.ish-container.ish-layout-right {
    flex-direction: row;
}
.ish-container.ish-layout-left {
    flex-direction: row-reverse;
}

/* Display Modes */
.ish-mode-image-only .ish-nav-column {
    display: none !important;
}
.ish-mode-image-only .ish-preview-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ish-mode-tabs-only .ish-preview-column {
    display: none !important;
}
.ish-mode-tabs-only .ish-nav-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Tabs Navigation Column */
.ish-nav-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    position: relative;
}

/* Individual Tab Button / Card */
.ish-tab-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform, box-shadow, border-color;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

/* Tab Hover Motion */
.ish-motion-float .ish-tab-card:hover {
    transform: translateY(-4px);
}
.ish-motion-scale .ish-tab-card:hover {
    transform: scale(1.015);
}
.ish-motion-shift .ish-tab-card:hover {
    transform: translateX(6px);
}

/* Active Highlight Accent Bar */
.ish-tab-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ish-tab-accent, #2563eb);
    opacity: 0;
    transform: scaleY(0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    border-radius: 0 4px 4px 0;
    z-index: 3;
}
.ish-tab-card.ish-active::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Badge / Step Icon */
.ish-badge-box {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ish-tab-card:hover .ish-badge-box {
    transform: scale(1.05);
}
.ish-tab-card.ish-active .ish-badge-box {
    background: var(--ish-badge-bg-active, #eff6ff);
    color: var(--ish-badge-color-active, #2563eb);
    transform: scale(1.08);
}
.ish-badge-box svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Text Container */
.ish-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ish-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    transition: color 0.3s ease;
}
.ish-tab-card.ish-active .ish-title {
    color: var(--ish-tab-title-active, #1d4ed8);
}

/* Smooth Accordion Description */
.ish-desc-collapse {
    overflow: hidden;
    will-change: height, opacity;
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.35s ease;
}
.ish-tab-card:not(.ish-active) .ish-desc-collapse.ish-mode-collapse {
    height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    pointer-events: none;
}
.ish-tab-card.ish-active .ish-desc-collapse.ish-mode-collapse {
    opacity: 1;
    margin-top: 10px;
    pointer-events: auto;
}
.ish-desc-collapse.ish-mode-always {
    height: auto !important;
    opacity: 1;
    margin-top: 10px;
}
.ish-desc-text {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
}

/* Autoplay Progress Line */
.ish-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--ish-tab-accent, #2563eb);
    border-radius: 2px;
}
.ish-tab-card.ish-active .ish-progress-bar {
    width: 100%;
    transition: width linear;
}

/* Display / Mockup Preview Side */
.ish-preview-column {
    position: relative;
    box-sizing: border-box;
}

.ish-mockup-frame {
    background: #ffffff;
    border-radius: 24px;
    position: relative;
    box-sizing: border-box;
    will-change: transform, box-shadow;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient Radial Glow */
.ish-ambient-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
    transition: opacity 0.5s ease;
}

.ish-window-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.ish-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.ish-dot-red { background: #ff5f56; }
.ish-dot-yellow { background: #ffbd2e; }
.ish-dot-green { background: #27c93f; }
.ish-window-title {
    margin-left: 12px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Stacking Context Layer Cross-fading */
.ish-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.ish-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity, filter;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.55s;
}

.ish-panel.ish-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Transition Modes */
.ish-anim-crossfade .ish-panel { transform: none; }
.ish-anim-crossfade .ish-panel.ish-active { opacity: 1; }

.ish-anim-zoom .ish-panel { transform: scale(0.94); }
.ish-anim-zoom .ish-panel.ish-active { transform: scale(1); opacity: 1; }

.ish-anim-slide-left .ish-panel { transform: translateX(30px); }
.ish-anim-slide-left .ish-panel.ish-active { transform: translateX(0); opacity: 1; }

.ish-anim-slide-right .ish-panel { transform: translateX(-30px); }
.ish-anim-slide-right .ish-panel.ish-active { transform: translateX(0); opacity: 1; }

.ish-anim-depth .ish-panel { transform: perspective(1000px) translateY(24px) rotateX(6deg); }
.ish-anim-depth .ish-panel.ish-active { transform: perspective(1000px) translateY(0) rotateX(0deg); opacity: 1; }

.ish-anim-blur .ish-panel { filter: blur(12px); transform: scale(0.97); }
.ish-anim-blur .ish-panel.ish-active { filter: blur(0); transform: scale(1); opacity: 1; }

/* Image Wrap */
.ish-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #0f172a;
    border-radius: inherit;
}
.ish-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: inherit;
}

/* Image Hover Actions */
.ish-img-hover-zoom .ish-mockup-frame:hover .ish-image-wrap img {
    transform: scale(1.05);
}
.ish-img-hover-lift .ish-mockup-frame:hover {
    transform: translateY(-8px);
}
.ish-img-hover-glow .ish-mockup-frame:hover {
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.3) !important;
}

/* Floating Glass Pill / Badge */
.ish-pill-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

/* Pill Placement Positions */
.ish-pill-top-right { top: 20px; right: 20px; }
.ish-pill-top-left { top: 20px; left: 20px; }
.ish-pill-bottom-right { bottom: 20px; right: 20px; }
.ish-pill-bottom-left { bottom: 20px; left: 20px; }

.ish-mockup-frame:hover .ish-pill-badge {
    transform: translateY(-2px);
}

.ish-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: ishPulse 2s infinite ease-in-out;
}
@keyframes ishPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Carousel Navigation Arrows */
.ish-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50%;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.ish-nav-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.ish-arrow-prev { left: 16px; }
.ish-arrow-next { right: 16px; }
.ish-nav-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Carousel Pagination Dots Container */
.ish-dots-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    box-sizing: border-box;
    width: 100%;
    z-index: 5;
    position: relative;
}
.ish-dots-align-left { justify-content: flex-start; }
.ish-dots-align-center { justify-content: center; }
.ish-dots-align-right { justify-content: flex-end; }

/* Generic Dot Item */
.ish-dot-item {
    cursor: pointer;
    border: none;
    outline: none;
    background: #cbd5e1;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    user-select: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 1. Dot Layout: Expanding Pill */
.ish-dots-layout-expanding-pill .ish-dot-item {
    width: 10px;
    height: 10px;
    border-radius: 20px;
}
.ish-dots-layout-expanding-pill .ish-dot-item.ish-active {
    width: 32px;
    background: var(--ish-dots-active, #2563eb);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* 2. Dot Layout: Modern Ring / Circles */
.ish-dots-layout-ring-border .ish-dot-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
    position: relative;
    border: 2px solid transparent;
}
.ish-dots-layout-ring-border .ish-dot-item.ish-active {
    background: var(--ish-dots-active, #2563eb);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* 3. Dot Layout: Minimal Progress Line */
.ish-dots-layout-progress-line .ish-dot-item {
    width: 24px;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
}
.ish-dots-layout-progress-line .ish-dot-item.ish-active {
    width: 44px;
    background: var(--ish-dots-active, #2563eb);
}

/* 4. Dot Layout: Numbered Badges */
.ish-dots-layout-numbered-badge .ish-dot-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}
.ish-dots-layout-numbered-badge .ish-dot-item.ish-active {
    background: var(--ish-dots-active, #2563eb);
    color: #ffffff;
    border-color: var(--ish-dots-active, #2563eb);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 5. Dot Layout: Classic Glow */
.ish-dots-layout-classic-glow .ish-dot-item {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cbd5e1;
}
.ish-dots-layout-classic-glow .ish-dot-item.ish-active {
    background: var(--ish-dots-active, #2563eb);
    transform: scale(1.3);
    box-shadow: 0 0 14px var(--ish-dots-active, #2563eb);
}

/* Details Under Image */
.ish-body-details {
    padding: 26px 32px;
    background: #ffffff;
    position: relative;
    z-index: 3;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
.ish-body-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}
.ish-body-desc {
    margin: 0 0 18px 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
}
.ish-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ish-cta-button:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .ish-container { gap: 32px; }
}
@media (max-width: 767px) {
    .ish-container {
        flex-direction: column !important;
        gap: 24px;
    }
    .ish-nav-column, .ish-preview-column {
        width: 100% !important;
        flex: none !important;
    }
    .ish-tab-card { padding: 18px; }
    .ish-body-details { padding: 20px; }
    .ish-nav-arrow { width: 36px; height: 36px; }
    .ish-arrow-prev { left: 8px; }
    .ish-arrow-next { right: 8px; }
}
