/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.site-subtitle {
    font-size: 1rem;
    color: #ff6b00;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content */
.generation-section {
    background: #111111;
    border: 2px solid #ff6b00;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
    margin-bottom: 2rem;
}

/* Input Area */
.input-area {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    background: #000000;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

textarea::placeholder {
    color: #666666;
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: #000000;
    border: 2px solid #ff6b00;
    color: #ffffff;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    background: #ff6b00;
    color: #000000;
    border-color: #ff6b00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #000000;
    border-color: #333333;
    color: #666666;
    box-shadow: none;
}

.generate-btn:disabled:hover {
    background: #000000;
    color: #666666;
    border-color: #333333;
}

.btn-loader {
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Container */
.image-container {
    margin-bottom: 2rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border: 2px solid #ff6b00;
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
    aspect-ratio: 16/9;
}

.generated-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    z-index: 10;
    border: 2px solid #ff6b00;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b00;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

/* Examples Section */
.examples-section {
    text-align: center;
}

.examples-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.example-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.prompt-chip {
    padding: 0.75rem 1.5rem;
    background: #000000;
    border: 2px solid #ff6b00;
    border-radius: 30px;
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-chip:hover {
    background: #ff6b00;
    color: #000000;
    border-color: #ff6b00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    color: #666666;
    font-size: 0.8rem;
    border-top: 1px solid #333333;
    padding-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .generation-section {
        padding: 1.5rem;
    }
    
    .prompt-chip {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}