/* assets/css/mission-control-preview.css */

.mission-control-section {
    background-color: var(--sys-core-navy-900);
    color: var(--sys-text-primary-dark);
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 2rem + 5vw, 6rem) 0;
    border-top: 1px solid var(--sys-border-light);
    border-bottom: 1px solid var(--sys-border-light);
}

/* Background grid effect */
.mc-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(194, 155, 64, 0.05) 1.5px, transparent 0);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

.mc-header-content {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.mc-nav-tabs {
    border: none;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.mc-nav-tabs .nav-link {
    color: var(--sys-text-secondary-dark);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--sys-radius-md);
    padding: 1.25rem 1.5rem;
    text-align: left;
    transition: all var(--sys-duration-normal) var(--sys-ease-cinematic);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mc-nav-tabs .nav-link:hover {
    color: var(--sys-surface-white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(194, 155, 64, 0.3);
    transform: translateX(8px);
}

.mc-nav-tabs .nav-link.active {
    color: var(--sys-surface-white);
    background: rgba(255, 143, 0, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.mc-nav-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sys-core-saffron);
}

.mc-nav-tabs .nav-link i {
    font-size: 1.25rem;
    margin-right: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mc-nav-tabs .nav-link.active i {
    opacity: 1;
    color: #f47920;
}

/* Horizontal scroll for mobile tabs */
@media (max-width: 991.98px) {
    .mc-nav-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .mc-nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
    }

    .mc-nav-tabs .nav-link:hover {
        transform: none;
    }
}

/* Preview Window UI */
.mc-preview-window {
    background: var(--sys-core-navy-800);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--sys-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    min-height: 440px;
    z-index: 2;
    transition: all var(--sys-duration-slow) var(--sys-ease-cinematic);
}

.mc-preview-window:hover {
    border-color: rgba(194, 155, 64, 0.3);
    box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.05);
}

.mc-window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mc-dot.red {
    background: #ff5f56;
}

.mc-dot.yellow {
    background: #ffbd2e;
}

.mc-dot.green {
    background: #27c93f;
}

.mc-window-search {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    width: 200px;
    text-align: center;
}

.mc-window-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

/* Mock Components */
.mc-mock-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sys-border-light);
    border-radius: var(--sys-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--sys-duration-normal) var(--sys-ease-standard);
}

.mc-mock-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(194, 155, 64, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.mc-mock-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.mc-mock-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.mc-mock-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 10%;
    padding-top: 20px;
}

.mc-mock-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--sys-core-saffron) 0%, rgba(255, 143, 0, 0.1) 100%);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.2s var(--sys-ease-cinematic) forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.mc-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mc-mock-row:last-child {
    border-bottom: none;
}

.mc-mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
}

.mc-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mc-badge-success {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
}

.mc-badge-warning {
    background: rgba(255, 189, 46, 0.1);
    color: #ffbd2e;
}

/* Explanation Panel */
.mc-explanation-panel {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.mc-explanation-panel h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mc-explanation-panel p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mc-explanation-panel ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mc-explanation-panel li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: #ffffff;
    font-weight: 500;
}

.mc-explanation-panel li i {
    color: #f47920;
    margin-right: 1rem;
    font-size: 1.25rem;
    margin-top: 2px;
}

/* Animations for tab content */
.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}