/* ==========================================================================
 * AutoZelo CSS [2/3]: Setup Banner, Convite Marketing, Stories, Feed & Explorar
 * ========================================================================== */

/* Banner de Setup */
.setup-banner {
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.84rem;
}

.setup-banner h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.setup-banner p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.setup-banner-row {
  display: flex;
  gap: 8px;
}

.setup-banner-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 16px;
}


/* Convite de Marketing (Visitante não logado) */
.marketing-invite-card {
  margin: 12px 12px 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-md);
}

.marketing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.marketing-invite-card h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #ffffff;
}

.marketing-invite-card p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.marketing-future-note {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fde68a;
  margin-bottom: 12px;
}

.marketing-invite-card--compact {
  margin: 0 0 14px;
  text-align: left;
}

.marketing-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* Stories Strip */
.stories-strip {
  display: flex;
  gap: 12px;
  padding: 12px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.stories-strip::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 0;
}

.story-ring {
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0ea5e9, #f59e0b);
  display: grid;
  place-items: center;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg-card);
  background: var(--bg-elevated);
}

.story-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Chip Filters */
.chip-bar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.chip.is-active {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

/* Feed Cards (Estilo Instagram + OLX) */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 0 12px;
}

.feed-card {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 520px) {
  .feed-card {
    margin: 0 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
}

.feed-author-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  min-width: 0;
}

.avatar-img,
.avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10b981, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
}

.avatar-img.sm,
.avatar-fallback.sm {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.avatar-img.lg,
.avatar-fallback.lg {
  width: 68px;
  height: 68px;
  font-size: 1.4rem;
}

.feed-author-meta {
  min-width: 0;
}

.feed-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feed-author-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zelo Badge */
.zelo-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.zelo-pill--emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .zelo-pill--emerald {
  color: #34d399;
}

.zelo-pill--teal {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

[data-theme="dark"] .zelo-pill--teal {
  color: #38bdf8;
}

.zelo-pill--amber {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .zelo-pill--amber {
  color: #fbbf24;
}

.zelo-pill--slate {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Carrossel 4:5 Vertical */
.carousel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0f172a;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-badge--sale {
  background: rgba(234, 88, 12, 0.92);
  color: #ffffff;
}

.status-badge--showcase {
  background: rgba(15, 23, 42, 0.84);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.status-badge--sold {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
}

.photo-counter {
  background: rgba(15, 23, 42, 0.76);
  color: #f8fafc;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.carousel-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.88), rgba(9, 13, 22, 0));
  color: #ffffff;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.overlay-car-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.overlay-car-specs {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.overlay-price {
  font-size: 1.08rem;
  font-weight: 900;
  color: #fde68a;
  white-space: nowrap;
}

.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

.double-tap-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.double-tap-heart.is-burst {
  opacity: 1;
  transform: scale(1.1);
}

/* Barra de ações estilo Instagram */
.feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}

.feed-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 4px 2px;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.action-btn.is-liked {
  color: var(--accent-red);
}

.action-btn.is-saved {
  color: var(--accent-emerald);
}

.btn-dossier-inline {
  border: none;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

[data-theme="dark"] .btn-dossier-inline {
  color: #34d399;
}

.feed-body {
  padding: 2px 14px 14px;
}

.feed-care-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.feed-caption {
  font-size: 0.89rem;
  color: var(--text-secondary);
  margin: 0;
}

.feed-caption strong {
  color: var(--text-primary);
}

.feed-sub-meta {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Explorar (Estilo OLX) */
.explore-search-card {
  padding: 12px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 6px 4px 12px;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  outline: none;
}

.btn-filter-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.explore-filters-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.explore-results-meta {
  padding: 10px 14px 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px 12px 16px;
}

.explore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
}

.explore-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #0f172a;
}

.explore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-thumb-zelo {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 800;
}

.explore-thumb-logs {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
}

.explore-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.explore-price {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.explore-price--showcase {
  color: var(--accent-emerald-dark);
  font-size: 0.82rem;
}

[data-theme="dark"] .explore-price--showcase {
  color: #34d399;
}

.explore-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
}

