/*
 * ============================================================
 * SPLURJJ SEARCH MODAL  —  css/search-modal.css  v3.0
 * ============================================================
 * Unified design language for SplurjjSearchModal.
 * Used by both: modal overlay (ALL pages) + search.html results page.
 *
 * Design tokens: dark backdrop · gold #d4af37 · crimson --red: #e8183a
 *   border-radius: 2px (brand standard) · Inter font · z-index: 9999
 * ============================================================
 */

/* ── Modal backdrop + panel ───────────────────────────────── */
.splModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.splModal--open {
  pointer-events: auto;
  opacity: 1;
}

.splModal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.splModal_panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  max-height: calc(100vh - 100px);
  background: rgba(4, 4, 8, 0.97);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  transition: transform .2s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.splModal--open .splModal_panel {
  transform: translateY(0);
}

/* ── Input row ────────────────────────────────────────────── */
.splModal_inputRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 0;
  background: rgba(4,4,8,.98);
  z-index: 2;
  flex-shrink: 0;
}

.splModal_searchIcon {
  font-size: 1.05rem;
  color: rgba(255,255,255,.3);
  flex-shrink: 0;
  transition: color .15s;
}

.splModal_input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font, 'Inter', sans-serif);
  letter-spacing: -.01em;
  min-width: 0;
}
.splModal_input::placeholder { color: rgba(255,255,255,.16); }

/* Mode buttons */
.splModal_actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.splModal_modeBtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: none;
  color: rgba(255,255,255,.28);
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .14s;
}
.splModal_modeBtn:hover { border-color: rgba(255,255,255,.28); color: #fff; }
.splModal_modeBtn--on   { background: rgba(255,255,255,.1) !important; color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.splModal_modeBtn--ai   { color: rgba(78,205,196,.5); border-color: rgba(78,205,196,.2); }
.splModal_modeBtn--ai.splModal_modeBtn--on { background: rgba(78,205,196,.12) !important; color: #4ecdc4 !important; border-color: rgba(78,205,196,.35) !important; }
.splModal_modeBtn--voice { color: rgba(232,24,58,.5); border-color: rgba(232,24,58,.2); }
.splModal_modeBtn--voice.splModal_modeBtn--on { background: rgba(232,24,58,.12) !important; color: #e8183a !important; border-color: rgba(232,24,58,.35) !important; }
.splModal_modeBtn--goal { color: rgba(74,222,128,.5); border-color: rgba(74,222,128,.2); }
.splModal_modeBtn--goal.splModal_modeBtn--on { background: rgba(74,222,128,.12) !important; color: #4ade80 !important; border-color: rgba(74,222,128,.35) !important; }
.splModal_modeBtn--img  { color: rgba(212,175,55,.5); border-color: rgba(212,175,55,.2); }
.splModal_modeBtn--img.splModal_modeBtn--on { background: rgba(212,175,55,.12) !important; color: #d4af37 !important; border-color: rgba(212,175,55,.35) !important; }

/* Close button */
.splModal_closeBtn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  background: none;
  color: rgba(255,255,255,.3);
  font-size: .62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .14s;
}
.splModal_closeBtn:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }

/* ── Autocomplete ─────────────────────────────────────────── */
.splModal_ac {
  width: 100%;
  background: rgba(10,10,14,.98);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.splModal_acItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .1s;
}
.splModal_acItem:last-child { border-bottom: none; }
.splModal_acItem:hover,
.splModal_acItem--focused { background: rgba(255,255,255,.05); }
.splModal_acIcon {
  width: 26px; height: 26px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .66rem; flex-shrink: 0;
}
.splModal_acLabel { font-size: .8rem; font-weight: 600; color: #fff; flex: 1; }
.splModal_acType  { font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); }

/* ── Image drop zone ──────────────────────────────────────── */
.splModal_imgZone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border: 2px dashed rgba(212,175,55,.25);
  margin: 12px 20px;
  border-radius: 4px;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  transition: border-color .15s;
}
.splModal_imgZone--drag { border-color: rgba(212,175,55,.6); background: rgba(212,175,55,.04); }
.splModal_imgZone i { font-size: 1.8rem; color: rgba(212,175,55,.4); }
.splModal_imgUpload {
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.3);
  color: #d4af37;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .14s;
}
.splModal_imgUpload:hover { background: rgba(212,175,55,.18); }
.splModal_imgUpload input { display: none; }

/* ── Stats bar ────────────────────────────────────────────── */
.splModal_stats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 12px 20px 0;
  flex-shrink: 0;
}
.splModal_stats span {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 2px;
  padding: 3px 8px;
  color: rgba(255,255,255,.25);
}
.splModal_stats strong { color: #d4af37; }

/* ── Filter chips ─────────────────────────────────────────── */
.splModal_filterRow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 12px 20px 4px;
  flex-shrink: 0;
}
.splModal_filter {
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.09);
  background: transparent;
  color: rgba(255,255,255,.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font, 'Inter', sans-serif);
  transition: all .12s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.splModal_filter:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.splModal_filter--on   { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.splModal_filter span  { opacity: .45; margin-left: 2px; }

/* ── Default state ────────────────────────────────────────── */
.splModal_defaultState {
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.splModal_section { display: flex; flex-direction: column; gap: 10px; }
.splModal_sectionLabel {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.splModal_cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.splModal_catBtn {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.45);
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font, 'Inter', sans-serif);
  cursor: pointer;
  transition: all .13s;
}
.splModal_catBtn:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--cat-color, rgba(255,255,255,.2));
  color: var(--cat-color, #fff);
}

.splModal_recentRow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.splModal_recentItem {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 2px;
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--font, 'Inter', sans-serif);
  cursor: pointer;
  transition: all .12s;
}
.splModal_recentItem i { font-size: .6rem; color: rgba(255,255,255,.2); }
.splModal_recentItem:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }

