@import url('style.css');

/* Lista de Classes - Containers Retangulares */
.classes-lista h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.classes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.classe-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 150px;
}

.classe-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.classe-card-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.classe-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

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

.classe-card p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.4;
}

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

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

.classe-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);
}

.classe-conteudo {
    padding: 2rem;
}

.classe-descricao {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Tabelas */
.tabela-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.tabela-traços {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #f8fafc;
}

.tabela-traços th {
    background: #4a5568;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.tabela-traços td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.tabela-traços tr:nth-child(even) {
    background: #edf2f7;
}

.tabela-niveis {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.tabela-niveis th {
    background: #2d3748;
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: bold;
}

.tabela-niveis td {
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tabela-niveis tr:nth-child(even) {
    background: #f7fafc;
}

/* Características por Nível */
.caracteristicas-nivel {
    margin: 2rem 0;
}

.nivel-secao {
    background: #f8fafc;
    border-left: 4px solid #4299e1;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.nivel-titulo {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.nivel-descricao {
    color: #4a5568;
    line-height: 1.5;
}

/* Sistema flexível para diferentes tipos de tabelas */
.tabela-conjuradores {
    background: #fff5f5;
}

.tabela-conjuradores th {
    background: #c53030;
}

.tabela-simples {
    background: #f0fff4;
}

.tabela-simples th {
    background: #38a169;
}

/* Responsividade */
@media (max-width: 768px) {
    .classe-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .classe-card-image {
        width: 100%;
        height: 120px;
    }
    
    .tabela-container {
        font-size: 0.8rem;
    }
    
    .classe-titulo {
        font-size: 2rem;
    }
}

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

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

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

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

/* Estilos específicos para cada tipo de tabela */
.tabela-combatente {
    background: #f0f4f8;
}

.tabela-combatente th {
    background: #2d3748;
}

.tabela-conjurador {
    background: #faf5ff;
}

.tabela-conjurador th {
    background: #6b46c1;
}

.tabela-ladino {
    background: #f0fff4;
}

.tabela-ladino th {
    background: #38a169;
}

.tabela-semi-conjurador {
    background: #fff5f5;
}

.tabela-semi-conjurador th {
    background: #c53030;
}

/* Melhorar a visualização dos slots de magia */
.tabela-niveis td {
    white-space: nowrap;
}

.tabela-niveis th span {
    font-weight: normal;
}