/* Sistema global de interação dos botões SportsForYou. */
:root {
  --sfy-button-lift: -2px;
  --sfy-button-shadow: 0 12px 26px rgba(8, 38, 66, .14);
  --sfy-button-shadow-strong: 0 16px 32px rgba(8, 38, 66, .2);
}

.btn {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:not(:disabled):not(.disabled):hover {
  transform: translateY(var(--sfy-button-lift));
  box-shadow: var(--sfy-button-shadow);
}

.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active {
  transform: translateY(0) scale(.985);
  box-shadow: 0 5px 12px rgba(8, 38, 66, .12);
}

.btn-brand:not(:disabled):hover {
  box-shadow: 0 16px 32px rgba(22, 181, 122, .28);
}

.btn-soft:not(:disabled):hover,
.btn-outline-brand:not(:disabled):hover,
.btn-editorial:not(:disabled):hover {
  box-shadow: var(--sfy-button-shadow);
}

.btn .sfy-button-badge {
  min-width: 1.55rem;
  padding: .28rem .46rem;
  border: 1px solid rgba(8, 38, 66, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #082642;
  font-weight: 800;
  line-height: 1;
}

.btn-brand .sfy-button-badge {
  background: rgba(255, 255, 255, .72);
}

/* CTAs em painéis: evita que a grade amplie verticalmente os botões. */
.split-panel-strong > .cta-stack {
  align-self: center;
  align-items: center;
  align-content: center;
}

.split-panel-strong > .cta-stack .btn {
  align-self: center;
  height: auto;
  min-height: 44px;
}

/* CTA de acompanhamento dos eventos: ações logo abaixo do texto. */
.event-follow-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.event-follow-panel > .cta-stack {
  align-self: start;
  justify-self: start;
  justify-content: flex-start;
  margin-top: .1rem;
}

/* Cabeçalho de conteúdo relacionado: uma linha quando há espaço real. */
section[aria-labelledby="event-related-title"] .section-header {
  max-width: none;
}

section[aria-labelledby="event-related-title"] .section-header > p {
  white-space: nowrap;
}

/* CTAs duplos da home: aproveitam a largura sem comprometer o toque. */
[data-growth-next-step="onda03"] .split-panel-strong,
[data-growth-next-step="onda04-distribuicao"] .split-panel-strong {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

[data-growth-next-step="onda05-calendarios-mensais"] .split-panel-strong,
[data-growth-next-step="onda06-modalidade-mes"] .split-panel-strong {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

[data-growth-next-step="onda05-calendarios-mensais"] .split-panel-strong > .d-flex,
[data-growth-next-step="onda06-modalidade-mes"] .split-panel-strong > .d-flex {
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

[data-growth-next-step="onda03"] .hero-actions,
[data-growth-next-step="onda04-distribuicao"] .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  align-items: center;
  align-content: center;
  justify-self: start;
  width: min(100%, 580px);
}

[data-growth-next-step="onda03"] .hero-actions .btn,
[data-growth-next-step="onda04-distribuicao"] .hero-actions .btn {
  width: 100%;
  height: auto;
  min-height: 48px;
  min-width: 0;
  padding: .78rem 1rem;
  white-space: normal;
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: .62;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: background-color .01ms, border-color .01ms, color .01ms;
  }

  .btn:not(:disabled):not(.disabled):hover,
  .btn:not(:disabled):not(.disabled):active {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  [data-growth-next-step="onda03"] .hero-actions,
  [data-growth-next-step="onda04-distribuicao"] .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  section[aria-labelledby="event-related-title"] .section-header > p {
    white-space: normal;
  }
}
