

/* Grid das classes */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* Caixa de cada classe */
.class-box {
  background: linear-gradient(145deg, #6e0d0d, #1a0000);
  border: 1px solid #400000;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  color: #ff2a2a;
  box-shadow: 0 0 10px #1a0000;
  transition: 0.3s;
}

.class-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #b30000;
}

/* Ícone da classe */
.class-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #1a0000, #0d0d0d);
  border-radius: 15px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  color: #ff4d4d;
  border: 1px solid #660000;
  box-shadow: 0 0 8px #330000;
}

/* Remove qualquer align-items do section */
#classes {
  width: 100%;
}

.classes-title {
  width: 100%;
  text-align: center;
  color: #a51c1c;
  font-size: 2.3rem;
  margin-bottom: 25px;
  text-shadow: 0 0 8px #660000;
  display: block;
}

.classes-wrapper {
  width: 100%;
  max-width: 1400px; /* era 1100 — agora tá monstrão */
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(15, 0, 0, 0.9);
  border: 1px solid #300000;
  border-radius: 20px;
  box-shadow: 0 0 25px #200000;
}

/* Infos dos personagens */
.class-info {
  margin-top: 30px;
  padding: 25px;
  border-radius: 15px;
  background: rgba(10, 0, 0, 0.7);
  border: 1px solid #400000;
  box-shadow: 0 0 15px #1a0000;
  color: #ffcccc;
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.class-info.active {
  opacity: 1;
  transform: translateY(0);
}

.class-box {
  cursor: pointer;
}

.class-box.active {
  box-shadow: 0 0 20px #ff0000;
  transform: scale(1.03);
}

/* Infos dos personagens/imagem da classe */
/* --- Top row: texto à esquerda, imagem grande à direita --- */
.top-row {
  position: relative;
  display: block; /* muda pra block porque vamos controlar o layout internamente */
  padding-right: 380px; /* espaço reservado à direita para a imagem (ajusta se trocar a largura da imagem) */
}

/* esquerda com texto ocupa o resto */
.info-left {
  flex: 1;
  min-width: 0; /* evita overflow de texto em flex */
  color: #ffdddd;
}

/* direita fixa (imagem) - ajusta a largura conforme tu quiser */
.info-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px; /* largura da imagem; ajustar se quiser maior/menor */
  display: flex;
  justify-content: flex-end;
  pointer-events: none; /* evita interferir se quiser clicar nas miniaturas embaixo */
}


/* imagem grande (no canto direito) */
.info-img.main {
  width: 360px; /* ajusta se quiser maior/menor */
  height: auto;
  border-radius: 12px;
  border: 1px solid #400000;
  box-shadow: 0 0 15px #200000;
  object-fit: cover;
  pointer-events: auto;
  position: relative;
  z-index: 5;
  transition: transform 0.45s ease-in-out, box-shadow 0.45s ease-in-out;
}
.info-img.main:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px #300000 !important;
}

/* --- Full-width sections (ficam abaixo do top-row, ocupando 100% do wrapper) --- */
.full-width {
  display: block;
  width: 100%;
  clear: both;
  box-sizing: border-box;
  margin-top: 24px;
}

/* layout das galerias: permitem wrap e tentam 3 por linha */
.habilidades-box,
.game-img-box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-img,
.game-img {
  flex: 0 1 calc(33.333% - 10px);
  max-width: 400px;   /* 🔥 TAMANHO MÁXIMO DA IMAGEM */
  width: 100%;        /* se adaptar ao espaço */
  height: auto;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #400000;
  box-shadow: 0 0 15px #200000;
  transition: transform .35s ease-in-out, box-shadow .35s ease-in-out;
  object-fit: cover;
}

.skill-img:hover,
.game-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #300000;
}

.full-width {
  width: 100% !important;
  flex-basis: 100% !important;
  display: block !important;
  clear: both !important;
}

.full-width {
  width: 100%;
  flex-basis: 100%;
  display: block;
}



/* responsividade: em telas menores o top-row vira coluna e as thumbnails ocupam 2 ou 1 por linha */
@media (max-width: 1000px) {
  .info-right { flex: 0 0 300px; }
  .info-img.main { width: 300px; }
  .skill-img,
  .game-img { flex: 0 1 calc(50% - 10px); }
}

@media (max-width: 640px) {
  .top-row { flex-direction: column; }
  .info-right { width: 100%; justify-content: center; }
  .info-img.main { width: 100%; max-width: 420px; }
  .skill-img,
  .game-img { flex: 0 1 calc(100% - 10px); }
}



