/* =========================================================
   BUSCA DE DOCUMENTOS — Esporte Clube Bela Vista
   ========================================================= */

.search-btn{
  background: none;
  border: 1px solid rgba(251,248,239,0.25);
  color: var(--branco, #fbf8ef);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .2s ease, background .2s ease;
}
.search-btn:hover{ border-color: var(--amarelo, #f6c500); background: rgba(246,197,0,0.08); }
.search-btn:focus-visible{ outline: 2px solid var(--amarelo, #f6c500); outline-offset: 2px; }
.search-btn svg{ width: 19px; height: 19px; }

.search-panel{
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 9997;
  width: min(560px, calc(100vw - 32px));
  background: #131315;
  color: #fbf8ef;
  border: 1px solid rgba(251,248,239,0.14);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.search-panel.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.search-field{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(251,248,239,0.12);
}
.search-field svg{ width: 20px; height: 20px; color: #9a988f; flex: 0 0 auto; }
.search-field input{
  flex: 1 1 auto;
  background: none;
  border: none;
  outline: none;
  color: #fbf8ef;
  font-family: inherit;
  font-size: 16px;
}
.search-field input::placeholder{ color: #6b6a63; }
.search-field-close{
  background: none;
  border: none;
  color: #9a988f;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.search-field-close svg{ width: 16px; height: 16px; }
.search-field-close:hover{ color: #fbf8ef; }

.search-results{
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}
.search-result{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fbf8ef;
  padding: 10px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.search-result:hover, .search-result.is-active{ background: rgba(246,197,0,0.12); }
.search-result-ico{
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(246,197,0,0.12);
  color: #f6c500;
  display: flex; align-items: center; justify-content: center;
}
.search-result-ico svg{ width: 16px; height: 16px; }
.search-result-text{ flex: 1 1 auto; min-width: 0; }
.search-result-name{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result-cat{
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f6c500;
  margin-top: 3px;
}
.search-empty{
  padding: 26px 18px;
  text-align: center;
  color: #9a988f;
  font-size: 14px;
}
.search-hint{
  padding: 12px 18px;
  color: #6b6a63;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px){
  .search-panel{ top: 74px; width: calc(100vw - 24px); }
}

/* --- destaque do documento encontrado na página de transparência --- */
.doc-card.is-doc-highlight{
  border-color: #f6c500 !important;
  background: rgba(246,197,0,0.14) !important;
  animation: doc-pulse 1.6s ease 2;
}
@keyframes doc-pulse{
  0%, 100% { box-shadow: 0 0 0 0 rgba(246,197,0,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(246,197,0,0); }
}
