/* ======================================= */
/* ESTILOS ESPECÍFICOS PARA O CONTEÚDO MAIN */
/* ======================================= */

/* --- Títulos e Parágrafos --- */
.container h1, .container h2 {
    text-align: center;
    color: rgb(64, 64, 77);
    margin-bottom: 20px;
}

.container p {
    text-align: center;
    margin-bottom: 15px;
    text-indent: 0;
}

/* --- Seção de Configuração de Cores --- */
.configuracao-cores {
    padding: 20px;
    background-color: rgb(213, 213, 186);
    border: solid 2px rgb(64, 64, 77);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.grid-controles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.controle-cor-grupo {
    padding: 15px;
    border: 1px solid rgba(64, 64, 77, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
}

.controle-cor-grupo h4 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: rgb(64, 64, 77);
}

.input-wrapper {
    margin-bottom: 10px;
}

.input-wrapper label {
    font-weight: bold;
    margin-bottom: 5px;
    color: rgb(64, 64, 77);
    display: block;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="number"],
.input-wrapper input[type="color"] {
    width: 100%;
    padding: 8px;
    border: solid 1px rgb(64, 64, 77);
    border-radius: 5px;
    background-color: white;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-wrapper input[type="color"] {
    height: 40px;
    padding: 2px;
}

.input-wrapper input:focus {
    border-color: black;
}

.rgb-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.rgb-group .input-wrapper {
    flex: 1;
}

.rgb-group label {
    text-align: center;
}

/* --- Separador --- */
hr {
    border: none;
    border-top: solid 1px rgba(64, 64, 77, 0.3);
    margin: 30px auto;
    width: 80%;
}

/* --- Seção de Paleta de Cores --- */
.paleta {
    padding: 20px 0;
    width: 100%;
}

.paleta-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 160px;
}

.cor-box {
    width: 100px; 
    height: 180px; 
    border-radius: 50px; /* Forma de 'pílula' vertical */
    border: solid 2px rgb(64, 64, 77);
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    background-color: #ffffff; /* Cor inicial */
}

.cor-box:hover {
    transform: scale(1.05);
}

.cor-info {
    width: 100%;
    padding: 10px 0;
    overflow: hidden;
}

.cor-info h3 {
    margin: 5px 0;
    font-size: 1.1rem;
}

.cor-info p {
    margin: 2px 0;
    font-size: 0.9em;
    font-family: Inconsolata;
    color: rgb(107, 107, 94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Mensagem de Erro --- */
#mensagem-erro {
    color: #940a0a;
    font-weight: bold;
    margin-top: 15px;
    min-height: 20px;
}

/* --- Botões de Ação --- */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background-color: rgb(160, 160, 140);
    color: rgb(64, 64, 77);
    border: solid 1px rgb(64, 64, 77);
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgb(213, 213, 186);
}

.btn:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    border-color: #aaaaaa;
}
/* ======================================= */
/* ESTILOS PARA O CONTEÚDO SEO/INFORMATIVO */
/* ======================================= */

.info-seo {
    max-width: 800px;
    padding: 30px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #ffffff; /* Fundo claro para contraste */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-seo h2, .info-seo h3 {
    text-align: left;
    color: rgb(64, 64, 77);
    margin-top: 25px;
    margin-bottom: 10px;
}

.info-seo p {
    text-align: justify; /* Alinha o texto do parágrafo à esquerda */
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-seo ul {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.info-seo li {
    margin-bottom: 8px;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .paleta-container {
        gap: 15px;
    }
    .cor-box {
        width: 80px;
        height: 150px;
    }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}
@media (min-width: 900px) {
    .grid-controles {
        grid-template-columns: repeat(3, 1fr);
    }
}