@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Kuhu Experience Search Engine — all selectors are scoped to the shortcode. */
.kuhu-search-engine {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.kuhu-search-engine,
.kuhu-search-engine * {
  box-sizing: border-box;
}

.kuhu-search-engine .journey-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(24px, 4vw, 36px);
  text-align: center;
  margin: 0 0 32px;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kuhu-search-engine .journey-stages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kuhu-search-engine .stage-card {
  width: clamp(140px, 22vw, 180px);
  height: clamp(140px, 22vw, 180px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Fredoka', cursive;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  user-select: none;
  overflow: hidden;
  background-color: #343a40;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.kuhu-search-engine .stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
  transition: background 0.3s ease;
}

.kuhu-search-engine .stage-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.kuhu-search-engine .stage-card.active {
  transform: scale(1.05);
  border-color: #ffffff;
}

.kuhu-search-engine .mother-stage.active {
  box-shadow: 0 0 0 4px #ff8fa3, 0 14px 35px rgba(255, 143, 163, 0.4);
}

.kuhu-search-engine .baby-stage.active {
  box-shadow: 0 0 0 4px #4dabf7, 0 14px 35px rgba(77, 171, 247, 0.4);
}

.kuhu-search-engine .toys-stage.active {
  box-shadow: 0 0 0 4px #55e88a, 0 14px 35px rgba(39, 214, 112, 0.4);
}

.kuhu-search-engine .universal-stage.active {
  box-shadow: 0 0 0 4px #b878ff, 0 14px 35px rgba(154, 88, 255, 0.4);
}

.kuhu-search-engine .stage-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.kuhu-search-engine .stage-card-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  text-align: center;
  padding: 0 10px;
  overflow-wrap: anywhere;
}

.kuhu-search-engine .dropdown-arrow {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.9;
}

.kuhu-search-engine .stage-card.active .dropdown-arrow {
  transform: rotate(180deg);
}

.kuhu-search-engine .storyline-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.kuhu-search-engine .storyline-wrapper.open {
  grid-template-rows: 1fr;
}

.kuhu-search-engine .storyline-content {
  min-height: 0;
}

.kuhu-search-engine .search-container {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px);
  margin: 12px auto 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

.kuhu-search-engine .search-container form {
  margin: 0;
}

.kuhu-search-engine .search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.kuhu-search-engine .search-input {
  width: 100%;
  height: 52px;
  padding: 10px 52px 10px 20px;
  border-radius: 26px;
  border: 2px solid #e9ecef;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: #212529;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  background: #f8f9fa;
}

.kuhu-search-engine .search-input:focus {
  background: #ffffff;
}

.kuhu-search-engine .mother-active .search-input:focus {
  border-color: #ff8fa3;
  box-shadow: 0 0 0 4px rgba(255, 143, 163, 0.15);
}

.kuhu-search-engine .baby-active .search-input:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.15);
}

.kuhu-search-engine .toys-active .search-input:focus {
  border-color: #35d978;
  box-shadow: 0 0 0 4px rgba(53, 217, 120, 0.15);
}

.kuhu-search-engine .universal-active .search-input:focus {
  border-color: #a56bff;
  box-shadow: 0 0 0 4px rgba(165, 107, 255, 0.15);
}

.kuhu-search-engine .search-btn {
  position: absolute;
  right: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #adb5bd;
  transition: transform 0.2s ease, background-color 0.25s ease;
}

