#!/bin/bash
# Showcase D: Mecha + Impossible Geometry Pack
# 10 prompts - Escher architecture, 4D geometry, paradox structures

set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
OUTPUT_DIR="$SCRIPT_DIR/../renders/showcase-mecha-geo-$(date +%Y%m%d)"

mkdir -p "$OUTPUT_DIR"

echo "Showcase D: Mecha + Impossible Geometry Pack..."
echo "Output: $OUTPUT_DIR"

generate() {
    local prompt="$1"
    local prefix="$2"
    bash "$SCRIPT_DIR/../../shared/scripts/cf-generate-wp.sh" "$prompt" "$OUTPUT_DIR" "$prefix" 8
}

# D1: Penrose Triangle
generate "Mecha hangar with Penrose triangle architecture impossibly looping. Cyan magenta lights. 1920x1080 widescreen. Triangle loops infinitely defying physics. Industrial hangar with optical illusion architecture. Neon lights illuminate impossible triangle. Oil puddles reflect the paradox. Brutalist meets mathematical impossibility. 1920x1080 widescreen." "showcase_D_penrose"

# D2: Tesseract Garage
generate "Garage where walls unfold like tesseract 4D geometry. Purple neon edges. 1920x1080 widescreen. Concrete panels rotate through impossible dimensions. Mecha bay revealed through geometric transformation. Neon strips mark folding edges. Wet floor mirrors dimensional shift. Empty surreal mechanical space. 4D projection paradox. 1920x1080 widescreen." "showcase_D_tesseract"

# D3: Mobius Conveyor
generate "Platform with Mobius strip conveyor, single sided topology. Yellow hazard stripes. 1920x1080 widescreen. Conveyor belt twisted into impossible loop. Robot parts travel on single-sided surface. Yellow safety stripes follow the twist. Magenta warning lights cyan welding sparks. Empty automated factory with mathematical madness. Topological paradox. 1920x1080 widescreen." "showcase_D_mobius"

# D4: Fractal Cathedral
generate "Storage with fractal cathedral infinite recursive pillars. Cyan purple sacred geometry. 1920x1080 widescreen. Infinite recursive pillars create impossible depth. Robot silhouettes stored in fractal alcoves. Sacred geometry lighting. Wet industrial floor reflects infinite patterns. Empty mechanical temple. Mathematical beauty in repetition. 1920x1080 widescreen." "showcase_D_fractal"

# D5: Klein Bottle Tanks
generate "Workshop with Klein bottle fuel tanks, no inside outside. Cyan coolant paradox. 1920x1080 widescreen. Fuel tanks designed as Klein bottle impossible topology. Fuel flows through bottle with no inside or outside. Cyan coolant liquid defies physics. Industrial pipes connect to impossible surface. Magenta pressure gauges purple atmospheric lighting. Wet concrete reflects paradox. Empty industrial surrealism. 1920x1080 widescreen." "showcase_D_klein"

# D6: Hypercube Mecha
generate "Bay with hypercube projection mecha parts phasing through 4D. Magenta chrome. 1920x1080 widescreen. Deconstructed mecha parts arranged in hypercube projection. Robot limbs and armor plates phase through 4D space. Impossible overlaps creating geometric paradox. Magenta and cyan neon highlights on chrome. Parts exist in multiple perspectives simultaneously. Wet workshop floor reflects geometric paradox. Mathematical beauty. 1920x1080 widescreen." "showcase_D_hypercube"

# D7: Escher Stairs
generate "Corridor with Escher stairs recursive impossible staircase. Monochrome minimal. 1920x1080 widescreen. Staircase loops infinitely creating impossible descent. Each step leads to next level paradoxically. Monochrome brutalist architecture. Clean geometric lines. Infinite regression in steps. Empty corridor with optical illusion. Recursive impossible architecture. 1920x1080 widescreen." "showcase_D_escher"

# D8: Non-Euclidean Room
generate "Room with non-Euclidean architecture angles that don't add up. Purple haze. 1920x1080 widescreen. Space with impossible geometric angles. Corners create paradoxical perspective. Walls meet at wrong angles. Purple atmospheric fog. Empty impossible room. Geometric surrealism. Architectural impossibility. 1920x1080 widescreen." "showcase_D_noneuclid"

# D9: Floating Triangle
generate "Space with impossible triangle frame structure floating. Cyan wire frame. 1920x1080 widescreen. Triangle frame hovers in empty void. Wireframe construction glows cyan. No supports defying gravity. Pure geometric form floating. Black void background. Minimal impossible object. 1920x1080 widescreen." "showcase_D_floattri"

# D10: Paradox Cube
generate "Area with paradox cube geometric contradiction. Magenta cyan edges. 1920x1080 widescreen. Cube that cannot exist in 3D space. Impossibility rendered real. Magenta and cyan edge lighting. Geometric optical illusion. Empty space containing paradox object. Mathematical contradiction made visible. 1920x1080 widescreen." "showcase_D_paradoxcube"

echo "Showcase D complete: 10 mecha impossible geometry wallpapers"