/* Browse page */

/* -- Hero (shared) -- */
.br-hero {
  background: #080f0e;
  position: relative;
  overflow: hidden;
}

.br-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 130%, oklch(0.28 0.09 168) 0%, #080f0e 60%);
  pointer-events: none;
}

.br-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* -- Discover hero (empty state) -- */
.br-hero--discover {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

.br-discover-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.br-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.75 0.13 168);
  margin: 0;
}

.br-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0.15rem 0 0;
  line-height: 1.1;
}

.br-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 0.5rem;
}

/* -- Search box (shared) -- */
.br-search-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.br-search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 1.1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.12);
  transition: box-shadow 0.15s;
}

.br-search-box:focus-within {
  box-shadow: 0 6px 32px rgba(0,0,0,0.28), 0 0 0 3px oklch(0.75 0.13 168 / 0.35);
}

.br-search-icon {
  color: #888;
  flex-shrink: 0;
  margin-right: 0.6rem;
}

.br-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: #111;
  min-width: 0;
  padding: 0.55rem 0;
}

.br-search-input::placeholder { color: #aaa; }

.br-search-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: #080f0e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.12s;
  white-space: nowrap;
}

.br-search-btn:hover { opacity: 0.82; }

/* -- Discover-state inline filters -- */
.br-discover-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.br-filter-sel {
  width: 162px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.br-filter-sel--light {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

/* -- Compact hero (search active) -- */
.br-hero--compact {
  padding: 1.25rem 0;
}

.br-compact-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.br-compact-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.br-clear-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.12s;
}

.br-clear-link:hover { color: rgba(255,255,255,0.9); }

.br-spinner {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* -- Results area -- */
.br-results-area {
  background: #fafafa;
  min-height: 60vh;
  padding: 2rem 0 5rem;
}

.br-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.br-skeleton-card {
  background: #f0f0f1;
  height: 160px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  animation: pulse 1.5s ease-in-out infinite;
}

/* -- Merchant ticker -- */
.br-ticker-section {
  background: #f8faf9;
  border-top: 1px solid #e8edec;
  overflow: hidden;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.br-ticker-loading {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  padding: 1rem 0;
}

.bticker-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  will-change: transform;
  padding: 0 0.6rem;
}

.bticker-ltr {
  animation: ticker-ltr 240s linear infinite;
}

.bticker-rtl {
  animation: ticker-rtl 240s linear infinite;
}

@keyframes ticker-ltr {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

@keyframes ticker-rtl {
  from { transform: translateX(-50%) }
  to   { transform: translateX(0) }
}

.bticker-track:hover { animation-play-state: paused; }

.bticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #1a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}

.bticker-chip:hover {
  border-color: oklch(0.52 0.12 168);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.bticker-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.bticker-name {
  font-weight: 600;
  color: #111;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bticker-domain {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

/* Search result card animation (reused from search.css) */
.merch-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease;
}
.merch-card.visible { opacity: 1; transform: translateY(0); }

/* Browse-specific avatar fallback */
.browse-avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@media (max-width: 640px) {
  .br-hero--discover { padding: 3rem 1rem 2.5rem; min-height: 44vh; }
  .br-title { font-size: 26px; }
}