.kuhu-search-engine .mother-active .search-btn { background: #ff8fa3; }
.kuhu-search-engine .baby-active .search-btn { background: #4dabf7; }
.kuhu-search-engine .toys-active .search-btn { background: #35d978; }
.kuhu-search-engine .universal-active .search-btn { background: #a56bff; }

.kuhu-search-engine .search-btn:hover,
.kuhu-search-engine .search-btn:focus-visible {
  transform: scale(1.05);
}

.kuhu-search-engine .search-btn:focus-visible {
  outline: 2px solid #212529;
  outline-offset: 2px;
}

.kuhu-search-engine .search-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.kuhu-search-engine .search-pills {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.kuhu-search-engine .pills-label {
  padding-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.kuhu-search-engine .pills-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kuhu-search-engine .trend-pill {
  background: #f1f3f5;
  padding: 5px 12px;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.kuhu-search-engine .trend-pill:hover,
.kuhu-search-engine .trend-pill:focus-visible {
  transform: translateY(-1px);
}

.kuhu-search-engine .trend-pill.is-selected {
  color: #ffffff;
  background: #495057;
}

.kuhu-search-engine .mother-active .trend-pill.is-selected { background: #d63384; }
.kuhu-search-engine .baby-active .trend-pill.is-selected { background: #0284c7; }
.kuhu-search-engine .toys-active .trend-pill.is-selected { background: #16834b; }
.kuhu-search-engine .universal-active .trend-pill.is-selected { background: #7e22ce; }

.kuhu-search-engine .mother-active .trend-pill:hover,
.kuhu-search-engine .mother-active .trend-pill:focus-visible {
  background: #ffe3e8;
  color: #d63384;
}

.kuhu-search-engine .baby-active .trend-pill:hover,
.kuhu-search-engine .baby-active .trend-pill:focus-visible {
  background: #e7f5ff;
  color: #0284c7;
}

.kuhu-search-engine .toys-active .trend-pill:hover,
.kuhu-search-engine .toys-active .trend-pill:focus-visible {
  background: #e6fff0;
  color: #16834b;
}

.kuhu-search-engine .universal-active .trend-pill:hover,
.kuhu-search-engine .universal-active .trend-pill:focus-visible {
  background: #f3e8ff;
  color: #7e22ce;
}

.kuhu-search-engine .search-status {
  min-height: 18px;
  margin-top: 14px;
  color: #868e96;
  font-size: 12px;
  font-weight: 600;
}

.kuhu-search-engine .search-status:empty {
  display: none;
}

.kuhu-search-engine .search-results-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.kuhu-search-engine .search-results-list.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.kuhu-search-engine .search-result-item {
  min-width: 0;
  background: #f8f9fa;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #f1f3f5;
  text-decoration: none;
  color: #343a40;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kuhu-search-engine .search-result-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kuhu-search-engine .search-result-item mark {
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.kuhu-search-engine .mother-active .search-result-item:hover,
.kuhu-search-engine .mother-active .search-result-item:focus-visible {
  background: #fff5f7;
  border-color: #ffccd5;
  color: #d63384;
  transform: translateY(-1px);
}

.kuhu-search-engine .baby-active .search-result-item:hover,
.kuhu-search-engine .baby-active .search-result-item:focus-visible {
  background: #f0f8ff;
  border-color: #bae6fd;
  color: #0284c7;
  transform: translateY(-1px);
}

.kuhu-search-engine .toys-active .search-result-item:hover,
.kuhu-search-engine .toys-active .search-result-item:focus-visible {
  background: #f0fff5;
  border-color: #b8efca;
  color: #16834b;
  transform: translateY(-1px);
}

.kuhu-search-engine .universal-active .search-result-item:hover,
.kuhu-search-engine .universal-active .search-result-item:focus-visible {
  background: #faf5ff;
  border-color: #dfc3ff;
  color: #7e22ce;
  transform: translateY(-1px);
}

.kuhu-search-engine .search-result-item:focus-visible,
.kuhu-search-engine .trend-pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.kuhu-search-engine .search-result-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.kuhu-search-engine .search-result-item:hover svg,
.kuhu-search-engine .search-result-item:focus-visible svg {
  transform: translateX(3px);
  opacity: 1;
}

.kuhu-search-engine .no-results {
  padding: 24px;
  font-size: 14px;
  color: #868e96;
  text-align: center;
  grid-column: 1 / -1;
}

.kuhu-search-engine .no-results-btn,
.kuhu-search-engine .view-all-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: #ffffff;
}

.kuhu-search-engine .mother-active .no-results-btn,
.kuhu-search-engine .mother-active .view-all-btn { background: #ff8fa3; }
.kuhu-search-engine .baby-active .no-results-btn,
.kuhu-search-engine .baby-active .view-all-btn { background: #4dabf7; }
.kuhu-search-engine .toys-active .no-results-btn,
.kuhu-search-engine .toys-active .view-all-btn { background: #35d978; }
.kuhu-search-engine .universal-active .no-results-btn,
.kuhu-search-engine .universal-active .view-all-btn { background: #a56bff; }

.kuhu-search-engine .no-results-btn:hover,
.kuhu-search-engine .no-results-btn:focus-visible,
.kuhu-search-engine .view-all-btn:hover,
.kuhu-search-engine .view-all-btn:focus-visible {
  color: #ffffff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.kuhu-search-engine .view-all-wrap {
  grid-column: 1 / -1;
  text-align: center;
}

.kuhu-search-engine .kuhu-search-notice {
  margin: 0 auto 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: center;
}

.kuhu-search-engine .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .kuhu-search-engine .journey-stages {
    gap: 16px;
  }

  .kuhu-search-engine .search-results-list {
    grid-template-columns: 1fr;
  }

  .kuhu-search-engine .search-container {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kuhu-search-engine .stage-card,
  .kuhu-search-engine .stage-card::before,
  .kuhu-search-engine .dropdown-arrow,
  .kuhu-search-engine .storyline-wrapper,
  .kuhu-search-engine .search-input,
  .kuhu-search-engine .search-btn,
  .kuhu-search-engine .trend-pill,
  .kuhu-search-engine .search-result-item,
  .kuhu-search-engine .search-result-item svg {
    transition-duration: 0.01ms;
  }
}
