/* Estilos para a bandeja de seleção de Cores/Estilos */
.Color-Style-Selector {
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

/* Abas (Cores e Estilos) */
.selector-tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid rgb(64, 64, 77);
    margin-bottom: 15px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgb(64, 64, 77);
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px 5px 0 0;
}

.tab-button:hover {
    color: rgb(107, 107, 94);
}

.tab-button.active {
    background-color: rgb(213, 213, 186); /* Cor de fundo do cabeçalho */
    border-top: 2px solid rgb(64, 64, 77);
    border-left: 2px solid rgb(64, 64, 77);
    border-right: 2px solid rgb(64, 64, 77);
    border-bottom: none;
    margin-bottom: -2px; /* Ajuste para sobrepor a linha inferior */
}

/* Conteúdo das Abas */
.selector-content {
    padding: 15px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
main h1, p{
    text-align: center;
}
main > p:nth-of-type(2) {
    color: white;
    border-left: 4px solid;
    background-color: rgba(64, 64, 77, .5);
}

/* ... código CSS anterior ... */

/* Container das Bolinhas de Cor/Estilo */
.color-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px; /* Espaçamento vertical e horizontal entre os itens */
    justify-content: flex-start;
}

/* Item individual (bolinha + nome) */
.color-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 60px; /* Largura para acomodar a bolinha e o texto */
}

/* Bolinhas de Cor/Estilo */
.color-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgb(64, 64, 77);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin-bottom: 5px; /* Espaço entre a bolinha e o nome */
    flex-shrink: 0; 
}

/* Nome da Cor/Estilo */
.color-name {
    font-size: 0.75rem;
    color: rgb(64, 64, 77);
    line-height: 1.1;
    word-break: break-word; /* Quebra palavras longas se necessário */
}

.color-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(64, 64, 77, 0.5);
}

.color-ball:focus {
    outline: 2px solid black;
    outline-offset: 2px;
}
/* --- Seção de Paleta de Cores --- */
/* --- Seção de Paleta de Cores (Versão Corrigida e Otimizada) --- */
.paleta {
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.paleta-container {
    display: flex;
    flex-wrap: wrap; /* Quebra de linha em telas pequenas */
    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;
}

.cor-box:hover {
    transform: scale(1.05); /* Efeito sutil de hover */
}

.cor-info {
    width: 100%;
    padding: 10px 0;
    overflow: hidden;
}
.cor-info h3,
.cor-info p:first-child {
  height: 50px;
}
.cor-info h3 {
    margin: 5px 0;
    font-size: 1.1rem;
}

.cor-info p {
    margin: 2px 0;
    font-size: 0.9em;
    font-family: Inconsolata; /* Para códigos de cor */
    color: rgb(107, 107, 94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-indent: 0;
}
/* --- Botões de Ação --- */
.btn {
    padding: 12px 25px;
    margin-top: 10px;
    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;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; 
}

.btn-secondary {
    background-color: rgb(160, 160, 140);
    color: rgb(64, 64, 77);
    border: solid 1px rgb(64, 64, 77);
}

.btn-secondary:hover {
    background-color: rgb(213, 213, 186);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .paleta-container {
        gap: 15px;
    }
    .cor-box {
        width: 80px;
        height: 150px;
    }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}
.palette{
    display: flex;
    
}
/* Estilos para a bandeja de seleção de Cores/Estilos */
.Color-Style-Selector {
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

/* Abas (Cores e Estilos) */
.selector-tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid rgb(64, 64, 77);
    margin-bottom: 15px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgb(64, 64, 77);
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px 5px 0 0;
}

.tab-button:hover {
    color: rgb(107, 107, 94);
}

.tab-button.active {
    background-color: rgb(213, 213, 186); /* Cor de fundo do cabeçalho */
    border-top: 2px solid rgb(64, 64, 77);
    border-left: 2px solid rgb(64, 64, 77);
    border-right: 2px solid rgb(64, 64, 77);
    border-bottom: none;
    margin-bottom: -2px; /* Ajuste para sobrepor a linha inferior */
}

/* Conteúdo das Abas */
.selector-content {
    padding: 15px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ... código CSS anterior ... */

/* Container das Bolinhas de Cor/Estilo */
.color-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px; /* Espaçamento vertical e horizontal entre os itens */
    justify-content: flex-start;
}

/* Item individual (bolinha + nome) */
.color-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 60px; /* Largura para acomodar a bolinha e o texto */
}

/* Bolinhas de Cor/Estilo */
.color-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgb(64, 64, 77);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin-bottom: 5px; /* Espaço entre a bolinha e o nome */
    flex-shrink: 0; 
}

/* Nome da Cor/Estilo */
.color-name {
    font-size: 0.75rem;
    color: rgb(64, 64, 77);
    line-height: 1.1;
    word-break: break-word; /* Quebra palavras longas se necessário */
}

.color-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(64, 64, 77, 0.5);
}

.color-ball:focus {
    outline: 2px solid black;
    outline-offset: 2px;
}
/* --- Seção de Paleta de Cores --- */

/* --- Botões de Ação --- */
.btn {
    padding: 12px 25px;
    margin-top: 10px;
    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;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; 
}

.btn-secondary {
    background-color: rgb(160, 160, 140);
    color: rgb(64, 64, 77);
    border: solid 1px rgb(64, 64, 77);
}

.btn-secondary:hover {
    background-color: rgb(213, 213, 186);
}
/* ======================================= */
/* 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);
    margin-left: auto; /* Centraliza a seção */
    margin-right: auto; /* Centraliza a seção */
}

.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 --- */

/* Telas de tablets e celulares maiores (até 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem; /* Reduz o tamanho do título principal */
    }

    .selector-tabs {
        justify-content: center; /* Centraliza as abas se quebrarem a linha */
        flex-wrap: wrap;
    }

    .color-options-container {
        justify-content: center; /* Centraliza as bolinhas de cores */
        gap: 15px;
    }

    .paleta-container {
        gap: 15px;
    }

    .cor-card {
        flex-basis: 120px; /* Ajusta a base para melhor alinhamento */
        min-width: 110px;
    }

    .cor-box {
        width: 80px;
        height: 150px;
    }

    .btn-group {
        flex-direction: column; /* Coloca os botões um embaixo do outro */
        align-items: center;
        gap: 15px; /* Adiciona um espaço entre os botões empilhados */
    }
}

/* Telas de celulares menores (até 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem; /* Reduz ainda mais o título */
    }

    .tab-button {
        padding: 8px 12px; /* Diminui o preenchimento dos botões da aba */
        font-size: 1rem;
    }

    .color-option-item {
        width: 55px; /* Deixa o item da cor mais compacto */
    }

    .color-ball {
        width: 35px;  /* Diminui a bolinha da cor */
        height: 35px;
    }

    .cor-card {
        flex-basis: 100px; /* Permite que 2 ou 3 cards caibam confortavelmente */
    }

    .cor-box {
        width: 70px;
        height: 120px; /* Deixa o cartão de cor mais compacto */
        border-radius: 35px;
    }

    .cor-info h3 {
        font-size: 1rem;
    }

    .cor-info p {
        font-size: 0.8em;
    }

    .btn {
        padding: 10px 20px; /* Diminui o tamanho dos botões de download */
        width: 100%;
        max-width: 250px; /* Garante que o botão não fique muito largo */
        box-sizing: border-box; /* Garante que o padding não estoure a largura */
    }
}