/* Search Form Styles */
.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sovy-primary);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--sovy-light);
  color: var(--sovy-dark);
  transition: all 0.3s ease;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--sovy-secondary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-form .search-field::placeholder {
  color: var(--sovy-tertiary);
}

.search-form .search-submit {
  padding: 0.75rem 1.5rem;
  background: var(--sovy-primary);
  color: var(--sovy-light);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-form .search-submit:hover {
  background: var(--sovy-secondary);
  transform: translateY(-1px);
}

.screen-reader-text {
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Search Results Styles */
.search-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-results-section {
  margin-top: 2rem;
}

/* Results Count */
.search-results-info {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--sovy-light) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.results-count-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.results-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sovy-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  margin-top: 0;
}

.results-subtitle {
  font-size: 1.1rem;
  color: var(--sovy-tertiary);
  margin: 0;
  font-weight: 400;
}

/* Results Grid */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Result Cards */
.search-result-card {
  background: var(--sovy-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.search-result-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.search-result-inner {
  padding: 2rem;
  height: 100%;
  box-sizing: border-box;
}

.search-result-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.search-result-header {
  margin-bottom: 1.5rem;
}

.search-result-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.search-result-title a {
  color: var(--sovy-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-title a:hover {
  color: var(--sovy-primary);
}

.search-result-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sovy-tertiary);
  margin-bottom: 2rem;
  flex: 1;
}

.search-result-excerpt:empty,
.search-result-excerpt p:empty {
  display: none;
}

.search-result-excerpt p {
  margin: 0;
}

/* Result Footer */
.search-result-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
  margin-top: auto;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.posted-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--sovy-tertiary) !important;
}

.posted-date i {
  color: var(--sovy-primary);
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--sovy-tertiary);
}

.post-tags i {
  color: var(--sovy-primary);
  font-size: 0.9rem;
}

.read-more {
  margin-top: 1rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sovy-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-link:hover {
  background: var(--sovy-primary);
  color: var(--sovy-light);
  transform: translateX(4px);
}

.read-more-link i {
  transition: transform 0.3s ease;
}

.read-more-link:hover i {
  transform: translateX(2px);
}

/* Pagination */
.search-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* No Results Styles */
.no-results-wrapper {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-results-icon {
  font-size: 4rem;
  color: var(--sovy-primary);
  margin-bottom: 2rem;
}

.no-results-title {
  font-size: 1.8rem;
  color: var(--sovy-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-results-description {
  color: var(--sovy-tertiary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.no-results-wrapper .search-form-section {
  margin-top: 2rem;
  margin-bottom: 0;
}

.no-results-wrapper .search-form-container {
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-page-wrapper {
    padding: 1rem;
  }

  .results-title {
    font-size: 1.8rem;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .search-result-inner {
    padding: 1.5rem;
  }

  .search-result-title {
    font-size: 1.3rem;
  }

  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .results-title {
    font-size: 1.5rem;
  }

  .search-result-inner {
    padding: 1rem;
  }

  .search-results-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}
