/* =================== FOCUS PADRÃO =================== */
button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}
.botao-expandir:focus,
.btn--pular:focus,
.btn-pular-icone:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* =================== BOTÃO BASE =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-sm) 22px;
  font-size: var(--font-body);
  font-weight: bold;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  user-select: none;
  gap: var(--gap-sm);
  transition: transform 0.2s ease, background 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 320px;
}

/* =================== VARIANTES DE ESTILO =================== */
.btn--claro {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: var(--padding-md);
}
.btn--claro:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #fafafa, #e5e5e5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.btn--escuro {
  background: linear-gradient(135deg, #2e2e2e, #1a1a1a);
  color: white;
  border: 1px solid #444;
}
.btn--escuro:hover {
  background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
  transform: translateY(-1px);
}
.btn--secundario,
.btn.cancelar {
  background: transparent;
  color: #888;
  border: 1px solid #333;
  letter-spacing: 0.8px;
}
.btn--secundario:hover,
.btn.cancelar:hover {
  color: #fff;
  border-color: #555;
  background: rgba(255, 255, 255, 0.04);
}

/* =================== BOTÃO "NOVO" =================== */
.btn.novo {
  background: linear-gradient(135deg, #222, #111);
  color: #ffffff;
  border: 1px solid #333;
  letter-spacing: 0.8px;
}
.btn.novo:hover {
  background: linear-gradient(135deg, #333, #1a1a1a);
  transform: translateY(-1px);
}

/* =================== BOTÃO EXPANDIR =================== */
.botao-expandir {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  color: white;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 6px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}
.botao-expandir:active {
  background: var(--glass-hover);
  transform: scale(0.96);
}

/* =================== BOTÃO PULAR (SINGLE) =================== */
#btnPularFase {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
}

/* DESKTOP = visível fixo com texto */
@media (min-width: 769px) {
  #btnPularFase {
    padding: 12px 24px;
    border-radius: 50px;
    background: #fff;
    color: #111;
    font-weight: bold;
    bottom: 48px; /* Subiu */
  }

  #btnPularFase .texto {
    display: inline;
    opacity: 1;
  }

  #btnPularFase .icone {
    display: none;
  }
}

@media (max-width: 768px) {
  #btnPularFase {
    display: flex;
    flex-direction: row; /* ícone ao lado do texto */
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
    overflow: visible; /* IMPORTANTE para evitar corte da sombra */
    margin: 0 12px 12px 0; /* afasta das bordas */
    bottom: 32px;
    right: 16px;

    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
  }

#btnPularFase .icone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; /* remove deslocamento lateral */
  width: 20px;
  height: 20px;
}


  #btnPularFase .icone svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  #btnPularFase .texto {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
  }

}


/* =================== RESPONSIVO BOTÕES GENÉRICOS =================== */
@media (max-width: 768px) {
  .btn {
    padding: var(--padding-sm) 18px;
    font-size: var(--font-small);
    max-width: 90vw;
  }
}
