/* SCUT Lemezkereső - Billentyűzet-támogatás & gyorsgombok stílusok */

/* 1. Keresőmező billentyűzet jelző (Ctrl + K / ⌘K) */
.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-container input#q {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 90px !important;
}

.scut-kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  user-select: none;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scut-kbd-hint kbd,
.scut-modal-shortcuts kbd,
.local-search-kbd kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  color: #d1d5db;
  background: #1e232b;
  border: 1px solid #3b4452;
  border-bottom: 2px solid #282f3a;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.search-input-container input#q:focus ~ .scut-kbd-hint {
  opacity: 0.35;
}

/* Fókusz kiemelési animáció Ctrl+K vagy gyorsugrás esetén */
.scut-search-pulse {
  animation: scutSearchPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scutSearchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6);
    border-color: #ff3b46 !important;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(227, 6, 19, 0.35);
    border-color: #ff3b46 !important;
  }
  100% {
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
  }
}

/* Helyi listaszűrők kbd jelzője */
.local-search-kbd {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.localSearchInput:focus ~ .local-search-kbd {
  opacity: 0.2;
}

/* Fejléc gyorsgombok gomb - eltávolítva a fejlécből */
.scutKeyboardHeaderBtn {
  display: none !important;
}

/* 2. Billentyűparancsok súgó modális ablak */
.scut-kb-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 38000;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  animation: scutKbFadeIn 0.16s ease-out;
}

@keyframes scutKbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scut-kb-help-modal {
  width: min(540px, 100%);
  max-height: min(85vh, 720px);
  overflow-y: auto;
  background: linear-gradient(160deg, #1d2128, #13151a 80%);
  border: 1px solid #373f4e;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  padding: 24px;
  box-sizing: border-box;
  animation: scutKbPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scutKbPopIn {
  from { transform: scale(0.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.scut-kb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2d3542;
}

.scut-kb-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.scut-kb-close-x {
  border: 0;
  background: #252b36;
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scut-kb-close-x:hover {
  background: #333c4a;
  color: #fff;
}

.scut-kb-section-title {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c97a8;
  margin: 16px 0 8px;
}

.scut-kb-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.scut-kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #171b21;
  border: 1px solid #2b3340;
  border-radius: 12px;
  gap: 14px;
}

.scut-kb-desc {
  font-size: 14px;
  font-weight: 650;
  color: #e2e8f0;
  line-height: 1.4;
}

.scut-kb-desc small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 500;
}

.scut-kb-keys {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.scut-kb-keys kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-size: 12px;
}

.scut-kb-plus {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.scut-kb-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #2d3542;
  display: flex;
  justify-content: flex-end;
}

.scut-kb-footer button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
}

@media (max-width: 540px) {
  .scut-kbd-hint {
    display: none;
  }
  .local-search-kbd {
    display: none;
  }
  .search-input-container input#q {
    padding-right: 14px !important;
  }
  .scut-kb-help-modal {
    padding: 18px;
    border-radius: 18px;
  }
  .scut-kb-row {
    padding: 9px 10px;
  }
  .scut-kb-desc {
    font-size: 13px;
  }
}
