/* ============================================================
   TOPBOARD — SEARCH RESULTS PAGE (CINEMATIC ARENA STYLESHEET)
   Futuristic, dark monument arena, gold accents, glassmorphic cards
   ============================================================ */

/* ─── Search Universe & Layout ────────────────────────────── */
.search-universe {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep, #04060d);
  color: var(--text-primary, #f0f4ff);
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* ─── Monument Arena Hero Backdrop (Identical to How It Works) ─── */
.search-monument-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #04060d;
}

.search-backdrop-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  height: 100%;
  background-image: url('/static/images/howitworks.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.52;
  filter: contrast(1.12) brightness(0.95) saturate(1.05);
  will-change: transform;
}

.search-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      180deg,
      rgba(4, 6, 13, 0.35) 0%,
      rgba(4, 6, 13, 0.55) 30%,
      rgba(4, 6, 13, 0.82) 65%,
      rgba(4, 6, 13, 0.98) 100%
    ),
    radial-gradient(
      ellipse 85% 65% at 50% 15%,
      transparent 0%,
      rgba(4, 6, 13, 0.8) 100%
    );
}

.search-backdrop-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 600px;
  background: radial-gradient(
    ellipse at top,
    rgba(245, 175, 45, 0.15) 0%,
    rgba(245, 175, 45, 0.04) 45%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
}

/* ─── Search Main Container ───────────────────────────────── */
.search-container {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* ─── Search Hero Header ──────────────────────────────────── */
.search-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.search-hero-left {
  flex: 1;
}

.search-hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f5af2d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-hero-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 10px 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

.search-hero-query {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #f5af2d;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(245, 175, 45, 0.4);
}

.search-hero-meta {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.search-hero-count {
  color: #f1f5f9;
  font-weight: 600;
}

.search-gold-accent {
  color: #f5af2d;
  font-weight: 600;
}

/* ─── Right Quote Card ────────────────────────────────────── */
.search-hero-right {
  flex-shrink: 0;
  text-align: right;
  max-width: 260px;
  padding-top: 6px;
}

.search-quote-text {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: #e2e8f0;
  opacity: 0.9;
  margin-bottom: 6px;
}

.search-quote-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #f5af2d;
  opacity: 0.85;
}

/* ─── Controls Bar: Filters & Sort ────────────────────────── */
.search-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.search-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-filter-pill {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  outline: none;
}

.search-filter-pill:hover {
  color: #ffffff;
  border-color: rgba(245, 175, 45, 0.4);
  background: rgba(245, 175, 45, 0.08);
}

.search-filter-pill.active {
  color: #ffffff;
  border-color: rgba(245, 175, 45, 0.85);
  background: rgba(245, 175, 45, 0.14);
  box-shadow: 0 0 16px rgba(245, 175, 45, 0.28);
}

.search-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #8892b0;
}

.search-sort-select {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 32px 7px 16px;
  font-size: 12.5px;
  color: #f1f5f9;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5af2d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.search-sort-select:hover, .search-sort-select:focus {
  border-color: rgba(245, 175, 45, 0.6);
  box-shadow: 0 0 12px rgba(245, 175, 45, 0.2);
}

/* ─── Search Result Cards List ────────────────────────────── */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}

@keyframes searchCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-card {
  position: relative;
  background: rgba(8, 14, 28, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  animation: searchCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

.search-card:hover {
  border-color: rgba(245, 175, 45, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 175, 45, 0.12);
}

/* ─── Card Left Section ───────────────────────────────────── */
.search-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.search-card-rank-col {
  width: 52px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.search-rank-crown {
  font-size: 15px;
  line-height: 1;
  color: #f5af2d;
  filter: drop-shadow(0 0 6px #f5af2d);
  margin-bottom: 2px;
}

.search-rank-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f5af2d;
  line-height: 1;
}

.search-rank-num.rank-1 {
  font-size: 21px;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.search-rank-num.rank-unclaimed {
  color: #8892b0;
  font-weight: 700;
}

/* ─── Logo Box ────────────────────────────────────────────── */
.search-card-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.search-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-card-logo-fallback {
  font-size: 24px;
}

/* ─── Card Info ───────────────────────────────────────────── */
.search-card-info {
  flex: 1;
  min-width: 0;
}

.search-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.search-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
}

.search-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f5af2d;
  color: #04060d;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 0 6px rgba(245, 175, 45, 0.5);
}

.search-card-link {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
}

.search-card-link:hover {
  color: #f5af2d;
}

.search-card-desc {
  font-size: 12.5px;
  color: #8892b0;
  line-height: 1.45;
  margin: 3px 0 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.search-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
}

/* ─── Card Right Section ──────────────────────────────────── */
.search-card-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.search-card-bid-col {
  text-align: right;
  min-width: 90px;
}

.search-card-bid-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.search-card-bid-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8892b0;
}

.search-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search-view {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.btn-search-view:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-search-challenge {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #04060d;
  background: linear-gradient(135deg, #f5af2d 0%, #e29410 100%);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 16px rgba(245, 175, 45, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-search-challenge:hover {
  transform: scale(1.03);
  box-shadow: 0 0 22px rgba(245, 175, 45, 0.6);
}

.search-unclaimed-status {
  font-size: 12.5px;
  color: #8892b0;
}

.btn-search-claim {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #04060d;
  background: linear-gradient(135deg, #f5af2d 0%, #e29410 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 16px rgba(245, 175, 45, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-search-claim:hover {
  transform: scale(1.03);
  box-shadow: 0 0 22px rgba(245, 175, 45, 0.55);
}

/* ─── Bottom Banner Card ──────────────────────────────────── */
.search-bottom-banner {
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(245, 175, 45, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 175, 45, 0.1);
  margin-top: 10px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.search-banner-monument {
  width: 140px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: radial-gradient(circle at center, rgba(245, 175, 45, 0.2) 0%, transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 175, 45, 0.25);
  box-shadow: inset 0 0 20px rgba(245, 175, 45, 0.15);
}

.search-banner-monument-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(1.05);
}

.search-banner-center {
  flex: 1;
}

.search-banner-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5af2d;
  margin-bottom: 8px;
}

.search-banner-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.search-banner-sub {
  font-size: 13px;
  color: #8892b0;
  margin: 0 0 16px 0;
}

.btn-banner-claim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #04060d;
  background: linear-gradient(135deg, #f5af2d 0%, #e29410 100%);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(245, 175, 45, 0.45);
  transition: all 0.2s;
}

.btn-banner-claim:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(245, 175, 45, 0.65);
}

.search-banner-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 32px;
}

.search-banner-crown {
  font-size: 18px;
  color: #f5af2d;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 6px #f5af2d);
}

.search-banner-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.search-banner-word-gold {
  color: #f5af2d;
}

/* ─── Challenge Modal on Search Page ──────────────────────── */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.search-modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid rgba(245, 175, 45, 0.4);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 175, 45, 0.2);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.search-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ─── Responsive Adjustments ──────────────────────────────── */
@media (max-width: 900px) {
  .search-hero-header {
    flex-direction: column;
    gap: 16px;
  }
  .search-hero-right {
    text-align: left;
    max-width: 100%;
    padding-top: 0;
  }
  .search-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .search-banner-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .search-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .search-card-left {
    width: 100%;
  }
  .search-card-right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
  }
  .search-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
}
