/* ============================================
   KYZLO AI AGENT DEMO
   Fake browser with autonomous cursor
   ============================================ */

.agent-demo-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.agent-demo-card {
    background: var(--glass-bg-solid);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Agent Status Bar */
.agent-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.agent-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: agentPulse 2s ease-in-out infinite;
}

@keyframes agentPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
}

.agent-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.agent-version {
    color: var(--text-dim);
    font-weight: 400;
}

.agent-task-label {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* Fake Browser Chrome */
.fake-browser {
    border-bottom: 1px solid var(--glass-border);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

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

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 5px 10px;
}

.browser-lock {
    font-size: 10px;
}

.browser-url-text {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Product Page */
.product-page {
    position: relative;
    padding: 20px;
    min-height: 320px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-layout {
    display: flex;
    gap: 20px;
}

.product-image-area {
    flex: 0 0 160px;
}

.product-image-placeholder {
    width: 160px;
    height: 160px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-icon {
    font-size: 48px;
}

.product-image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #232f3e;
    color: #00a8e1;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.product-info-area {
    flex: 1;
}

.product-title-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-rating .stars {
    color: #de7921;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 0.7rem;
    color: #007185;
}

.product-price {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-dollar {
    font-size: 0.75rem;
    color: #0f1111;
    vertical-align: top;
}

.price-main {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0f1111;
    line-height: 1;
}

.price-cents {
    font-size: 0.75rem;
    color: #0f1111;
    vertical-align: top;
}

.price-original {
    font-size: 0.75rem;
    color: #565959;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-prime {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.prime-badge {
    background: #232f3e;
    color: #00a8e1;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    padding: 1px 5px;
    border-radius: 3px;
}

.prime-delivery {
    font-size: 0.72rem;
    color: #0f1111;
}

.product-stock {
    font-size: 0.8rem;
    color: #007600;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.product-qty label {
    font-size: 0.72rem;
    color: #0f1111;
}

.product-qty select {
    padding: 4px 8px;
    border: 1px solid #d5d9d9;
    border-radius: 6px;
    background: #f0f2f2;
    font-size: 0.72rem;
    color: #0f1111;
}

/* Buy Now Button */
.buy-now-btn {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(to bottom, #ffa41c, #ff8f00);
    border: 1px solid #e77600;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0f1111;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.15s ease;
}

.buy-now-btn:hover {
    background: linear-gradient(to bottom, #f5a623, #e68a00);
}

.buy-now-btn.agent-clicking {
    transform: scale(0.96);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
}

.buy-now-btn.agent-clicked {
    background: linear-gradient(to bottom, #27c93f, #1fa832);
    border-color: #1fa832;
    color: #fff;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(to bottom, #ffd814, #f7ca00);
    border: 1px solid #f2c200;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0f1111;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.15s ease;
}

.product-secure {
    font-size: 0.65rem;
    color: #565959;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Agent Cursor */
.agent-cursor {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.4));
}

.cursor-label {
    position: absolute;
    top: 18px;
    left: 16px;
    font-size: 9px;
    font-family: var(--font-mono);
    background: rgba(0, 212, 255, 0.9);
    color: #000;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    font-weight: 600;
}

/* Agent Log */
.agent-log {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    max-height: 120px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border-top: 1px solid var(--glass-border);
}

.log-line {
    display: flex;
    gap: 10px;
    padding: 3px 0;
    animation: logFade 0.3s ease;
}

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

.log-time {
    color: var(--text-dim);
    flex-shrink: 0;
    min-width: 36px;
}

.log-msg {
    color: var(--text-secondary);
}

.log-msg.action { color: var(--accent-cyan); }
.log-msg.success { color: var(--accent-emerald); }
.log-msg.thinking { color: var(--accent-gold); }

/* Agent Stats Bar */
.agent-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
}

.agent-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.agent-stat .stat-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.agent-stat .stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.agent-status-live {
    color: var(--accent-emerald) !important;
}

.agent-status-live.complete {
    color: var(--accent-cyan) !important;
}

/* Human vs Agent Comparison */
.agent-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
}

.comparison-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.comparison-item.agent {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.comparison-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comparison-time {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.comparison-item.human .comparison-time {
    color: var(--text-muted);
}

.comparison-item.agent .comparison-time {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.comparison-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.comparison-vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }

    .product-image-area {
        flex: none;
        display: flex;
        justify-content: center;
    }

    .product-image-placeholder {
        width: 120px;
        height: 120px;
    }

    .product-image-icon {
        font-size: 36px;
    }

    .agent-comparison {
        flex-direction: column;
        gap: 12px;
    }

    .comparison-vs {
        display: none;
    }

    .comparison-item {
        max-width: 100%;
    }
}
