/* Herda estilos básicos do style.css principal */
@import url('style.css');

/* Lista de Raças */
.racas-lista h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.raca-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 280px;
    height: 350px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.raca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.raca-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.raca-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raca-card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.raca-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.raca-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Detalhes da Raça */
.detalhes-raca {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.raca-header {
    background: white;
    padding: 2rem;
    border-bottom: 3px solid #4a5568;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.raca-titulo {
    font-size: 2.5rem;
    color: #2d3748;
    margin: 0;
}

.btn-fechar {
    background: #718096;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fechar:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.raca-imagem-wide {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.raca-imagem-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raca-conteudo {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .raca-conteudo {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.raca-coluna {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.raca-descricao {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}

.raca-secao {
    margin-bottom: 1rem;
}

.raca-secao h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.raca-caracteristica {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.raca-caracteristica strong {
    color: #2d3748;
    display: inline-block;
    min-width: 120px;
}

.raca-traços h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.raca-traço {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #4299e1;
}

.raca-traço strong {
    color: #2b6cb0;
}

.back-link {
    color: #90cdf4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #63b3ed;
    text-decoration: underline;
}

/* Estilos para sub-raças */
.sub-raca {
    background: #f8fafc;
    border-left: 4px solid #38a169;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.sub-raca h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.sub-raca .raca-descricao {
    font-style: italic;
    margin-bottom: 1rem;
    color: #4a5568;
}