/**
 * Screen 2C Value Preview Styles
 * For CHECK and AUDIT packages - shows findings preview without actionable URLs
 * Creates upsell opportunity to ENHANCE package
 */

/* ============================================
   MAIN CONTAINER
   ============================================ */
.s2c-value-preview {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.s2c-preview-header {
    text-align: center;
    margin-bottom: 40px;
}

.s2c-preview-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.s2c-preview-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   STATS SUMMARY SECTION
   ============================================ */
.s2c-preview-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.s2c-stat-item {
    text-align: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.s2c-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.s2c-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #dc3545;
    display: block;
    line-height: 1.2;
}

.s2c-stat-number.warning {
    color: #fd7e14;
}

.s2c-stat-number.info {
    color: #0d6efd;
}

.s2c-stat-number.success {
    color: #198754;
}

.s2c-stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    display: block;
}

/* ============================================
   PREVIEW CARDS SECTION
   ============================================ */
.s2c-preview-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.s2c-preview-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.s2c-preview-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.s2c-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.s2c-card-citation {
    font-size: 14px;
    color: #333;
    flex: 1;
    padding-right: 16px;
    line-height: 1.5;
}

/* Issue Type Badges */
.s2c-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.s2c-card-badge.dead-link {
    background: #fee2e2;
    color: #dc2626;
}

.s2c-card-badge.low-authority {
    background: #fef3c7;
    color: #d97706;
}

.s2c-card-badge.no-chain {
    background: #dbeafe;
    color: #2563eb;
}

.s2c-card-badge.outdated {
    background: #f3e8ff;
    color: #9333ea;
}

.s2c-card-badge.redirect {
    background: #fce7f3;
    color: #db2777;
}

/* AI Findings Preview */
.s2c-card-findings {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.s2c-finding-label {
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.s2c-finding-label::before {
    content: '✨';
    font-size: 12px;
}

.s2c-finding-text {
    font-size: 14px;
    color: #166534;
    line-height: 1.6;
}

/* Lock Overlay */
.s2c-card-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    padding: 14px 18px;
    color: #666;
    font-size: 14px;
}

.s2c-card-lock .lock-icon {
    font-size: 18px;
    opacity: 0.7;
}

.s2c-card-lock .lock-text {
    flex: 1;
}

.s2c-card-lock .lock-text strong {
    color: #333;
}

/* ============================================
   MORE ISSUES TEASER
   ============================================ */
.s2c-preview-more {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px dashed #eab308;
    border-radius: 12px;
    margin-bottom: 30px;
}

.s2c-preview-more p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #854d0e;
    font-weight: 500;
}

.s2c-preview-more p strong {
    color: #713f12;
    font-weight: 700;
}

.s2c-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--vc-status-supported) 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.s2c-unlock-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.s2c-unlock-btn:active {
    transform: translateY(0);
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.s2c-preview-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.s2c-preview-footer p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

.s2c-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #333;
    border: 2px solid #d0d0d0;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.s2c-continue-btn:hover {
    border-color: #999;
    background: #f8f9fa;
}

.s2c-continue-btn:active {
    background: #e9ecef;
}

/* ============================================
   UPGRADE MODAL
   ============================================ */
.s2c-upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.s2c-upgrade-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.s2c-upgrade-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.s2c-upgrade-modal-overlay.visible .s2c-upgrade-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.s2c-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.s2c-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.s2c-modal-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Modal Body */
.s2c-modal-body {
    padding: 24px;
}

/* Package Comparison */
.s2c-package-comparison {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.s2c-package-box {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.s2c-package-box.current {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
}

.s2c-package-box.upgrade {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--vc-status-supported);
}

.s2c-package-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.s2c-package-box.current .s2c-package-name {
    color: var(--vc-text-tertiary);
}

.s2c-package-box.upgrade .s2c-package-name {
    color: #059669;
}

.s2c-package-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.s2c-package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.s2c-package-features li {
    font-size: 13px;
    color: #4b5563;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s2c-package-features li::before {
    content: '✓';
    color: var(--vc-status-supported);
    font-weight: bold;
}

.s2c-package-box.current .s2c-package-features li::before {
    color: var(--vc-text-secondary);
}

/* Upgrade Benefits */
.s2c-upgrade-benefits {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.s2c-upgrade-benefits h4 {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 12px 0;
}

.s2c-upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2c-upgrade-benefits li {
    font-size: 13px;
    color: #78350f;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.s2c-upgrade-benefits li::before {
    content: '🔓';
    position: absolute;
    left: 0;
}

/* Modal Actions */
.s2c-modal-actions {
    display: flex;
    gap: 12px;
}

.s2c-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.s2c-modal-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.s2c-modal-btn.secondary:hover {
    background: #e5e7eb;
}

.s2c-modal-btn.primary {
    background: linear-gradient(135deg, var(--vc-status-supported) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.s2c-modal-btn.primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.s2c-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.s2c-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.s2c-empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.s2c-empty-state p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .s2c-value-preview {
        padding: 24px 16px;
    }

    .s2c-preview-header h1 {
        font-size: 22px;
    }

    .s2c-preview-stats {
        gap: 16px;
    }

    .s2c-stat-item {
        padding: 16px 20px;
        min-width: 100px;
    }

    .s2c-stat-number {
        font-size: 28px;
    }

    .s2c-preview-card {
        padding: 18px;
    }

    .s2c-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .s2c-card-badge {
        align-self: flex-start;
    }

    .s2c-package-comparison {
        flex-direction: column;
    }

    .s2c-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .s2c-preview-stats {
        flex-direction: column;
        align-items: center;
    }

    .s2c-stat-item {
        width: 100%;
        max-width: 200px;
    }
}
