/* Central do Aulão — botão flutuante do WhatsApp e timer flutuante do próximo aulão */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.40);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  white-space: nowrap;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37,211,102,0.50);
}
/* Escondido ao chegar no rodapé, para não sobrepor o seletor de idioma */
.whatsapp-float.is-hidden {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  pointer-events: none;
}
.whatsapp-float svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}
/* Em telefones pequenos vira botão circular compacto (só o ícone) */
@media (max-width: 440px) {
  .whatsapp-float { padding: 0; width: 54px; height: 54px; justify-content: center; gap: 0; bottom: 16px; right: 16px; }
  .whatsapp-float .wa-float-label { display: none; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ═══════════════════════════════════
   TIMER FLUTUANTE DO PRÓXIMO AULÃO
   Aparece ao rolar a página (banner do topo sai de vista); compacto e
   centralizado; expande no hover e oferece "Garanta sua vaga".
═══════════════════════════════════ */
.cd-float {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(24px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cd-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cd-float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  padding: 9px 15px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,122,14,0.45);
  cursor: pointer;
  outline: none;
  transition: gap 0.3s ease, padding 0.3s ease, box-shadow 0.2s ease;
}
.cd-float-card:hover,
.cd-float-card:focus-visible {
  gap: 12px;
  padding: 9px 12px 9px 18px;
  box-shadow: 0 14px 38px rgba(255,122,14,0.55);
}
.cd-float-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.cd-float-timeblock { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cd-float-caption {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px;
  color: rgba(255,255,255,0.9); white-space: nowrap;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.cd-float-time {
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cd-float-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: #fff; color: var(--orange-dark);
  font-size: 13px; font-weight: 800; border-radius: 100px;
  max-width: 0; opacity: 0; padding: 0; margin: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
.cd-float-card:hover .cd-float-caption,
.cd-float-card:focus-visible .cd-float-caption {
  max-height: 16px; opacity: 1; margin-bottom: 2px;
}
.cd-float-card:hover .cd-float-cta,
.cd-float-card:focus-visible .cd-float-cta {
  max-width: 220px; opacity: 1; padding: 8px 16px; margin-left: 4px;
}
/* Estado "Ao Vivo" — verde */
.cd-float.is-live .cd-float-card {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  box-shadow: 0 10px 30px rgba(34,197,94,0.45);
}
.cd-float.is-live .cd-float-cta { color: #15803D; }
/* Mobile: vai para o canto inferior ESQUERDO, na mesma altura do botão do WhatsApp
   (que fica no canto direito), para os dois caberem lado a lado. */
@media (max-width: 640px) {
  .cd-float { left: 24px; right: auto; bottom: 24px; transform: translateY(24px); }
  .cd-float.is-visible { transform: translateY(0); }
  /* No mobile o "Garanta sua vaga" fica oculto — tocar na pílula já abre o cadastro */
  .cd-float-cta { display: none; }
}
@media (max-width: 440px) {
  .cd-float { left: 16px; bottom: 16px; }
}
/* Telas sem hover (toque): fica compacto (relógio), sem expandir; o toque abre o cadastro */
@media (hover: none) {
  .cd-float-caption { max-height: 16px; opacity: 1; margin-bottom: 2px; }
  .cd-float-cta { display: none; }
  .cd-float-card { padding: 9px 15px; }
}
