/* Hero showcase v3 — workspace rail, icons, scene visuals */

.showcase-workspace {
    display: flex;
    min-height: 380px;
    position: relative;
}

.showcase-channel-rail {
    flex-shrink: 0;
    width: 52px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.showcase-channel-rail-item {
    appearance: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: default;
    pointer-events: none;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.showcase-channel-rail-item[data-channel="wa"] i { color: inherit; }
.showcase-channel-rail-item.highlight,
.showcase-channel-rail-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(93, 196, 187, 0.45);
}

.showcase-channel-rail-item[data-channel="wa"].highlight { color: var(--ao-whatsapp); box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.45); }
.showcase-channel-rail-item[data-channel="ig"].highlight { color: var(--ao-instagram); }
.showcase-channel-rail-item[data-channel="messenger"].highlight { color: var(--ao-messenger); }
.showcase-channel-rail-item[data-channel="webchat"].highlight { color: var(--ao-webchat); }
.showcase-channel-rail-item[data-channel="sms"].highlight { color: #94a3b8; }
.showcase-channel-rail-item[data-channel="api"].highlight { color: var(--ao-api); }
.showcase-channel-rail-item[data-channel="wa-call"].highlight,
.showcase-channel-rail-item[data-channel="phone"].highlight { color: #7dd3fc; }

.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item {
    animation: showcaseRailIn 0.4s ease backwards;
}
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(2) { animation-delay: 0.05s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(3) { animation-delay: 0.1s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(4) { animation-delay: 0.15s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(5) { animation-delay: 0.2s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(6) { animation-delay: 0.25s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(7) { animation-delay: 0.3s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(8) { animation-delay: 0.35s; }
.hero-showcase[data-slide-index="0"] .showcase-channel-rail-item:nth-child(9) { animation-delay: 0.4s; }

@keyframes showcaseRailIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

.showcase-main-area {
    flex: 1;
    min-width: 0;
    position: relative;
}

.showcase-main-area .showcase-slides {
    min-height: 340px;
}

.showcase-main-area .showcase-arrow-prev { left: 6px; }
.showcase-main-area .showcase-arrow-next { right: 6px; }

.showcase-dash-inbox.showcase-dash-channels {
    grid-template-columns: minmax(0, 115px) minmax(0, 1fr) minmax(0, 95px);
}

.showcase-conv-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-right: 2px;
}

.showcase-conv-item .conv-title .showcase-conv-icon {
    background: #f1f5f9;
}

.showcase-conv-icon .fa-whatsapp { color: var(--ao-whatsapp); }
.showcase-conv-icon .fa-instagram { color: var(--ao-instagram); }
.showcase-conv-icon .fa-facebook-messenger { color: var(--ao-messenger); }
.showcase-conv-icon .fa-globe { color: var(--ao-webchat); }
.showcase-conv-icon .fa-sms { color: var(--ao-sms); }
.showcase-conv-icon .fa-plug { color: var(--ao-api); }

.showcase-db-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
}

.showcase-db-card {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.showcase-db-card i {
    color: var(--ao-accent);
    font-size: 10px;
}

.showcase-db-card.active {
    border-color: var(--ao-accent);
    background: rgba(93, 196, 187, 0.1);
    color: #1a3a5c;
}

.showcase-ai-panel h4 i {
    color: var(--ao-ai);
}

.showcase-timeline,
.showcase-flow-steps,
.showcase-delivery-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-timeline .showcase-step-pill,
.showcase-flow-steps .showcase-step-pill,
.showcase-delivery-steps .showcase-step-pill {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.showcase-timeline .showcase-step-pill.active,
.showcase-flow-steps .showcase-step-pill.active,
.showcase-delivery-steps .showcase-step-pill.active {
    background: rgba(93, 196, 187, 0.22);
    color: #a8ebe6;
    border-color: rgba(93, 196, 187, 0.45);
}

.showcase-kanban-tickets {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.showcase-kanban-col-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 3px;
    font-size: 9px;
    color: var(--ao-accent);
}

.showcase-kanban-col h4 {
    display: flex;
    align-items: center;
}

.showcase-lead-sources .showcase-segment i {
    margin-right: 3px;
    font-size: 9px;
}

.showcase-lead-sources .fa-whatsapp { color: var(--ao-whatsapp); }
.showcase-lead-sources .fa-instagram { color: var(--ao-instagram); }
.showcase-lead-sources .fa-globe { color: var(--ao-webchat); }
.showcase-lead-sources .fa-phone { color: #3b82f6; }
.showcase-lead-sources .fa-bullhorn { color: var(--ao-ticket); }
.showcase-lead-sources .fa-plug { color: var(--ao-api); }

.showcase-ecom-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-dash-reports {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 240px;
}

.showcase-campaign-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-campaign-card {
    padding: 10px;
    font-size: 10px;
}

.showcase-campaign-card h4 {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.showcase-campaign-card h4 .fa-whatsapp { color: var(--ao-whatsapp); }
.showcase-campaign-card h4 .fa-sms { color: var(--ao-sms); }

.showcase-chart-bars {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.showcase-chart-bars .showcase-demo-note {
    margin-bottom: 8px;
}

.showcase-reports-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-subscription-card {
    padding: 10px;
    font-size: 10px;
}

.showcase-subscription-card h4 {
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.showcase-report-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.showcase-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.showcase-step-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.showcase-dot.is-active .showcase-step-icon {
    background: rgba(15, 39, 68, 0.2);
    color: #0f2744;
}

.showcase-controls {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.showcase-controls::-webkit-scrollbar {
    display: none;
}

.showcase-float-badge:nth-child(5) { top: 18%; left: -4%; animation-delay: 1.2s; }
.showcase-float-badge:nth-child(6) { bottom: 8%; right: -2%; animation-delay: 2s; }
.showcase-float-badge:nth-child(7) { top: 62%; right: -5%; animation-delay: 2.8s; }

.showcase-mobile-hero-icon {
    display: none;
}

.showcase-slide.is-active.anim-retrigger .anim-fade-up,
.showcase-slide.is-active.anim-retrigger .anim-slide-in {
    animation: none;
}

.showcase-slide.is-active .anim-fade-up {
    animation: showcaseFadeUp 0.5s ease forwards;
}

.showcase-slide.is-active .anim-slide-in {
    animation: showcaseSlideIn 0.45s ease forwards;
}

.showcase-map-route {
    animation: none;
    transform: rotate(25deg) scaleX(0);
    transform-origin: left center;
}

.showcase-slide.is-active .showcase-map-route {
    animation: showcaseRouteDraw 1.2s ease 0.5s forwards;
}

@keyframes showcaseRouteDraw {
    to { transform: rotate(25deg) scaleX(1); }
}

@media (max-width: 991px) {
    .showcase-kanban-tickets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-kanban-tickets .showcase-kanban-col:nth-child(n+3) {
        display: none;
    }

    .showcase-dash-reports {
        grid-template-columns: 1fr;
    }

    .showcase-campaign-cards {
        flex-direction: row;
    }

    .showcase-campaign-card {
        flex: 1;
    }

    .showcase-dash-inbox.showcase-dash-channels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .showcase-workspace {
        min-height: 300px;
    }

    .showcase-channel-rail {
        width: 40px;
        padding: 8px 4px;
        gap: 4px;
    }

    .showcase-channel-rail-item {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .showcase-mobile-hero-icon {
        display: flex;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(93, 196, 187, 0.2);
        color: #5dc4bb;
        font-size: 9px;
        font-weight: 800;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
    }

    .showcase-main-area .showcase-slides {
        min-height: 260px;
    }

    .showcase-slide-header p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .showcase-dot-label-full {
        display: none;
    }

    .showcase-dot-label-short {
        display: inline;
    }

    .showcase-step-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .showcase-dot {
        padding: 6px 8px;
        min-width: 44px;
        justify-content: center;
    }

    .showcase-timeline,
    .showcase-flow-steps,
    .showcase-delivery-steps {
        justify-content: center;
    }

    .showcase-campaign-cards {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase[data-slide-index="0"] .showcase-channel-rail-item,
    .showcase-map-route {
        animation: none !important;
        transform: none !important;
    }
}
