/* AI Spotlight Search Modern Glassmorphism Styling - Nhà Chuppy */

.chuppy-ai-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40, 30, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chuppy-ai-search-modal.active {
  opacity: 1;
  visibility: visible;
}

.chuppy-ai-search-box {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(44, 30, 18, 0.25), 0 0 0 1px rgba(184, 140, 99, 0.2);
  overflow: hidden;
  transform: translateY(-15px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.chuppy-ai-search-modal.active .chuppy-ai-search-box {
  transform: translateY(0) scale(1);
}

/* Header & Input Field */
.chuppy-ai-search-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1ece6;
  background: #fcfbfa;
}

.chuppy-ai-search-header i.search-icon {
  font-size: 18px;
  color: #a3876e;
  margin-right: 14px;
}

.chuppy-ai-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: #2c221a;
  font-weight: 500;
}

.chuppy-ai-search-input::placeholder {
  color: #9c8e82;
  font-weight: 400;
}

/* Mic & Esc Controls */
.chuppy-ai-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chuppy-ai-mic-btn {
  border: none;
  background: #f4ede6;
  color: #8c6e54;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.chuppy-ai-mic-btn:hover,
.chuppy-ai-mic-btn.listening {
  background: var(--chuppy-gold, #b88c63);
  color: #ffffff;
  transform: scale(1.05);
}

.chuppy-ai-mic-btn.listening {
  animation: chuppyMicPulse 1.2s infinite;
}

@keyframes chuppyMicPulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 140, 99, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(184, 140, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 140, 99, 0); }
}

.chuppy-ai-esc-badge {
  font-size: 11px;
  font-weight: 600;
  color: #8c7866;
  background: #eae2d8;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Trending Tags Bar */
.chuppy-ai-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fbf9f6;
  border-bottom: 1px solid #f1ece6;
  overflow-x: auto;
  white-space: nowrap;
}

.chuppy-ai-tags-bar span.label {
  font-size: 11.5px;
  font-weight: 700;
  color: #a38b75;
  text-transform: uppercase;
}

.chuppy-ai-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e6ded6;
  font-size: 12px;
  color: #5c4c3e;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.chuppy-ai-tag-pill:hover {
  background: #b88c63;
  color: #ffffff;
  border-color: #b88c63;
}

/* Results Content Area */
.chuppy-ai-search-content {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: calc(85vh - 130px);
}

/* AI Assistant Advice Card */
.chuppy-ai-advice-card {
  background: linear-gradient(135deg, #faf6f0 0%, #f4eae0 100%);
  border: 1px solid #e8dacb;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(184, 140, 99, 0.08);
}

.chuppy-ai-advice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b88c63;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chuppy-ai-advice-body h5 {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: #8c6e54;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chuppy-ai-advice-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3b2e24;
  font-weight: 500;
}

/* Products Grid Results */
.chuppy-ai-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.chuppy-ai-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #f0e8e0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.chuppy-ai-product-item:hover {
  border-color: #b88c63;
  box-shadow: 0 6px 16px rgba(184, 140, 99, 0.12);
  transform: translateY(-2px);
}

.chuppy-ai-prod-thumb {
  width: 54px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f4ede6;
}

.chuppy-ai-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chuppy-ai-prod-info {
  flex: 1;
  min-width: 0;
}

.chuppy-ai-prod-code {
  font-size: 11px;
  font-weight: 700;
  color: #b88c63;
  margin-bottom: 2px;
}

.chuppy-ai-prod-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c221a;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chuppy-ai-prod-price {
  font-size: 12px;
  font-weight: 700;
  color: #8c6e54;
}

/* Header Trigger Button */
.chuppy-header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f7f3ee;
  border: 1px solid #e6ded6;
  border-radius: 20px;
  color: #7a6656;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.chuppy-header-search-btn:hover {
  background: #ffffff;
  border-color: #b88c63;
  color: #2c221a;
  box-shadow: 0 4px 12px rgba(184, 140, 99, 0.12);
}

.chuppy-cmd-kbd {
  font-size: 10px;
  font-weight: 700;
  background: #e6ded6;
  color: #5c4c3e;
  padding: 2px 6px;
  border-radius: 4px;
}
