/* =========================================
   SECTION 04: OUTPUT (СВЕТЛЫЙ ПРЕМИУМ)
   ========================================= */

/* КРИТИЧНО: Переопределяем глобальный padding от .app-frame */
#vis-doc.app-frame {
    padding: 0 !important;
}

#vis-doc {
    background: #EAEAEA;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Subtle pattern overlay */
#vis-doc::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.4;
}

.output-wrapper {
    width: 100%;
    height: 100%;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.output-header {
    text-align: center;
}

.output-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.output-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0;
}

/* === SHOWCASE CONTAINER === */
.artifacts-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    perspective: 1500px;
    flex: 1;
}

/* === 3D ARTIFACT CARD === */
.artifact-3d {
    width: 100%;
    max-width: 400px;
    height: 110px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.artifact-3d:hover {
    transform: translateY(-4px) translateZ(10px);
}

.artifact-3d:nth-child(1) .artifact-glass {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.artifact-3d:nth-child(2) .artifact-glass {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.artifact-3d:nth-child(3) .artifact-glass {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

/* Glass card */
.artifact-glass {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.artifact-3d:hover .artifact-glass {
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Shimmer effect on hover */
.artifact-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.artifact-3d:hover .artifact-glass::before {
    left: 100%;
}

/* Icon area */
.artifact-icon-area {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.artifact-3d:nth-child(1) .artifact-icon-area {
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.artifact-3d:nth-child(2) .artifact-icon-area {
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.artifact-3d:nth-child(3) .artifact-icon-area {
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.artifact-icon-large {
    font-size: 40px;
    position: relative;
    z-index: 1;
}

/* Content */
.artifact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artifact-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.3px;
}

.artifact-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.artifact-detail-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #666666;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.artifact-3d:nth-child(1) .artifact-detail-value {
    color: #667EEA;
}

.artifact-3d:nth-child(2) .artifact-detail-value {
    color: #10B981;
}

.artifact-3d:nth-child(3) .artifact-detail-value {
    color: #F59E0B;
}

.artifact-detail-value {
    font-weight: 700;
}

/* Badge */
.artifact-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.artifact-3d:nth-child(1) .artifact-badge {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.artifact-3d:nth-child(2) .artifact-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.artifact-3d:nth-child(3) .artifact-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Note */
.output-note {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #666666;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid #667EEA;
    max-width: 400px;
    margin: 0 auto;
}

.output-note strong {
    color: #1A1A1A;
    font-weight: 700;
}