/* ============ SEARCH PAGE ============ */

/* SEARCH HERO */
.search-hero {
  background: var(--bg-soft);
  padding: 70px 0 50px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.search-hero > .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.search-bar {
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.search-input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #DCDDE0;
  background: #fff;
  padding: 0 50px 0 22px;
  font-family: inherit;
  font-size: 14px;
  color: #1A1A22;
  outline: none;
}
.search-input::placeholder {
  color: #9A9AA0;
}
.search-go {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-chips {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.chip {
  background: #fff;
  border: 1px solid #DCDDE0;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  color: #1A1A22;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.chip:hover {
  background: var(--purple);
  color:white;
}
.chip.active {
  background: #1A1A22;
  color: #fff;
  border-color: #1A1A22;
}

/* RESULTS */
.search-results {
  padding: 50px 0;
  background: var(--bg-soft);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.search-results > .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.results-header {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-bottom: 16px;
  border-bottom: 1px solid #DCDDE0;
  margin-bottom: 30px;
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.result-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.result-icon {
  width: 22px;
  height: 22px;
  background: var(--purple);
  clip-path: polygon( 0 28%, 0 72%, 30% 100%, 50% 86%, 70% 100%, 100% 72%, 100% 28%, 70% 0, 50% 14%, 30% 0 );
  margin-top: 4px;
}
.result-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1A1A22;
  cursor: pointer;
}
.result-content h3:hover {
  color: var(--purple);
}
.result-url {
  font-size: 12px;
  color: #2A8F5F;
  font-style: italic;
  text-decoration: underline;
  margin-bottom: 8px;
  display: block;
}
.result-content p {
  font-size: 13px;
  color: #3A3A3E;
  line-height: 1.65;
  max-width: 780px;
}

/* PAGINATION */
.search-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 50px;
  padding-bottom: 10px;
}
.search-pagination a {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A22;
  padding: 4px 8px;
}
.search-pagination a.arrow {
  color: var(--purple);
  font-size: 16px;
}
.search-pagination a.current {
  color: var(--purple);
  text-decoration: underline;
  font-weight: 700;
}

/* WORKSHOP */
.search-workshop {
  background: linear-gradient(110deg, #9B6FD1 0%, #8B7BD0 30%, #6BB0C2 70%, #4DC4B5 100%);
  padding: 70px 0;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}
.search-workshop > .container,
.search-workshop .search-workshop-inner {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.search-workshop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.search-workshop h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.search-workshop > div > p {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 430px;
}
.search-workshop-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ws-card {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ws-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ws-text h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ws-text p {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .search-workshop-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .search-workshop h2 {
    font-size: 36px;
  }
  .filter-chips {
    gap: 8px;
  }
}
