/* Arquivo: style.css (VERSÃO COM NOVA IDENTIDADE VISUAL) */

/* --- VARIÁVEIS DE COR E FONTE --- */
:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --border-color: #2c2c2c;
    --text-color: #E0E0E0;
    --text-color-dark: #333;
    --primary-purple: #8A2BE2;
    --primary-yellow: #FACC15;
    --primary-gradient: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-yellow) 100%);
    --font-family: 'Poppins', sans-serif;
}

/* --- ESTILOS GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- LAYOUT PRINCIPAL --- */
.container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.site-logo {
    max-width: 300px;
    height: auto;
}

/* --- CAIXA DE CRIAÇÃO --- */
.creator-box, .preview-box {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.step {
    margin-bottom: 2.5rem;
}

.step:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- GALERIA DE IMAGENS --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-image.selected {
    transform: scale(1.05);
    border-image: var(--primary-gradient) 1;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

/* --- CAMPOS E BOTÕES --- */
input[type="text"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

#generate-btn, .download-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color-dark);
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

#generate-btn:hover, .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

/* --- SEÇÃO DE PRÉ-VISUALIZAÇÃO --- */
.preview-box {
    text-align: center;
}

#preview-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- RODAPÉ --- */
footer {
    text-align: center;
    margin-top: 3rem;
    color: #777;
    font-size: 0.9rem;
}

/* --- CLASSES UTILITÁRIAS --- */
.hidden {
    display: none;
}

/* --- RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .creator-box, .preview-box {
        padding: 1.5rem;
    }
    h2, h3 {
        font-size: 1.25rem;
    }
}