/* ─────────────────────────────────────────────────────────
   MyPlaceMarket — Shared styles
   Used by: index, marketplace, perfil, vender, acessar
────────────────────────────────────────────────────────── */

:root {
  --bg: #060812;
  --bg-2: #0d1020;
  --bg-3: #131830;
  --bg-card: #0f1424;
  --bg-elev: #161c34;
  --line: #1d233e;
  --line-soft: #161b30;
  --text: #ecf0fb;
  --text-dim: #99a3bd;
  --text-faded: #5a6585;

  --blue: #5b8cff;
  --blue-dark: #3d6fd9;
  --violet: #b366ff;
  --violet-dark: #8a3fd9;

  --grad: linear-gradient(135deg, #5b8cff 0%, #b366ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,140,255,0.15) 0%, rgba(179,102,255,0.15) 100%);
  --grad-border: linear-gradient(135deg, rgba(91,140,255,0.4) 0%, rgba(179,102,255,0.4) 100%);
  --blue-glow: rgba(91, 140, 255, 0.18);
  --violet-glow: rgba(179, 102, 255, 0.18);

  --mint: #00d9a3;
  --rose: #ff5777;
  --gold: #ffb84d;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(91,140,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(179,102,255,0.08) 0%, transparent 35%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ─── NAV (shared across all pages) ─── */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2c3a8c 0%, #4a2c8c 100%);
  border: 1px solid rgba(91, 140, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd6ff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}

.nav-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.nav-search input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.15s;
}

.nav-search input::placeholder { color: var(--text-faded); }

.nav-search input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.nav-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faded);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-outline {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: var(--bg-3);
}

.btn-ghost {
  color: var(--text-dim);
}

.btn-ghost:hover { color: var(--text); background: var(--bg-2); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(91, 140, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.5);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 14px;
  border-radius: 12px;
}

/* gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* pill badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}

.pill .pdot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}

.pill-violet {
  background: rgba(179, 102, 255, 0.08);
  border-color: rgba(179, 102, 255, 0.25);
  color: var(--violet);
}

.pill-violet .pdot { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

.pill-mint {
  background: rgba(0, 217, 163, 0.1);
  border-color: rgba(0, 217, 163, 0.3);
  color: var(--mint);
}

.pill-mint .pdot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* trust check */
.trust-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 217, 163, 0.15);
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── FOOTER (shared) ─── */
footer.bottom {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 48px 32px 24px;
}

.foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .logo { font-size: 20px; margin-bottom: 14px; }

.foot-tagline {
  color: var(--text-dim);
  max-width: 340px;
  line-height: 1.5;
  font-size: 13px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faded);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: var(--text);
  padding: 4px 0;
  font-size: 13px;
  transition: color 0.15s;
}

.foot-col a:hover { color: var(--blue); }

.foot-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faded);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── responsive shared ─── */
@media (max-width: 900px) {
  nav.topbar { padding: 12px 18px; gap: 12px; }
  .nav-search { display: none; }
  .nav-actions { gap: 4px; }
  .btn { padding: 8px 12px; font-size: 12px; }
  footer.bottom { padding: 40px 20px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
