/* ═════════════════════════════════════════════════════════════
   BEAUTYPROF GLOBAL SEARCH & COMMAND PALETTE (2026 UI STANDARD)
   ═════════════════════════════════════════════════════════════ */

/* Header Search Trigger Button */
.header-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  margin: 0 20px 0 16px;
}

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.header-search-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffffff;
}

.header-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.header-search-btn:hover .header-search-icon {
  color: var(--gold2);
}

.header-search-kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .header-search-wrap {
    margin: 0 8px;
    max-width: 220px;
  }
}

@media (max-width: 650px) {
  .header-search-wrap {
    flex: 0 0 auto;
    margin: 0;
    max-width: none;
  }
  .header-search-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .header-search-text,
  .header-search-kbd {
    display: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   COMMAND PALETTE MODAL OVERLAY
   ═════════════════════════════════════════════════════════════ */

.bp-search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  box-sizing: border-box;
}

.bp-search-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bp-search-dialog {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(165deg, #161a29 0%, #0d101a 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bp-search-modal-overlay.open .bp-search-dialog {
  transform: translateY(0) scale(1);
}

/* Search Input Bar */
.bp-search-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
  position: relative;
}

.bp-search-icon {
  color: var(--gold2);
  flex-shrink: 0;
}

.bp-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
}

.bp-search-input::placeholder {
  color: #64748b;
}

.bp-search-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s ease;
}

.bp-search-clear:hover {
  color: #ffffff;
}

.bp-search-esc {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

/* Quick Filter Tags */
.bp-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(10, 14, 23, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.bp-search-tags::-webkit-scrollbar {
  display: none;
}

.bp-search-tag-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bp-search-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bp-search-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #dfba92;
}

/* Results Container */
.bp-search-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-search-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
}

.bp-search-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-search-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
}

.bp-search-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bp-search-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.bp-search-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.bp-search-dot.gray { background: #64748b; }

/* Individual Result Item */
.bp-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bp-search-item:hover,
.bp-search-item.selected {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateX(2px);
}

.bp-item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-item-icon-box.recording {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.bp-item-icon-box.upcoming {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.bp-item-icon-box.ended {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.bp-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bp-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bp-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-search-item:hover .bp-item-title {
  color: var(--gold2);
}

.bp-search-match {
  background: rgba(212, 175, 55, 0.28);
  color: #dfba92;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 800;
}

/* Micro Status Badges */
.bp-item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bp-item-badge.rec {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.bp-item-badge.upcoming {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.bp-item-badge.ended {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.badge-dot.red { background: #ef4444; }
.badge-dot.green { background: #10b981; }
.badge-dot.gray { background: #94a3b8; }

.bp-item-lead {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-item-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-item-speaker {
  color: var(--gold2);
}

.bp-item-arrow {
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bp-search-item:hover .bp-item-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* Empty State */
.bp-search-empty,
.bp-search-initial {
  text-align: center;
  padding: 36px 20px;
}

.bp-search-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  margin: 0 auto 12px;
  font-size: 16px;
  font-weight: 800;
}

.bp-search-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.bp-search-empty-sub {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}

.bp-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  color: var(--gold2);
  font-size: 13.5px;
  font-weight: 600;
}

/* Modal Footer */
.bp-search-footer {
  padding: 12px 20px;
  background: rgba(10, 14, 23, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bp-search-hints {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-search-hint {
  font-size: 11px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bp-search-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9.5px;
  color: #cbd5e1;
}

.bp-search-full-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.bp-search-full-link:hover {
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════
   DEDICATED SEARCH PAGE (/search) STYLES
   ═════════════════════════════════════════════════════════════ */

.search-page-section {
  padding: 48px 0 60px;
}

.search-page-head {
  max-width: 840px;
  margin: 0 auto 36px;
  text-align: center;
}

.search-page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.search-page-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 620px;
}

.search-page-form {
  margin: 0 auto 20px;
  max-width: 660px;
}

.search-page-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-page-input-icon {
  position: absolute;
  left: 18px;
  color: var(--gold2);
  pointer-events: none;
}

.search-page-input {
  width: 100%;
  padding: 14px 120px 14px 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.search-page-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.search-page-clear-btn {
  position: absolute;
  right: 110px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  padding: 6px;
}

.search-page-submit-btn {
  position: absolute;
  right: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-tags-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.search-tag-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-tag-chip:hover,
.search-tag-chip.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #dfba92;
}

.search-segmented-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.search-filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.search-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-filter-pill.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pill-dot.red { background: #ef4444; }
.pill-dot.green { background: #10b981; }
.pill-dot.gray { background: #94a3b8; }

/* Search Results Grid on Page */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 860px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

.search-result-card {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(24, 29, 44, 0.9) 0%, rgba(13, 16, 25, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.1);
}

.search-card-thumb-wrap {
  width: 140px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #090c15;
  flex-shrink: 0;
}

.search-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card-micro-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-card-micro-badge.rec-badge {
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
}

.search-card-micro-badge.upcoming-badge {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.search-card-micro-badge.ended-badge {
  background: rgba(15, 20, 30, 0.85);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.search-card-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.search-meta-dir {
  color: var(--gold2);
}

.search-meta-sep {
  opacity: 0.4;
}

.search-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.search-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-card:hover .search-card-title a {
  color: var(--gold2);
}

.search-card-lead {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-speaker {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.search-card-speaker strong {
  color: #ffffff;
}

.search-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}

.search-action-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .search-result-card {
    flex-direction: column;
  }
  .search-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .search-page-input {
    padding: 12px 14px 12px 42px;
    font-size: 13.5px;
  }
  .search-page-submit-btn {
    position: static;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  .search-page-input-wrap {
    flex-direction: column;
  }
  .search-page-clear-btn {
    right: 16px;
  }
}
