/* ===========================
   Bloco Afiliado — Desktop
   =========================== */

.afiliado-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.afiliado-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.afiliado-titulo {
  font-size: 1,5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

.afiliado-conteudo {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.afiliado-imagem {
  flex: 0 0 48%;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 0;
}

.afiliado-imagem img {
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 8px;
  display: block;
}

.afiliado-detalhes {
  flex: 1 1 50%;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.afiliado-descricao {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #444;
  text-align: center;
}

/* ===========================
   Botões — Desktop
   =========================== */

.afiliado-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.afiliado-links a {
  flex: 1 1 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1.0rem !important;
  font-weight: 800;
  text-decoration: none !important;
  color: #fff !important;
  text-align: center;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Cores das marcas */
.bam-btn--amazon { background: #e68a00; }
.bam-btn--ml     { background: #ffd700; color: #000 !important; }
.bam-btn--shopee { background: #d8432a; }
.bam-btn--magalu { background: #005bb5; }
.afiliado-links a.bam-btn--ml {
  background: #ffd700 !important;
  color: #292828 !important;
}

.bam-btn--amazon:hover { background: #FF9900 !important; }
.bam-btn--ml:hover     { background: #FFE600 !important; color: #000 !important; }
.bam-btn--shopee:hover { background: #EE4D2D !important; }
.bam-btn--magalu:hover { background: #0071CE !important; }

.afiliado-links a:hover {
  opacity: 0.96;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.afiliado-links a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===========================
   Botões com microcopy
   =========================== */

.bam-btn .label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.bam-btn .microcopy {
  font-size: 1.0rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 1px;
}

/* ===========================
   Mobile — layout vertical
   =========================== */

@media (max-width: 768px) {
  .afiliado-conteudo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .afiliado-titulo {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 16px;
  }

  .afiliado-imagem {
    order: 0;
    width: 100%;
    justify-content: center;
  }

  .afiliado-imagem img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .afiliado-detalhes {
    order: 1;
    width: 100%;
    align-items: center;
  }

  .afiliado-descricao {
    font-size: 1.0rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 16px;
  }

  .afiliado-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
  }

  .afiliado-links a {
    width: 100%;
    font-size: 1.4rem;
    padding: 10px 14px;
    border-radius: 6px;
  }

  .afiliado-box {
    padding: 16px;
    margin: 16px 0;
  }
}

/* ===========================
   Dashboard (se aplicável)
   =========================== */

.dashboard-cliques {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.dashboard-cliques .grafico {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-cliques .grafico canvas {
  max-width: 100%;
  height: auto;
}

.dashboard-cliques .dados-texto {
  flex: 0 0 70%;
  font-size: 14px;
  line-height: 1.5;
}
