/* Cameras Decoded blog search — drop-in styles (dark neon) */

.cd-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.cd-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  font-size: 14px;
  color: #e8f5e9;
  background: rgba(20, 28, 20, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238deb00' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center / 16px 16px;
  border: 1px solid rgba(141, 235, 0, 0.25);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-search-input::placeholder {
  color: rgba(232, 245, 233, 0.4);
}

.cd-search-input:focus {
  border-color: rgba(141, 235, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(141, 235, 0, 0.12);
}

.cd-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(12, 18, 12, 0.98);
  border: 1px solid rgba(141, 235, 0, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  padding: 6px;
}

.cd-search-empty {
  padding: 16px;
  font-size: 13px;
  color: rgba(232, 245, 233, 0.55);
  text-align: center;
}

.cd-search-hit {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.cd-search-hit:hover {
  background: rgba(141, 235, 0, 0.08);
}

.cd-search-hit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cd-search-hit-title {
  font-size: 14px;
  font-weight: 600;
  color: #e8f5e9;
  line-height: 1.3;
}

.cd-search-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8deb00;
  background: rgba(141, 235, 0, 0.12);
  border: 1px solid rgba(141, 235, 0, 0.3);
  border-radius: 20px;
  padding: 2px 8px;
}

.cd-search-hit-meta {
  font-size: 11px;
  color: rgba(141, 235, 0, 0.7);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.cd-search-hit-snippet {
  font-size: 12.5px;
  color: rgba(232, 245, 233, 0.65);
  line-height: 1.45;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-search-hit-snippet mark {
  background: rgba(141, 235, 0, 0.25);
  color: #c6ff4d;
  border-radius: 2px;
  padding: 0 1px;
}