.splModal_shortcutHint {
  font-size: 10px;
  color: rgba(255,255,255,.16);
  text-align: center;
  padding-top: 4px;
}
.splModal_shortcutHint kbd {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  font-size: 9px;
  font-family: inherit;
  font-weight: 700;
  color: rgba(255,255,255,.3);
}

/* ── Results area ─────────────────────────────────────────── */
.splModal_results {
  padding: 12px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Total row */
.splModal_totalRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.splModal_total {
  font-size: 10px;
  color: rgba(255,255,255,.22);
  letter-spacing: .04em;
}
.splModal_total strong { color: rgba(255,255,255,.4); }
.splModal_deepLink {
  font-size: .68rem;
  font-weight: 700;
  color: #d4af37;
  text-decoration: none;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .13s;
}
.splModal_deepLink:hover { opacity: 1; }

/* AI banner */
.splModal_aiBanner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(78,205,196,.06);
  border: 1px solid rgba(78,205,196,.16);
  border-radius: 2px;
  padding: 7px 12px;
  margin-bottom: 12px;
  font-size: .7rem;
  color: rgba(78,205,196,.8);
}
.splModal_aiBanner i { color: #4ecdc4; }

/* Result group */
.splModal_group { margin-bottom: 12px; }
.splModal_groupHeader {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  padding: 0 2px;
}
.splModal_groupIcon {
  width: 20px; height: 20px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
}
.splModal_groupLabel {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  flex: 1;
}
.splModal_groupCount {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  padding: 1px 6px;
  border-radius: 9px;
}

/* ── Result card ──────────────────────────────────────────── */
.splModal_card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.018);
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .1s;
  margin-bottom: 3px;
  border-radius: 2px;
}
.splModal_card:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
  transform: translateX(2px);
}
.splModal_cardIcon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem;
  flex-shrink: 0;
}
.splModal_cardBody {
  flex: 1;
  min-width: 0;
}
.splModal_cardName {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.splModal_cardMeta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.splModal_cardType {
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
}
.splModal_cardSub {
  font-size: .62rem;
  color: rgba(255,255,255,.3);
}
.splModal_price {
  font-size: .62rem;
  font-weight: 700;
  color: #d4af37;
}

/* Trust score */
.splModal_cardTrust {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.splModal_cardTs   { font-size: .7rem; font-weight: 800; line-height: 1; }
.splModal_cardBar  { width: 42px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.07); overflow: hidden; }
.splModal_cardFill { height: 100%; border-radius: 1px; }
.splModal_cardBadge {
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.splModal_badge--verified   { background: rgba(74,222,128,.15); color: #4ade80; border: 1px solid rgba(74,222,128,.25); }
.splModal_badge--pending    { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.splModal_badge--unverified { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
.splModal_cardSrc {
  font-size: .46rem;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.splModal_cardSrc i { color: #4ade80; }

/* ── Article card with thumbnail ─────────────────────────── */
.splModal_card--article {
  align-items: flex-start;
}
.splModal_cardThumb {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.06);
}
.splModal_cardAuthor {
  font-size: .58rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 3px;
}
.splModal_cardAuthor i { color: #d4af37; font-size: .5rem; }

/* Show-more link */
.splModal_showMore {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.22);
  text-decoration: none;
  padding: 4px 12px;
  text-align: right;
  letter-spacing: .04em;
  transition: color .12s;
}
.splModal_showMore:hover { color: #d4af37; }

/* ── Loading / empty ──────────────────────────────────────── */
.splModal_loading {
  padding: 40px 20px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.splModal_empty {
  padding: 40px 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
}
.splModal_empty i { font-size: 1.6rem; opacity: .2; display: block; margin-bottom: 10px; }
.splModal_empty small { font-size: .7rem; color: rgba(255,255,255,.2); }
.splModal_empty a { color: #d4af37; text-decoration: none; }

/* ── Voice overlay ────────────────────────────────────────── */
.splModal_voiceOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
  border-radius: 4px;
}
.splModal_voiceOrb {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(232,24,58,.1);
  border: 2px solid rgba(232,24,58,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #e8183a;
  animation: splVoicePulse 1.4s ease-in-out infinite;
}
@keyframes splVoicePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,24,58,.3); }
  50%      { box-shadow: 0 0 0 18px rgba(232,24,58,0); }
}
.splModal_voiceLabel {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.splModal_voiceTranscript {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  min-height: 1.6em;
  text-align: center;
  max-width: 520px;
  padding: 0 20px;
}
.splModal_voiceOverlay button {
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.35);
  font-size: .68rem;
  font-family: var(--font, 'Inter', sans-serif);
  padding: 6px 18px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: .08em;
  transition: all .13s;
}
.splModal_voiceOverlay button:hover { color: #fff; border-color: rgba(255,255,255,.35); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .splModal { padding-top: 0; align-items: flex-end; }
  .splModal_panel {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(20px);
  }
  .splModal--open .splModal_panel { transform: translateY(0); }
  .splModal_input { font-size: 1.1rem; }
  .splModal_inputRow { padding: 14px 16px 12px; }
  .splModal_stats { display: none; }
  .splModal_results, .splModal_defaultState { padding-inline: 14px; }
}
@media (max-width: 480px) {
  .splModal_actions { gap: 3px; }
  .splModal_modeBtn { width: 26px; height: 26px; font-size: .65rem; }
  .splModal_cats { gap: 4px; }
  .splModal_catBtn { font-size: .64rem; padding: 4px 9px; }
}

/* ── search.html page-specific ────────────────────────────── */
/* When used in search.html (not a modal, full page layout) */
.splPage_layout {
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: var(--font, 'Inter', sans-serif);
}
.splPage_header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.splPage_logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.splPage_inputWrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  padding: 8px 14px;
  background: rgba(255,255,255,.03);
  max-width: 600px;
}
.splPage_inputWrap i { color: rgba(255,255,255,.3); font-size: .9rem; }
.splPage_searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font, 'Inter', sans-serif);
}
.splPage_searchInput::placeholder { color: rgba(255,255,255,.2); }
.splPage_searchBtn {
  background: #e8183a;
  border: none;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font, 'Inter', sans-serif);
  transition: background .14s;
}
.splPage_searchBtn:hover { background: #c01430; }
.splPage_body {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.splPage_filterRow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.splPage_modeRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.splPage_modeBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  background: transparent;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font, 'Inter', sans-serif);
  transition: all .13s;
}
.splPage_modeBtn:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.splPage_modeBtn--on { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.splPage_results {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.splPage_headerBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.splPage_total {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.splPage_total strong { color: rgba(255,255,255,.6); }
.splPage_loadMore {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  color: rgba(255,255,255,.3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  background: none;
  font-family: var(--font, 'Inter', sans-serif);
  margin-top: 12px;
  transition: all .14s;
  width: 100%;
}
.splPage_loadMore:hover { background: rgba(255,255,255,.05); color: #fff; }
.splPage_empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .85rem;
  line-height: 1.8;
}
.splPage_empty i { font-size: 2rem; opacity: .2; display: block; margin-bottom: 14px; }
