/* =========================================================
   BUSCA SÓ — Identidade Visual
   Paleta vibrante inspirada em Angola: pôr-do-sol, terra e mar
   ========================================================= */

:root {
  --at-laranja: #FF6B00;      /* laranja vibrante — energia, sol de Angola */
  --at-laranja-escuro: #E85D00;
  --at-dourado: #FFB800;      /* dourado — riqueza, praias */
  --at-vermelho: #D62828;     /* vermelho — bandeira, força */
  --at-verde: #0C7C59;        /* verde tropical — natureza, Kalandula/Kissama */
  --at-azul: #023E7D;         /* azul profundo — oceano Atlântico */
  --at-preto: #14171F;
  --at-cinza-claro: #F7F7FA;
  --at-branco: #FFFFFF;

  --at-gradient-principal: linear-gradient(135deg, var(--at-laranja) 0%, var(--at-vermelho) 55%, var(--at-azul) 100%);
  --at-gradient-suave: linear-gradient(135deg, #FFF4E8 0%, #FFE9D6 100%);

  --at-raio: 14px;
  --at-sombra: 0 8px 24px rgba(20, 23, 31, 0.08);
  --at-sombra-hover: 0 14px 32px rgba(214, 40, 40, 0.18);
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--at-preto);
  background-color: var(--at-cinza-claro);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .fw-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

/* ---- Navbar ---- */
.at-navbar {
  background: var(--at-branco);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
}

.at-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--at-gradient-principal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.at-navbar .nav-link {
  font-weight: 500;
  color: var(--at-preto);
  transition: color .2s ease;
  margin: 0 0.35rem;
}

.at-navbar .nav-link:hover,
.at-navbar .nav-link.active {
  color: var(--at-laranja);
}

/* ---- Botões ---- */
.btn-at-primario {
  background: var(--at-gradient-principal);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-at-primario:hover {
  transform: translateY(-2px);
  box-shadow: var(--at-sombra-hover);
  color: #fff;
}

.btn-at-outline {
  border: 2px solid var(--at-laranja);
  color: var(--at-laranja);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  transition: all .2s ease;
}
.btn-at-outline:hover {
  background: var(--at-laranja);
  color: #fff;
}

/* ---- Hero ---- */
.at-hero {
  background: var(--at-gradient-principal);
  color: #fff;
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}
.at-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 55%);
}
.at-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.at-hero-busca {
  background: #fff;
  border-radius: 60px;
  padding: 0.5rem;
  box-shadow: var(--at-sombra);
}
.at-hero-busca .form-control,
.at-hero-busca .form-select {
  border: none;
  background: transparent;
}
.at-hero-busca .form-control:focus,
.at-hero-busca .form-select:focus {
  box-shadow: none;
}

/* ---- Cards ---- */
.at-card {
  background: #fff;
  border-radius: var(--at-raio);
  overflow: hidden;
  box-shadow: var(--at-sombra);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
}
.at-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--at-sombra-hover);
}
.at-card .at-card-img {
  height: 190px;
  object-fit: cover;
  width: 100%;
}
.at-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--at-dourado);
  color: var(--at-preto);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}
.at-card-preco {
  color: var(--at-vermelho);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---- Categorias (ícones) ---- */
.at-categoria {
  background: #fff;
  border-radius: var(--at-raio);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--at-sombra);
  transition: transform .2s ease, background .2s ease;
  color: var(--at-preto);
  display: block;
}
.at-categoria:hover {
  transform: translateY(-4px);
  background: var(--at-gradient-suave);
  color: var(--at-laranja-escuro);
}
.at-categoria i {
  font-size: 2rem;
  color: var(--at-laranja);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- Secções ---- */
.at-section { padding: 4rem 0; }
.at-section-titulo { font-weight: 800; margin-bottom: 0.25rem; }
.at-section-sub { color: #6c757d; margin-bottom: 2.5rem; }

/* ---- Rodapé ---- */
.at-footer {
  background: var(--at-preto);
  color: #cfd2dc;
  padding: 3.5rem 0 1.5rem;
}
.at-footer h5 { color: #fff; font-weight: 700; }
.at-footer a { color: #cfd2dc; }
.at-footer a:hover { color: var(--at-laranja); }

/* ---- Painéis (dashboard) ---- */
.at-sidebar {
  background: var(--at-preto);
  min-height: 100vh;
  color: #dcdfe6;
}
.at-sidebar .nav-link {
  color: #b7bccb;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.2rem;
  transition: all .2s ease;
}
.at-sidebar .nav-link:hover,
.at-sidebar .nav-link.active {
  background: var(--at-gradient-principal);
  color: #fff;
}
.at-sidebar .nav-link i { width: 22px; }

.at-stat-card {
  border-radius: var(--at-raio);
  padding: 1.5rem;
  color: #fff;
  box-shadow: var(--at-sombra);
}
.at-stat-card.laranja { background: linear-gradient(135deg,#FF9A3D,#FF6B00); }
.at-stat-card.verde { background: linear-gradient(135deg,#1AA179,#0C7C59); }
.at-stat-card.azul { background: linear-gradient(135deg,#0C63C9,#023E7D); }
.at-stat-card.vermelho { background: linear-gradient(135deg,#E85454,#D62828); }
.at-stat-card .valor { font-size: 1.9rem; font-weight: 800; }

/* ---- Badges de status ---- */
.badge-status-ativo { background: #0C7C59; }
.badge-status-pendente { background: #FFB800; color:#14171F; }
.badge-status-bloqueado, .badge-status-rejeitada, .badge-status-expirada { background: #D62828; }
.badge-status-inativo { background: #6c757d; }

/* ---- Responsivo / suavidade ---- */
* { scroll-behavior: smooth; }
.at-fade-in { animation: atFadeIn .5s ease both; }
@keyframes atFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .at-hero { padding: 3rem 0 5rem; border-radius: 0 0 24px 24px; }
  .at-section { padding: 2.5rem 0; }
}
