/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIÁVEIS DE CORES */
:root {
  --fundo: #0d1117;
  --superficie: #161b22;
  --laranja: #f87c16;
  --texto: #e6edf3;
  --texto-suave: #8b949e;
}

/* BODY */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--fundo);
  color: var(--texto);
  padding-bottom: 80px;
}

/* TOPO */
.topo {
  position: sticky;
  top: 0;
  background-color: var(--fundo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.topo-subtitulo {
  color: var(--texto-suave);
  font-size: 14px;
}

.topo-titulo {
  font-size: 22px;
  font-weight: 700;
}

/* CONTEÚDO */
.conteudo {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CARD */
.card-empresa {
  background-color: var(--superficie);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-imagem {
  display: flex;
  justify-content: center;
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--texto-suave);
}

.card-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-titulo {
  font-size: 16px;
  font-weight: 700;
}

.card-subtitulo {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 2px;
}

.card-avaliacao {
  font-size: 13px;
  margin-top: 6px;
}

/* BOTÃO */
.botao-primario {
  background-color: var(--laranja);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Badge de Status da Empresa */
.badge-status-empresa {
  position: absolute;
  top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.813rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.badge-status-empresa.aberto {
  background: rgba(16, 185, 129, 0.9); /* --sucesso com alpha */
  color: #ffffff;
}

.badge-status-empresa.fechado {
  background: rgba(139, 148, 158, 0.9); /* --texto-fraco com alpha */
  color: #ffffff;
}

.status-icone {
  font-size: 0.625rem;
  line-height: 1;
}

.status-texto {
  line-height: 1;
}

/* Desabilita botão quando fechado */
.botao-primario:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--texto-fraco);
}

.botao-primario:disabled:hover {
  transform: none;
  box-shadow: none;
}

.botaoAgendar.bloqueado {
  background: #838383;
}
.botaoAgendar.bloqueado:hover {
  background: #838383 !important;
  cursor: not-allowed;
}

/* Responsivo - Mobile */
@media (max-width: 640px) {
  .badge-status-empresa {
    top: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .status-icone {
    font-size: 0.563rem;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.badge-status-empresa.aberto .status-icone {
  animation: pulse 2s ease-in-out infinite;
}
