/* ══════════════════════════════════════════════════════════════════
   ESP COMPANION — FEATURE STYLES (Sep 2026)
   ══════════════════════════════════════════════════════════════════ */

/* ── Recent Projects Widget ── */
.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.recent-item:hover {
  transform: translateX(4px);
  border-color: #ff8c00;
  box-shadow: 0 2px 8px rgba(255,140,0,0.15);
}
.recent-name {
  font-weight: 600;
  color: var(--txt);
  font-size: 0.9rem;
}
.recent-time {
  font-size: 0.75rem;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* ── Search History Dropdown ── */
#searchHistoryDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin-top: -1px;
}
.search-history-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--txt);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s ease;
}
.search-history-item:last-child {
  border-bottom: none;
}
.search-history-item:hover {
  background: rgba(255,140,0,0.08);
  color: #ff8c00;
}

/* Search input wrapper for dropdown positioning */
.search-input-wrapper {
  position: relative;
}

/* ── Keyboard Shortcuts Panel ── */
.shortcuts-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 1000;
  min-width: 380px;
  max-width: 90vw;
  display: none;
  flex-direction: column;
}
.shortcuts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--card-border);
}
.shortcuts-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
}
.shortcuts-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--mut);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.shortcuts-close:hover {
  background: rgba(255,140,0,0.1);
  color: #ff8c00;
}
.shortcuts-list {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shortcut-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shortcut-row kbd {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff8c00;
  min-width: 32px;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.shortcut-row span {
  font-size: 0.85rem;
  color: var(--txt);
}

/* ── Toast Notifications ── */
.esp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--txt);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
}
.esp-toast-show {
  transform: translateY(0);
  opacity: 1;
}
.esp-toast-success {
  border-left: 4px solid #22c55e;
}
.esp-toast-error {
  border-left: 4px solid #ef4444;
}
.esp-toast-warning {
  border-left: 4px solid #f59e0b;
}

/* ── Export Buttons ── */
.export-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--txt);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.export-btn:hover {
  background: rgba(255,140,0,0.08);
  border-color: #ff8c00;
  color: #ff8c00;
  transform: translateY(-2px);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 600px) {
  .shortcuts-panel {
    min-width: 90vw;
  }
  .esp-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .recent-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
