/* ═══════════════════════════════════════════════════
   search-book.css — Search Zone, Book Column & Floating Cards
   KIBAID Direktori Sejarah Gereja
═══════════════════════════════════════════════════ */

/* ══ SEARCH ZONE ══ */
.search-zone { width: 100%; max-width: 540px; }

/* Animated gradient border wrapper */
.search-card-wrap {
  position: relative; border-radius: var(--r-xl); padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(100,180,255,.6), rgba(74,222,128,.4), rgba(255,255,255,.5));
  background-size: 300% 300%;
  animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.search-card {
  background: rgba(255,255,255,.97);
  border-radius: calc(var(--r-xl) - 2px);
  box-shadow: 0 8px 40px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.16);
  overflow: hidden;
}
.search-top {
  display: flex; align-items: center;
  padding: 6px 6px 6px 20px; gap: 12px;
}
.search-card-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .3px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  padding-right: 14px; border-right: 1.5px solid var(--border-soft);
}
.search-box { flex: 1; position: relative; display: flex; align-items: center; }
.search-input {
  width: 100%; height: 44px; border: none; outline: none;
  background: transparent; font-size: 15.5px; color: var(--ink);
  padding-right: 44px; font-family: 'IBM Plex Sans', sans-serif;
}
.search-input::placeholder { color: #B4BBCC; }
.search-clear {
  position: absolute; right: 6px;
  background: var(--border); border: none;
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  color: var(--muted); transition: background var(--t), transform var(--t);
}
.search-clear.visible { display: flex; }
.search-clear:hover { background: #CDD1DF; transform: scale(1.1); }

/* Hint chips */
.search-hint-row {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 20px 14px; border-top: 1px solid var(--border-soft);
}
.hint-label { font-size: 12px; color: var(--subtle); font-weight: 500; margin-right: 2px; }
.hint-chip {
  font-size: 12px; font-weight: 500; color: var(--blue); background: var(--blue-pale);
  border: 1px solid rgba(27,69,98,.18); padding: 3px 11px; border-radius: 20px;
  cursor: pointer; transition: all var(--t);
}
.hint-chip:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* Stats row below search */
.search-stats { display: flex; align-items: center; margin-top: 16px; }
.s-stat { display: flex; flex-direction: column; align-items: center; padding: 0 22px; }
.s-stat:first-child { padding-left: 0; }
.s-stat-num { font-size: 26px; font-weight: 700; color: #ffffff; line-height: 1.1; }
.s-stat-lbl { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .6px; text-transform: uppercase; }
.s-stat-sep { width: 1px; height: 34px; background: rgba(255,255,255,.2); }

/* ── STICKY SEARCH ── */
.search-sticky {
  position: sticky; top: 60px; z-index: 100;
  background: rgba(245,246,250,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; padding: 10px 28px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t), transform var(--t), border-color var(--t);
}
.search-sticky.visible {
  opacity: 1; transform: translateY(0); pointer-events: all;
  border-bottom-color: var(--border-soft);
  box-shadow: 0 2px 12px rgba(13,17,23,.05);
}
.sticky-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.sticky-brand {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--muted); flex-shrink: 0;
}
.sticky-search-box {
  flex: 1; max-width: 520px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 99px; height: 40px;
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
  transition: border-color var(--t), box-shadow var(--t);
}
.sticky-search-box:focus-within {
  border-color: #1b4562;
  box-shadow: 0 0 0 3px rgba(27,69,98,.14);
}
.sticky-icon  { color: var(--subtle); flex-shrink: 0; }
.sticky-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif;
}
.sticky-input::placeholder { color: #B4BBCC; }
.sticky-clear {
  position: static;
  background: var(--border); border: none;
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  color: var(--muted); transition: background var(--t);
}
.sticky-clear.visible { display: flex; }
.sticky-clear:hover { background: #CDD1DF; }
.sticky-count {
  flex-shrink: 0; font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px;
}

/* ══ BOOK COLUMN ══ */
.hero-book-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; z-index: 2; padding: 20px 36px;
}
.hero-book-glow {
  position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(74,144,226,.22) 0%, rgba(27,69,98,.12) 45%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.08); }
}
.hero-book {
  position: relative; z-index: 1; align-self: center;
  transform: perspective(900px) rotateY(-10deg) rotateX(3deg);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), filter .45s ease;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55)) drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.hero-book:hover {
  transform: perspective(900px) rotateY(-4deg) rotateX(1deg) scale(1.03);
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.6)) drop-shadow(0 6px 18px rgba(0,0,0,.4));
}
.hero-book-img {
  width: 220px; height: auto; display: block;
  border-radius: 3px 10px 10px 3px; user-select: none;
  filter: saturate(.82) brightness(.88) contrast(.96);
  transition: filter .45s ease;
}
.hero-book:hover .hero-book-img { filter: saturate(.92) brightness(.95) contrast(.98); }

/* Placeholder buku jika gambar tidak tersedia */
.hero-book-placeholder {
  width: 220px; height: 300px; border-radius: 3px 10px 10px 3px;
  background: linear-gradient(160deg, #1e5070 0%, #0e2535 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 28px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(100,180,230,.22), inset -4px 0 8px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.hero-book-placeholder::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 60%, transparent 100%);
}
.hero-book-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,.025) 20px, rgba(255,255,255,.025) 21px);
}
.book-cross-svg  { color: rgba(255,255,255,.6); z-index: 1; }
.book-title-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.5; z-index: 1; letter-spacing: .3px; }
.book-sub-text   { font-size: 10px; color: rgba(255,255,255,.4); z-index: 1; letter-spacing: .6px; text-transform: uppercase; }

.hero-book-overlay {
  position: absolute; inset: 0; border-radius: 3px 10px 10px 3px;
  background: linear-gradient(135deg, rgba(14,37,53,.18) 0%, rgba(27,69,98,.12) 50%, rgba(14,37,53,.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(100,180,230,.22);
  pointer-events: none;
}

/* Book spine highlight */
.hero-book::before {
  content: ''; position: absolute; z-index: 2;
  top: 0; left: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 60%, transparent 100%);
  border-radius: 3px 0 0 3px; pointer-events: none;
}
/* Hover sheen */
.hero-book::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  border-radius: 3px 10px 10px 3px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  background-size: 200% 200%; background-position: -100% 0;
  transition: background-position .6s ease; pointer-events: none;
}
.hero-book:hover::after { background-position: 200% 0; }

/* ══ FLOATING CARDS ══ */
.fc {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 10px 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,.25); white-space: nowrap;
  animation: fcFloat 0.5s ease both;
}
.fc svg { flex-shrink: 0; color: rgba(150,210,255,.9); }
.fc-text { display: flex; flex-direction: column; gap: 1px; }
.fc-label { font-size: 10px; color: rgba(255,255,255,.45); font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.fc-value { font-size: 13px; color: rgba(255,255,255,.9); font-weight: 600; }

.fc--edition   { top: 12%;  left: -28%; animation-delay: .1s; }
.fc--edition svg { color: #facc15; }
.fc--year      { top: 8%;   right: -22%; animation-delay: .2s; }
.fc--publisher { bottom: 28%; left: -24%; animation-delay: .3s; }
.fc--churches  { bottom: 12%; right: -18%; animation-delay: .4s; }

.fc-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(74,222,128,.6);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes fcFloat {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
