/* 
   KorumOS V3: Client Package Preview 
   Premium Glassmorphic Design
*/

.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.preview-modal {
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 157, 0.05);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.preview-modal-overlay.visible .preview-modal {
    transform: translateY(0);
}

/* HEADER */
.preview-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-mission-type {
    font-family: var(--font-head);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.preview-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: #FFF;
    letter-spacing: 1px;
}

.preview-deploy-btn {
    background: var(--accent-green);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.2);
}

.preview-deploy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.4);
}

.preview-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.2s;
}

.preview-close-btn:hover {
    color: #FFF;
}

/* TABS */
.preview-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-tab {
    padding: 15px 20px;
    color: #666;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.preview-tab:hover {
    color: #AAA;
}

.preview-tab.active {
    color: var(--accent-green);
}

.preview-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

/* BODY */
.preview-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.preview-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 40px;
    transition: all 0.3s ease;
}

.preview-pane.active {
    opacity: 1;
    visibility: visible;
}

.pane-content {
    height: 100%;
    overflow-y: auto;
    font-family: var(--font-body);
    line-height: 1.7;
    color: #CCC;
    padding-right: 20px;
}

.pane-content h2 {
    color: #FFF;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

.report-preview-shell {
    max-width: 920px;
    margin: 0 auto;
    color: #d9d4ca;
}

.report-preview-page {
    background: linear-gradient(180deg, rgba(28, 25, 22, 0.96), rgba(18, 16, 14, 0.98));
    border: 1px solid rgba(245, 168, 0, 0.12);
    border-radius: 14px;
    padding: 34px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.report-preview-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.report-preview-headline {
    font-family: var(--font-head);
    font-size: 28px;
    line-height: 1.2;
    color: #f3eee4;
    margin-bottom: 18px;
}

.report-preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.report-preview-badge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d7d0c1;
}

.report-preview-badge.score {
    border-color: rgba(245, 168, 0, 0.22);
    color: #ffd166;
}

.report-preview-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.report-preview-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #ddd7cd;
}

.report-preview-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
}

.report-preview-panel h3,
.report-preview-section h3,
.report-preview-column h3 {
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.report-preview-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.report-preview-stat {
    background: rgba(237, 230, 216, 0.06);
    border: 1px solid rgba(245, 168, 0, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
}

.report-preview-stat-value {
    font-family: var(--font-head);
    font-size: 24px;
    color: #f3eee4;
}

.report-preview-stat-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #968c7a;
    margin-top: 4px;
}

.report-preview-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.report-preview-list {
    display: grid;
    gap: 10px;
}

.report-preview-list-item {
    padding-left: 14px;
    border-left: 2px solid rgba(245, 168, 0, 0.34);
    font-size: 13px;
    line-height: 1.6;
    color: #ddd7cd;
}

.report-preview-list-item.risk {
    border-left-color: rgba(255, 77, 77, 0.45);
}

.report-preview-list-item.action {
    border-left-color: rgba(76, 175, 125, 0.45);
}

.report-preview-section {
    margin-bottom: 26px;
}

.report-preview-section-title {
    font-family: var(--font-head);
    font-size: 18px;
    color: #f3eee4;
    margin-bottom: 10px;
}

.report-preview-body {
    font-size: 13px;
    line-height: 1.7;
    color: #d8d1c4;
}

.report-preview-provenance {
    margin-top: 12px;
    font-size: 11px;
    color: #9f9481;
    letter-spacing: 0.04em;
}

.report-preview-artifacts {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.report-preview-artifact {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
}

.report-preview-artifact-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9e957f;
    margin-bottom: 10px;
}

.report-preview-artifact-body svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #fff;
}

.report-preview-contributors {
    display: grid;
    gap: 8px;
}

.report-preview-contributor {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    color: #dbd4c8;
}

.report-preview-status {
    color: #a7d6ba;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.report-preview-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.report-preview-data-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.report-preview-empty {
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #8f8677;
    text-align: center;
}

@media (max-width: 900px) {
    .report-preview-summary-grid,
    .report-preview-two-col {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
.preview-footer {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-meta-info {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-deploy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-deploy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.secondary-deploy.style-set {
    border-color: rgba(0, 255, 157, 0.18);
    background: rgba(0, 255, 157, 0.06);
    color: var(--accent-green);
}

.secondary-deploy.style-set:hover {
    background: rgba(0, 255, 157, 0.12);
    border-color: rgba(0, 255, 157, 0.28);
    color: #E8FFF6;
}

/* UTILS */
.glass-scroll::-webkit-scrollbar {
    width: 6px;
}

.glass-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.glass-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.glass-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.3);
}
