/* ===========================================================
   INOVA - CSS COMPARTILHADO (Local + Encontros + Meu Anúncio)
   =========================================================== */

:root {
  --bg: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: #1c1c1c;
  --accent: #ff5800;
  --accent-dim: #ff58001a;
  --text: #ffffff;
  --text-dim: #9a9a9a;
  --border: #2a2a2a;
  --green: #7ee787;
  --blue: #4da3ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: #000; }

body {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

h1, h2, h3, .display { font-family: 'Manrope', sans-serif; }

/* ---------- PHONE FRAME ---------- */
.phone {
  width: 100%;
  max-width: 412px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 84px;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(255,88,0,0.06);
}

@media (min-width: 480px) {
  body { padding: 28px 0; }
  .phone {
    min-height: 860px;
    border-radius: 44px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 8px #0a0a0a, 0 0 80px rgba(255,88,0,0.08);
  }
  .phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #000;
    border-radius: 14px;
    z-index: 100;
  }
  .topbar { padding-top: 46px; }
  .bottom-nav { position: absolute; }
}

/* ---------- TOPBAR / LOGO / SEARCH / WEATHER ---------- */
.topbar {
  padding: 20px 18px 14px;
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
}
.logo-inova { color: var(--text); }
.logo-local { color: var(--accent); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #111;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-dim); }

.weather-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-left: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.weather-temp { color: var(--text); font-weight: 700; }
.weather-divider { opacity: 0.5; }
.weather-icon { font-size: 14px; }

/* ---------- CITY CHIPS ---------- */
.section { margin-top: 28px; }
.section-tight { margin-top: 16px; }

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 4px;
  scroll-snap-type: x proximate;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.cities-rail { gap: 8px; }
.city-chip {
  flex: 0 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.city-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

/* ---------- SECTION HEADS ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 18px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.section-head .see-all { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- FEATURED BANNER ---------- */
.featured-banner {
  margin: 0 18px;
  background: linear-gradient(135deg, #2a1605 0%, #1c1c1c 60%);
  border: 1px solid #3a2410;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.featured-glow {
  position: absolute;
  width: 160px; height: 160px;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 50%;
  top: -60px; right: -60px;
  filter: blur(10px);
}
.featured-content { display: flex; align-items: center; gap: 12px; flex: 1; z-index: 1; }
.featured-emoji { font-size: 30px; flex-shrink: 0; }
.featured-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2px;
}
.featured-title { font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.featured-sub { font-size: 12px; color: var(--text-dim); }

/* ---------- CATEGORY GRID ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px;
}
.cat-card {
  height: 88px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .15s ease;
}
.cat-card:active { transform: scale(0.96); }
.cat-card::before { content: ''; position: absolute; inset: 0; background: var(--cat-color, var(--accent)); opacity: 0.16; }
.cat-card .emoji { position: absolute; top: 10px; right: 10px; font-size: 22px; opacity: 0.9; }
.cat-card span:not(.emoji) { font-weight: 700; font-size: 13px; position: relative; z-index: 1; }

/* ---------- PROVIDER / VENUE CARDS ---------- */
.provider-row { display: flex; flex-direction: column; gap: 10px; padding: 0 18px; }
.provider-card {
  display: flex; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  align-items: center;
}
.provider-photo {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.provider-info { flex: 1; min-width: 0; }
.provider-name {
  font-weight: 700; font-size: 14px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.verified-badge { width: 14px; height: 14px; flex-shrink: 0; color: var(--blue); }
.provider-cat { font-size: 12px; color: var(--text-dim); margin-bottom: 5px; }
.provider-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-dim); }
.stars { color: var(--accent); }
.chevron { color: var(--text-dim); flex-shrink: 0; }

.tag-destaque, .tag-gratuito {
  position: absolute; top: -1px; right: 12px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px;
  padding: 3px 8px; border-radius: 0 0 6px 6px; text-transform: uppercase;
}
.tag-destaque { background: var(--accent); color: #111; }
.tag-gratuito { background: var(--green); color: #0a1a0a; }

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: absolute; right: 16px; bottom: 156px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  z-index: 60; border: none; cursor: pointer;
}
.whatsapp-fab svg { width: 26px; height: 26px; }

/* ---------- SPONSOR BANNER ---------- */
.sponsor-banner {
  position: absolute; left: 12px; right: 12px; bottom: 76px;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 55;
  overflow: hidden;
}
.sponsor-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  opacity: 0; transition: opacity .5s ease;
}
.sponsor-slide.active { opacity: 1; }
.sponsor-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid #ff580033; border-radius: 5px; padding: 2px 6px; flex-shrink: 0;
}
.sponsor-emoji { font-size: 22px; flex-shrink: 0; }
.sponsor-text { min-width: 0; flex: 1; }
.sponsor-title { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-sub { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-dots { display: flex; gap: 4px; flex-shrink: 0; }
.sponsor-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.sponsor-dot.active { background: var(--accent); }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 68px;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-dim); background: none; border: none;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: color .15s ease;
}
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 10.5px; font-weight: 600; }

/* ---------- A11Y ---------- */
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

