/* ===== SmartBet Layout ===== */

/* Grid de cards */
.smartbet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0;
  justify-content: center;
}

/* Card */
.smartbet-card {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  background: #0f1114;
  border: 1px solid #81C241;
  color: #cfcfcf;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  height: 100%;
}

/* Liga no topo */
.smartbet-league {
  width: 100%;
  background: #81C241; /* Alterado do azul para verde */
  color: #000000;
  text-align: center;
  padding: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
   border-radius: 8px;
  
}

/* Linha central dos times */
.smartbet-teams {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  text-align: center;
  margin-top: 5px;

  background-color: #8DC63F;
  border-radius: 10px;
  overflow: visible;
  z-index: 1;
}




/* Coluna de cada time */
.smartbet-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

/* Nome do time */
.smartbet-team .team-name {
  color: #1b1b1b; 
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.2em;
  max-width: 100%;
  margin-bottom: 5px;
  min-height: 2.4em;
}

/* Escudo */
.smartbet-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
}

.smartbet-datetime {
  background-color: #8DC63F; /* verde claro */
  border-radius: 4px;
  padding: 6px 6px;
  margin: 4px auto 20px auto;
  text-align: center;
  width: 100%;
  font-size: 18px;
  font-weight: 900;
  color: #1a1a1a; /* texto escuro para contraste */
}


.smartbet-datetime .datetime-text {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a; /* Ou #000 se preferir mais escuro */
}


/* Formatação para data/hora */
.smartbet-datetime .date {
  font-weight: 900;
  font-size: 18px;
}

/* Placeholder quando não há escudo */
.smartbet-logo.placeholder {
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  border-radius: 50%;
  margin-bottom: 6px;
}

.smartbet-teams::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;

  /* Triângulo para o canto dobrado */
  border-top: 40px solid #6E9C30; /* cor mais escura para a dobra */
  border-right: 40px solid transparent;

  z-index: 2;
}


/* vs central */
.smartbet-vs {
  width: 50px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Odds */
.smartbet-odds {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  justify-items: center;
  padding: 10px;
  background: #2B3422;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: auto;
}

/* Cada odd */
.smartbet-odds .odd {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFF; /* Verde escuro para contraste */
  text-align: center;
}

/* Empate centralizado */
.smartbet-odds .odd:nth-child(2) {
  justify-self: center;
}

/* Mensagem vazia */
.smartbet-empty {
  padding: 20px;
  text-align: center;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  color: #856404;
  font-size: 14px;
}

/* Responsivo para mobile */
@media (max-width: 420px) {
  .smartbet-logo,
  .smartbet-logo.placeholder {
    width: 36px;
    height: 36px;
  }

  .smartbet-team .team-name {
    font-size: 12px;
  }

  .smartbet-odds {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    padding: 6px;
  }

  .smartbet-odds .odd {
    font-size: 14px;
  }
}
