/* SCUT Lemezkereső - Legutóbbi keresések lenyíló lista stílusok */

.scut-recent-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  background: #171b22;
  background: linear-gradient(180deg, #1b2028 0%, #14181f 100%);
  border: 1px solid #333a46;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
  animation: scutRecentFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.scut-recent-dropdown.hidden {
  display: none !important;
}

@keyframes scutRecentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fejléc */
.scut-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid #282f3a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fa0b5;
  user-select: none;
}

.scut-recent-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9cb1c9;
}

.scut-recent-title span {
  font-size: 13px;
}

.scut-recent-clear-all-btn {
  background: transparent;
  border: none;
  color: #ff5a67;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}

.scut-recent-clear-all-btn:hover {
  background: rgba(227, 6, 19, 0.18);
  color: #ff7580;
}

/* Elemek listája */
.scut-recent-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 290px;
  overflow-y: auto;
}

.scut-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  gap: 10px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  color: #f1f3f7;
  user-select: none;
  border-left: 3px solid transparent;
}

.scut-recent-item:hover,
.scut-recent-item.active {
  background: #232a35;
  color: #ffffff;
  border-left-color: var(--scut-red, #e30613);
}

.scut-recent-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.scut-recent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #93a3b8;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.scut-recent-item:hover .scut-recent-icon,
.scut-recent-item.active .scut-recent-icon {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.scut-recent-text {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  letter-spacing: -0.01em;
}

.scut-recent-text mark {
  background: transparent;
  color: #38bdf8;
  font-weight: 800;
  text-decoration: underline;
}

.scut-recent-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #717d8f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.scut-recent-remove-btn:hover {
  background: rgba(227, 6, 19, 0.22);
  color: #ff5a67;
  transform: scale(1.12);
}

/* Üres állapot */
.scut-recent-empty {
  padding: 18px 14px;
  text-align: center;
  color: #758395;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scut-recent-empty-icon {
  font-size: 20px;
  opacity: 0.7;
}

/* Lábléc tippek */
.scut-recent-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background: rgba(0, 0, 0, 0.32);
  border-top: 1px solid #282f3a;
  font-size: 11px;
  color: #758395;
  user-select: none;
}

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

.scut-recent-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  border-radius: 4px;
  background: #1e242c;
  border: 1px solid #37404e;
  color: #a0aec0;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .scut-recent-dropdown {
    border-radius: 12px;
  }
  .scut-recent-item {
    padding: 10px 12px;
  }
  .scut-recent-footer {
    padding: 6px 12px;
  }
}

/* A lista gombjaira ne hassanak a globális (mobilos) gombszabályok (pl. width:100%, font-size:0),
   különben a törlés-gomb kitölti a sort, és a keresési kifejezés szövege 0 szélességű lesz. */
.scut-recent-dropdown button {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
}
.scut-recent-dropdown button::after { content: none !important; }
.scut-recent-dropdown .scut-recent-item-main { flex: 1 1 auto !important; min-width: 0 !important; }
