/* ClaudioTem — site
   Paleta espelha a do app (src/theme/colors.ts): fundo roxo escuro
   "palco à noite" + dourado "holofote". */

:root {
  --bg: #17111d;
  --bg-center: #241a30;
  --surface: #241b2c;
  --surface2: #2d2236;
  --line: #3a2e44;
  --spotlight: #e8a33d;
  --btn: #38bdf8;
  --coral: #e85d75;
  --cream: #f5efe6;
  --muted: #a596b3;
  --success: #26a85a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* Faixa central mais clara (mesma largura da coluna de conteúdo,
     720px) com as laterais numa cor mais escura — dá um efeito de
     "coluna em destaque" em telas largas. No celular a faixa central
     cobre a tela toda, então só fica um fundo levemente mais claro. */
  background: linear-gradient(
    to right,
    var(--bg) 0,
    var(--bg) calc(50% - 360px),
    var(--bg-center) calc(50% - 360px),
    var(--bg-center) calc(50% + 360px),
    var(--bg) calc(50% + 360px),
    var(--bg) 100%
  );
  color: var(--cream);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Header / Hero ---------- */
header.hero {
  position: relative;
  padding: 28px 20px 24px;
  overflow: hidden;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pin-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--spotlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}
.pin-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 1.5px solid var(--spotlight);
  opacity: 0.35;
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.85); opacity: 0.5; }
  80% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pin-badge::after { animation: none; }
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
}
.brand-tag {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.hero h1 {
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
  margin: 6px 0 8px;
}
.hero p.sub {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0 0 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}
.search-box input::placeholder { color: var(--muted); }

/* ---------- Category chips ---------- */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--spotlight) transparent;
}
.chip-row::-webkit-scrollbar { height: 6px; }
.chip-row::-webkit-scrollbar-track { background: transparent; }
.chip-row::-webkit-scrollbar-thumb {
  background: var(--spotlight);
  border-radius: 100px;
}

.chip {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--btn); }
.chip.active {
  background: var(--btn);
  border-color: var(--btn);
  color: #0b1f2e;
}

/* ---------- List ---------- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 60px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 20px 0 10px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.card:hover { border-color: var(--spotlight); transform: translateY(-1px); }

.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}

.card-body { flex: 1; min-width: 0; }
.card-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.card-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--btn);
  flex-shrink: 0;
}
.card-bairro { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

.empty-state, .loading-state, .error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer CTA ---------- */
.footer-cta {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
  padding: 24px 20px 20px;
  text-align: center;
}
.btn-primary {
  display: inline-block;
  background: var(--btn);
  color: #0b1f2e;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
}

/* ---------- Layout centralizado no PC ---------- */
/* No celular o site ocupa a largura toda de propósito; em telas maiores
   (PC), limita e centraliza pra não ficar esparramado de ponta a ponta. */
@media (min-width: 700px) {
  header.hero,
  .chip-row,
  .footer-cta {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .perfil-hero {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
}

/* ---------- Perfil page ---------- */
.perfil-hero {
  position: relative;
  height: 220px;
  background: var(--surface2);
}
.perfil-hero img { width: 100%; height: 100%; object-fit: cover; }
.perfil-hero .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,17,29,0.15), var(--bg) 92%);
}
.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(23,17,29,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
}

.aviso-vencido {
  display: block;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 20px;
  text-align: center;
}

.perfil-body {
  max-width: 640px;
  margin: -50px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 1;
}
.perfil-body h1 { font-size: 24px; margin: 0 0 4px; }
.perfil-body .bairro { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.tag-row { display: flex; gap: 8px; margin-bottom: 20px; }

.gallery-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.gallery-row img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.info-block { margin-bottom: 22px; }
.info-block .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.info-block p { font-size: 14.5px; line-height: 1.6; color: var(--cream); margin: 0; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  background: var(--surface);
  border: 1px solid var(--btn);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--btn);
}

.cta-whatsapp {
  display: block;
  text-align: center;
  background: var(--success);
  color: #0b1f10;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  margin-top: 24px;
  font-size: 15px;
}
.link-denunciar {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 20px 0 8px;
}

/* ---------- Form (cadastro) ---------- */
.form-wrap { max-width: 560px; margin: 0 auto; padding: 24px 20px 60px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--cream);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--spotlight); border-color: transparent; }

.chip-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.photo-drop {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.photo-drop.has-image { border-style: solid; padding: 0; overflow: hidden; }
.photo-drop img { width: 100%; height: 160px; object-fit: cover; }
.photo-drop input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.btn-remover-foto {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: var(--coral);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  background: var(--success);
  color: #0b1f10;
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.submit-btn:disabled { opacity: 0.6; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}