/* FlightAtom - Product Screenshot Carousel */

/* --- SHOWCASE SECTION --- */
.product-showcase {
    padding: 20px 48px 80px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* --- VIEW SWITCHER --- */
.view-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.view-switcher-track {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 4px;
    position: relative;
}

.view-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-tab.active {
    color: var(--bg);
}

.view-tab svg {
    width: 16px;
    height: 16px;
}

.view-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--accent);
    border-radius: 46px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.view-indicator.admin {
    transform: translateX(100%);
}

/* --- CAROUSEL --- */
.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-perspective {
    perspective: 1500px;
    perspective-origin: center;
}

.carousel-frame {
    background: #0a1222;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.4s ease;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 100px rgba(56,189,248,0.05);
}

.carousel-frame:hover {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 25px 70px rgba(0,0,0,0.6),
        0 0 120px rgba(56,189,248,0.1);
}

/* Ambient glow underneath */
.carousel-glow {
    position: absolute;
    bottom: -30px;
    left: 15%;
    right: 15%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(56,189,248,0.12), transparent);
    filter: blur(25px);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s;
}

.carousel-frame:hover ~ .carousel-glow {
    opacity: 1.3;
}

/* Frame titlebar */
.frame-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.frame-dots span:nth-child(1) { background: #ff5f57; }
.frame-dots span:nth-child(2) { background: #febc2e; }
.frame-dots span:nth-child(3) { background: #28c840; }

.frame-url {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    font-family: 'DM Sans', sans-serif;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 6px;
}

/* Viewport & Track */
.carousel-viewport {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-track.switching {
    opacity: 0;
    transform: scale(0.97) translateX(0) !important;
    transition: opacity 0.25s, transform 0.25s;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

/* Scan line effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.3) 30%, rgba(56,189,248,0.5) 50%, rgba(56,189,248,0.3) 70%, transparent 100%);
    z-index: 10;
    pointer-events: none;
    animation: scanline 5s linear infinite;
    opacity: 0;
}

@keyframes scanline {
    0%   { top: 0;    opacity: 0; }
    5%   { opacity: 0.6; }
    90%  { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* Slide caption */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 24px 14px;
    background: linear-gradient(transparent, rgba(8,13,25,0.9));
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    letter-spacing: 0.3px;
}

.slide-caption strong {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* --- NAVIGATION ARROWS --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8,13,25,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.carousel-arrow:hover {
    background: rgba(56,189,248,0.15);
    border-color: rgba(56,189,248,0.4);
    box-shadow: 0 0 24px rgba(56,189,248,0.2);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

/* --- DOTS --- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.25);
}

.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(56,189,248,0.3);
}

/* --- PROGRESS BAR --- */
.carousel-progress {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.carousel-progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 1px;
    overflow: hidden;
}

.carousel-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gradient-end));
    border-radius: 1px;
}

/* === MOCKUP SCREEN STYLES === */
.mu-screen {
    aspect-ratio: 16/9;
    display: flex;
    background: #0b1424;
    overflow: hidden;
}

/* Sidebar */
.mu-sidebar {
    width: 52px;
    background: rgba(0,0,0,0.35);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mu-sidebar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(129,140,248,0.3));
}

.mu-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.mu-nav.active {
    background: rgba(56,189,248,0.12);
    box-shadow: inset 0 0 0 1px rgba(56,189,248,0.25);
}

/* Main content area */
.mu-main {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    min-width: 0;
}

/* Header bar */
.mu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mu-title {
    height: 14px;
    width: 140px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.mu-btn {
    height: 26px;
    width: 80px;
    background: rgba(56,189,248,0.25);
    border-radius: 6px;
}

/* Stat cards */
.mu-stats {
    display: flex;
    gap: 12px;
}

.mu-stat {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 12px;
}

.mu-stat-val {
    height: 16px;
    width: 50%;
    background: linear-gradient(90deg, rgba(56,189,248,0.25), rgba(56,189,248,0.08));
    border-radius: 4px;
    margin-bottom: 6px;
}

.mu-stat-label {
    height: 6px;
    width: 70%;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}

/* Charts */
.mu-chart-area {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mu-chart-title {
    height: 8px;
    width: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mu-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.mu-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(56,189,248,0.15), rgba(56,189,248,0.5));
    border-radius: 3px 3px 0 0;
    min-height: 8px;
}

/* Line chart */
.mu-line-chart {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mu-line-chart svg {
    width: 100%;
    height: 100%;
}

/* Table */
.mu-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.mu-table-header {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px 6px 0 0;
}

.mu-table-header .mu-cell {
    background: rgba(255,255,255,0.1);
}

.mu-table-row {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
}

.mu-cell {
    height: 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    flex: 1;
}

.mu-cell.accent { background: rgba(56,189,248,0.2); }
.mu-cell.short { flex: 0.5; }
.mu-cell.long { flex: 2; }

.mu-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mu-status-dot.green  { background: #34d399; }
.mu-status-dot.yellow { background: #fbbf24; }
.mu-status-dot.red    { background: #f87171; }
.mu-status-dot.blue   { background: #38bdf8; }

/* Cards grid */
.mu-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
}

.mu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mu-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(56,189,248,0.15);
}

.mu-card-title {
    height: 8px;
    width: 70%;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.mu-card-desc {
    height: 6px;
    width: 90%;
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
}

.mu-card-btn {
    height: 22px;
    width: 60px;
    background: rgba(56,189,248,0.15);
    border-radius: 5px;
    margin-top: auto;
}

/* Form */
.mu-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mu-form-section {
    height: 10px;
    width: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.mu-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mu-form-label {
    height: 6px;
    width: 60px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}

.mu-form-input {
    height: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

.mu-form-row {
    display: flex;
    gap: 10px;
}

.mu-form-row .mu-form-group {
    flex: 1;
}

.mu-form-submit {
    height: 30px;
    width: 120px;
    background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(129,140,248,0.2));
    border-radius: 8px;
    align-self: flex-end;
    margin-top: auto;
}

/* Chat */
.mu-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mu-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
}

.mu-chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mu-chat-bubble.ai {
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.12);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mu-chat-bubble.user {
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.12);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mu-chat-line {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}

.mu-chat-input {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.mu-chat-field {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    align-self: center;
}

.mu-chat-send {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(56,189,248,0.3);
    flex-shrink: 0;
}

/* Calendar */
.mu-calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mu-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mu-cal-month {
    height: 12px;
    width: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.mu-cal-nav {
    display: flex;
    gap: 4px;
}

.mu-cal-nav span {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.mu-cal-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.mu-cal-day {
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    position: relative;
    min-height: 10px;
}

.mu-cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.mu-cal-day.active {
    background: rgba(56,189,248,0.15);
    box-shadow: inset 0 0 0 1px rgba(56,189,248,0.3);
}

/* List */
.mu-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.mu-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
}

.mu-list-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(56,189,248,0.1);
    flex-shrink: 0;
}

.mu-list-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mu-list-primary {
    height: 8px;
    width: 60%;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.mu-list-secondary {
    height: 6px;
    width: 40%;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.mu-list-badge {
    width: 40px;
    height: 16px;
    border-radius: 10px;
    flex-shrink: 0;
}

.mu-list-badge.blue   { background: rgba(56,189,248,0.15); }
.mu-list-badge.green  { background: rgba(52,211,153,0.15); }
.mu-list-badge.yellow { background: rgba(251,191,36,0.15); }

/* Detail view */
.mu-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mu-detail-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(129,140,248,0.3));
    flex-shrink: 0;
}

.mu-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mu-detail-name {
    height: 10px;
    width: 120px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}

.mu-detail-role {
    height: 6px;
    width: 80px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}

.mu-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mu-tab {
    padding: 8px 16px;
    height: 8px;
    width: 50px;
}

.mu-tab:first-child {
    border-bottom: 2px solid var(--accent);
}

.mu-detail-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mu-detail-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mu-detail-block-title {
    height: 6px;
    width: 50%;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}

.mu-detail-block-val {
    height: 10px;
    width: 70%;
    background: rgba(56,189,248,0.12);
    border-radius: 4px;
}

/* Search bar */
.mu-search {
    display: flex;
    gap: 8px;
}

.mu-search-input {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

.mu-search-btn {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

/* Analytics dual chart layout */
.mu-analytics-row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.mu-analytics-row .mu-chart-area {
    flex: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 20px 16px 60px;
    }

    .view-tab {
        padding: 8px 16px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .view-tab svg {
        width: 14px;
        height: 14px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }

    .carousel-frame {
        border-radius: 12px;
    }

    .mu-sidebar {
        width: 40px;
    }

    .mu-main {
        padding: 10px 12px;
        gap: 10px;
    }

    .mu-stats {
        gap: 6px;
    }

    .mu-stat {
        padding: 6px 8px;
    }

    .mu-stat-val {
        height: 12px;
    }

    .mu-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .mu-card {
        padding: 8px;
        gap: 5px;
    }

    .mu-card-icon {
        width: 20px;
        height: 20px;
    }

    .frame-titlebar {
        padding: 6px 10px;
    }

    .frame-dots span {
        width: 8px;
        height: 8px;
    }

    .frame-url {
        font-size: 0.6rem;
    }

    .slide-caption {
        font-size: 0.7rem;
        padding: 32px 16px 10px;
    }

    .mu-list-item {
        padding: 6px 8px;
        gap: 6px;
    }

    .mu-list-icon {
        width: 24px;
        height: 24px;
    }

    .mu-detail-content {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mu-analytics-row {
        flex-direction: column;
    }

    .mu-chat-bubble {
        max-width: 85%;
        padding: 8px 10px;
    }

    .mu-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .mu-cal-grid {
        gap: 2px;
    }
}
