/* Search Page Styles */
.search-container {
    margin: 20px auto 40px;
}

/* Search Section */
.search-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: color-mix(in srgb, var(--ghost-accent-color) 12%, white);
  border: 1px solid #ddd;
  text-align: center;
}

.search-title {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.75rem;
  font-weight: 700;
}

.search-description {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Search Bar */
.search-bar-wrapper {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.search-bar:focus-within,
.search-bar:hover {
  border-color:  color-mix(in srgb, var(--ghost-accent-color) 70%, white);
  outline: 0;
}

.search-bar .search-icon {
  margin-left: 1rem;
  color: #666;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  padding: 1rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: 0;
}

.search-input::placeholder {
  color: #999;
}

.search-help {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Browse Tags */
.browse-tags {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.tags-grid {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.tag-link {
  display: block;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.tag-link:focus,
.tag-link:hover {
  background: #e9e9e9;
  color: #000;
  border-color: #bbb;
}

/* Featured Content */
.featured-content {
  margin-bottom: 3rem;
}

.featured-posts {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-posts li {
  display: block;
  padding: 0;
  background: #fff;
  border: 1px solid #ddd;
  transition: border-color 0.2s;
}

.featured-posts li:hover {
  border-color: #bbb;
  background: #fafafa;
}

.featured-post {
  display: block;
  padding: 0.8rem 1rem 0.8rem;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ghost-accent-color);
}

.featured-post-meta {
  font-size: 0.95rem;
  color: #666;
  padding: 0 1rem 0.8rem;
}

/* Search Tips */
.search-tips {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 2rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 16px;
}

.tips-list li:last-child {
  border-bottom: none;
}
