/* ============================================================
   CLIENT DEMO SECTION CSS
   For Clients - Post a Task in Under 2 Minutes
   ============================================================ */

/* CSS Variables */
:root {
    --brand-red: #C8251E;
    --brand-red-dark: #A01A14;
    --brand-red-light: #E05050;
    --brand-gold: #C4882A;
    --brand-gold-light: #D4A245;
    --brand-gold-dark: #9A5E08;
    --brand-ink: #18110A;
    --brand-ink-muted: #6A5840;
    --brand-ink-faint: #A0896F;
    --brand-cream: #F9F5EE;
    --brand-cream-warm: #F2EAD8;
    --brand-white: #FFFFFF;
    --success: #059669;
    --font-serif: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    --r-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stepper Styles */
.demo-stepper {
    background: var(--brand-white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(24, 17, 10, 0.06);
    box-shadow: var(--shadow-md);
}

.demo-step {
    display: flex;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all var(--transition-base);
    opacity: 0.6;
}

.demo-step:hover {
    background: rgba(200, 37, 30, 0.04);
    opacity: 0.8;
}

.demo-step.active {
    background: rgba(200, 37, 30, 0.08);
    opacity: 1;
}

.demo-step-dot {
    width: 40px;
    height: 40px;
    background: rgba(200, 37, 30, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-red);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.demo-step.active .demo-step-dot {
    background: var(--brand-red);
    color: white;
}

.demo-step-title {
    font-weight: 600;
    color: var(--brand-ink);
    margin-bottom: 4px;
}

.demo-step-desc {
    font-size: 12px;
    color: var(--brand-ink-muted);
    line-height: 1.5;
}

/* Browser Mockup */
.demo-browser {
    background: var(--brand-white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(24, 17, 10, 0.08);
}

.demo-browser-bar {
    background: linear-gradient(135deg, #F3F2F0 0%, #EAE8E5 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(24, 17, 10, 0.06);
}

.demo-browser-dots {
    display: flex;
    gap: 8px;
}

.demo-browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C5C3C0;
}

.demo-browser-dots span:first-child {
    background: #FF5F56;
}

.demo-browser-dots span:nth-child(2) {
    background: #FFBD2E;
}

.demo-browser-dots span:nth-child(3) {
    background: #27C93F;
}

.demo-browser-url {
    background: white;
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-ink-muted);
    flex: 1;
}

.demo-screen {
    display: none;
    padding: 32px;
    animation: fadeInUp 0.4s ease;
}

.demo-screen.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.demo-form-label {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--brand-ink-muted);
    margin-bottom: 8px;
    display: block;
}

.demo-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(24, 17, 10, 0.1);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.demo-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(200, 37, 30, 0.1);
}

.demo-select-platform {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.demo-plat-btn {
    padding: 8px 16px;
    border: 1.5px solid rgba(24, 17, 10, 0.1);
    border-radius: var(--r-full);
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-plat-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.demo-plat-btn.selected {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

/* Budget Slider */
.demo-budget-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.demo-budget-slider input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--brand-red) 0%, var(--brand-red) 15%, rgba(24, 17, 10, 0.12) 15%);
    border-radius: var(--r-full);
}

.demo-budget-slider input[type="range"]:focus {
    outline: none;
}

.demo-budget-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--brand-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.demo-budget-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-red);
    min-width: 70px;
}

/* Worker List */
.demo-worker-list {
    max-height: 320px;
    overflow-y: auto;
}

.demo-worker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(24, 17, 10, 0.06);
    transition: all var(--transition-fast);
}

.demo-worker-card:hover {
    background: rgba(200, 37, 30, 0.04);
}

.demo-worker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}

.demo-worker-info {
    flex: 1;
}

.demo-worker-name {
    font-weight: 600;
    color: var(--brand-ink);
    margin-bottom: 4px;
}

.demo-worker-meta {
    font-size: 11px;
    color: var(--brand-ink-muted);
}

.demo-worker-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-family: var(--font-mono);
}

.demo-worker-badge.top {
    background: rgba(200, 37, 30, 0.1);
    color: var(--brand-red);
}

.demo-worker-badge.hot {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.demo-worker-badge.new {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

/* Proof Cards */
.demo-proof-card {
    display: flex;
    gap: 16px;
    background: var(--brand-cream-warm);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all var(--transition-base);
}

.demo-proof-img {
    width: 100px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-proof-body {
    flex: 1;
    padding: 16px;
}

.demo-proof-meta {
    font-size: 11px;
    color: var(--brand-ink-muted);
    margin-bottom: 8px;
}

.demo-proof-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.demo-action-row {
    display: flex;
    gap: 12px;
}

.demo-btn-approve,
.demo-btn-reject {
    padding: 6px 16px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.demo-btn-approve {
    background: var(--success);
    color: white;
}

.demo-btn-approve:hover {
    background: #047857;
    transform: translateY(-1px);
}

.demo-btn-reject {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.demo-btn-reject:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Success Screen */
.demo-success-header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.demo-success-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.demo-success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.demo-success-sub {
    color: var(--brand-ink-muted);
    font-size: 14px;
}

.demo-stat-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}

.demo-stat-box {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: rgba(24, 17, 10, 0.03);
    border-radius: 16px;
}

.demo-stat-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--brand-red);
    margin-bottom: 4px;
}

.demo-stat-lbl {
    font-size: 11px;
    color: var(--brand-ink-muted);
}

/* Navigation Dots */
.demo-nav-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--brand-cream-warm);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(24, 17, 10, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-dot.active {
    width: 24px;
    border-radius: var(--r-full);
    background: var(--brand-red);
}

.demo-dot:hover {
    background: var(--brand-red);
}

/* Pricing Tiers */
.client-tier-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid rgba(24, 17, 10, 0.06);
    height: 100%;
}

.client-tier-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.client-tier-card.featured {
    border: 2px solid var(--brand-gold);
    background: linear-gradient(135deg, white 0%, var(--brand-cream) 100%);
}

.client-tier-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--brand-gold);
    color: white;
    padding: 4px 16px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.client-tier-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.client-tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 8px;
}

.client-tier-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--brand-ink-muted);
}

.client-tier-desc {
    font-size: 13px;
    color: var(--brand-ink-muted);
    margin-bottom: 20px;
}

.client-tier-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 0;
    color: var(--brand-ink-muted);
}

.client-tier-feature i {
    color: var(--success);
    font-size: 12px;
}

/* CTA Banner */
.demo-cta-banner {
    background: linear-gradient(135deg, var(--brand-ink) 0%, #2A1F15 100%);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.demo-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 37, 30, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.demo-cta-banner h3 {
    color: white;
}

.demo-cta-banner p {
    color: rgba(255, 255, 255, 0.7);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .demo-screen {
        padding: 24px;
    }
    
    .demo-cta-banner {
        padding: 32px;
    }
    
    .client-tier-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .demo-proof-card {
        flex-direction: column;
    }
    
    .demo-proof-img {
        width: 100%;
        height: 120px;
    }
    
    .demo-stat-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .demo-cta-banner {
        text-align: center;
    }
    
    .demo-cta-banner .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .demo-browser-bar {
        padding: 8px 12px;
    }
    
    .demo-browser-url {
        font-size: 10px;
    }
    
    .demo-select-platform {
        gap: 6px;
    }
    
    .demo-plat-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .demo-worker-card {
        padding: 8px;
    }
    
    .demo-worker-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}