/* ===================================
   DEMO SECTION STYLES
   =================================== */

.demo-section {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.demo-frame {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-dark);
    padding: 20px;
}

.demo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2B3A42;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

/* Traffic lights (macOS style) */
.demo-frame::after {
    content: '🔴 🟡 🟢';
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 0.75rem;
    z-index: 11;
    letter-spacing: 4px;
}

.demo-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-sm);
    background: white;
    display: block;
    margin-top: 40px;
}

.demo-caption {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

/* Loading state */
.demo-frame.loading::before {
    content: 'Loading demo...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.125rem;
    z-index: 5;
}

/* Scanline effect overlay (subtle retro touch) */
.demo-frame .scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9;
    opacity: 0.3;
}