/* includes/explore/search.css */

.search-shell {
  padding-left: 1px;
}
/* HEADER — 3.1.1 Sticky */

.search-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 14px;
  background: #181a1a;
}

/* SEARCH BOX */

.search-input-wrap {
  position: relative;
  width: 100%;
}

/* INPUT — 3.1.4 font/color + 3.1.5 border/bg */

.search-input {
  width: 100%;
  height: 52px;
  border-radius: 8px;

  /* 3.1.5 */
  border: 1px solid #CDE7BE;
  background: #313333;

  padding: 0 44px 0 44px;

  /* 3.1.4 */
  color: #EAF4F4;
  font-size: 16px;
  font-weight: 400;
  font-family: "Gotham", system-ui, sans-serif;

  outline: none;
  transition: box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: #939999;
  font-weight: 400;
}

/* 4.1.1 — Caret color */
.search-input {
  caret-color: #EAF4F4;
}

/* BACK ICON — 3.1.3: 24x24, #EAF4F4 */

.back-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 24px;
  height: 24px;

  border: none;
  background: transparent;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.back-btn:active {
  transform: translateY(-50%) scale(0.9);
}

/* CLEAR BUTTON — 3.1.2: x icon, appears on input */

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  height: 28px;
  width: 28px;

  border-radius: 999px;
  border: none;
  padding: 0;

  background: rgba(255,255,255,0.12);

  display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.clear-btn.visible {
  display: flex;
}

.clear-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: rgba(255,255,255,0.2);
}

/* BODY */

.search-body {
  margin-top: -8px;
}

.panel {
  margin-top: 12px;
}

/* PANEL HEAD */

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0px 0px 16px;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  font-family: "Gotham", system-ui, sans-serif;
  color: #FFFFFF;
}

.link-btn {
  border: none;
  background: transparent;
  color: #939999;
  font-size: 12px;
  font-weight: 700;
  font-family: "Gotham", system-ui, sans-serif;
  padding: 8px 6px;
  border-radius: 10px;
}

.link-btn:active {
  background: rgba(255,255,255,0.08);
  color: rgba(229,231,235,0.8);
}

/* LIST */

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 53px 1fr 34px;
  align-items: start;
  gap: 16px;

  padding-left: 0px;
  padding-right: 0px;

  cursor: pointer;
}

.row:active {
  transform: scale(0.99);
  background: rgba(255,255,255,0.08);
}

.cover {
  width: 53px;
  height: 77px;
  flex-shrink: 0;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.title {
  font-size: 14px;
  font-weight: 500; /* Gotham Medium */
  color: #EAF4F4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author {
  font-size: 12px;
  font-weight: 400; /* Gotham Book */
  color: #EAF4F4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badges {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  /* tint to #C4CCCC */
  filter: brightness(0) saturate(100%) invert(83%) sepia(8%) saturate(300%) hue-rotate(140deg) brightness(95%) contrast(90%);
}

.badge-text {
  font-size: 12px;
  font-weight: 400; /* Gotham Book */
  color: #C4CCCC;
}

.remove-btn {
  height: 24px;
  width: 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #939999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.remove-btn:active {
  transform: scale(0.92);
  opacity: 0.7;
}

/* STATES */

.hidden {
  display: none !important;
}

.empty {
  margin-top: 50%;
  padding: 14px;
  color: rgba(229, 231, 235, 0.60);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}