/* SCUT Lemezkereső - ⚡ Gyorsgombok szekció stílusok a Beállítások menüben */

#shortcutsSettingsPanel {
  width: 100% !important;
  box-sizing: border-box !important;
  animation: scutShortcutsFadeIn 0.18s ease-out;
}

#shortcutsSettingsPanel.hidden {
  display: none !important;
}

@keyframes scutShortcutsFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fő kártya */
.scut-qa-card {
  background: linear-gradient(155deg, #1e232b, #151920) !important;
  border: 1px solid #303741 !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
}

/* Fejléc sáv */
.scut-qa-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #282f3a;
  padding-bottom: 16px;
}

.scut-qa-icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.scut-qa-header-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.scut-qa-header-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Szekció címek */
.scut-qa-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin: 18px 0 10px;
}

.scut-qa-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Gyors műveletek rács */
.scut-qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

/* Egyedi gyorsgomb kártya */
.scut-qa-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 64px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, #222731 0%, #171b22 100%) !important;
  border: 1px solid #333c4a !important;
  color: #f8fafc !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  text-align: left !important;
  box-sizing: border-box !important;
  user-select: none !important;
  width: 100% !important;
}

.scut-qa-btn:hover {
  background: linear-gradient(160deg, #2a313d 0%, #1d222b 100%) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.scut-qa-btn:active {
  transform: scale(0.985) !important;
}

.scut-qa-btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  transition: transform 0.15s ease;
}

.scut-qa-btn:hover .scut-qa-btn-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.1);
}

.scut-qa-btn-content {
  flex: 1 1 auto;
  min-width: 0;
}

.scut-qa-btn-title {
  font-size: 14px;
  font-weight: 850;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scut-qa-btn-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scut-qa-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  background: #111419;
  border: 1px solid #374151;
  color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* Összecsukható billentyűparancs harmonika */
.scut-qa-accordion {
  border: 1px solid #2d3542;
  border-radius: 14px;
  background: #14181f;
  overflow: hidden;
  margin-top: 10px;
}

.scut-qa-accordion-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 13px 16px !important;
  background: transparent !important;
  border: none !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: none !important;
  transition: background 0.15s ease !important;
}

.scut-qa-accordion-head:hover {
  background: #1b2029 !important;
}

.scut-qa-chevron {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.scut-qa-accordion.open .scut-qa-chevron {
  transform: rotate(180deg);
}

.scut-qa-accordion-body {
  display: none;
  padding: 6px 16px 16px;
  border-top: 1px solid #252c37;
  background: #111419;
}

.scut-qa-accordion.open .scut-qa-accordion-body {
  display: block;
}

/* Billentyűparancs lista sorok */
.scut-qa-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e242d;
}

.scut-qa-shortcut-row:last-child {
  border-bottom: none;
}

.scut-qa-shortcut-desc {
  flex: 1;
  min-width: 0;
}

.scut-qa-shortcut-desc b {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
}

.scut-qa-shortcut-desc span {
  display: block;
  font-size: 11.5px;
  color: #8b97a8;
  margin-top: 1px;
}

.scut-qa-shortcut-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.scut-qa-shortcut-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  color: #e2e8f0;
  background: #1e242d;
  border: 1px solid #3b4554;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Súgó modal gomb a harmonika alján */
.scut-qa-help-action-btn {
  width: 100% !important;
  margin-top: 14px !important;
  min-height: 44px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* Keresési előzmények doboz */
.scut-qa-history-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 13px;
  background: #13171e;
  border: 1px solid #282f3a;
  margin-top: 14px;
}

.scut-qa-history-text {
  font-size: 13px;
  color: #94a3b8;
}

.scut-qa-history-text b {
  color: #f8fafc;
}

/* Mobilos finomítások */
@media (max-width: 600px) {
  .scut-qa-card {
    padding: 14px !important;
    border-radius: 15px !important;
  }
  .scut-qa-header {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .scut-qa-icon-badge {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 20px;
  }
  .scut-qa-header-text h2 {
    font-size: 19px;
  }
  .scut-qa-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .scut-qa-btn {
    min-height: 58px !important;
    padding: 10px 12px !important;
  }
  .scut-qa-history-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* Átállítható gyorsbillentyűk */
.scut-kb-bind-hint { margin: 0 0 10px; font-size: 13px; opacity: .8; }
.scut-qa-shortcut-keys { flex-wrap: wrap; gap: 6px; }
.scut-qa-shortcut-keys .scut-kb-edit,
.scut-qa-shortcut-keys .scut-kb-clear { padding: 4px 10px; min-height: 30px; font-size: 12.5px; font-weight: 700; width: auto; margin: 0; }
.scut-qa-shortcut-keys .scut-kb-edit.capturing { outline: 2px solid #3b82f6; background: #dbeafe; color: #1e3a8a; }
.scut-kb-none { font-size: 12px; opacity: .6; font-style: italic; }

/* Telefonon a gyorsgomb-rács ne lógjon ki: az oszlop és a gombok zsugorodhassanak */
.scut-qa-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.scut-qa-btn { min-width: 0; max-width: 100%; box-sizing: border-box; }
.scut-qa-btn-content { min-width: 0; flex: 1 1 auto; }
.scut-qa-btn-title, .scut-qa-btn-desc { white-space: normal !important; overflow-wrap: anywhere; }
.scut-qa-btn-badge { flex: 0 0 auto; }
@media (max-width: 600px) {
  .scut-qa-grid { grid-template-columns: minmax(0, 1fr); }
}
.scut-qa-shortcut-row { flex-wrap: wrap; min-width: 0; }
.scut-qa-shortcut-desc { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.scut-qa-shortcut-keys { flex: 0 1 auto; min-width: 0; max-width: 100%; justify-content: flex-end; margin-left: auto; }
