/* ═══════════════════════════════════════════════════════════════
   MEDIA ELEMENT STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Container - flex-grow on mobile */
#media {
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    background: var(--media-bg, #FAF9F6);
}

/* Mobile: flex-grow to fill available space */
@media (max-width: 768px) {
    #media {
        flex: 1 1 auto;
        min-height: 200px;
    }
}

/* ASCII Output */
.ascii-output {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 8px;
    line-height: 1.0;
    letter-spacing: 0;
    white-space: pre;
    
    color: var(--media-fg, #1A1918);
    background: transparent;
    
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.hero {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Desktop: side by side */
@media (min-width: 769px) {
    .hero {
        flex-direction: row;
    }
    
    .hero-content {
        width: 50%;
        padding: 80px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    
    .hero-media {
        width: 50%;
        position: relative;
    }
    
    #media {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* Mobile: stacked, media grows */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: 100vh;
    }
    
    .hero-content {
        flex: 0 0 auto;
        padding: 40px 24px;
        padding-top: 96px;
    }
    
    .hero-media {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    #media {
        flex: 1 1 auto;
        min-height: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   THEME VARIABLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    --media-bg: #FAF9F6;
    --media-fg: #1A1918;
    --media-muted: #888580;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --media-bg: #1A1918;
        --media-fg: #FAF9F6;
    }
}

/* Force light/dark via class */
.theme-light {
    --media-bg: #FAF9F6;
    --media-fg: #1A1918;
}

.theme-dark {
    --media-bg: #1A1918;
    --media-fg: #FAF9F6;
}