/**
 * Clean Search Results Page Styles
 */

/* Search Page Layout */
.search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.search-container {
  width: 100%;
}

.search-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--light-gray);
}

.search-title {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  line-height: 1.3;
}

.search-query {
  color: var(--primary-color);
  font-weight: 700;
}

.search-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

.search-count i {
  font-size: 0.8rem;
}

/* Search Layout */
.search-layout {
  display: block;
  width: 100%;
}

/* Results Grid */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Result Cards */
.result-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.card-wrapper {
  display: flex;
  height: 200px;
}

.card-image {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-card:hover .card-image::after {
  opacity: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.result-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-categories {
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  color: white;
}

.card-title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-meta {
  margin-bottom: var(--spacing-md);
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.card-excerpt {
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.card-excerpt p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  color: white;
}

/* No Results Section */
.no-results {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  margin: var(--spacing-xl) 0;
}

.no-results-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg) auto;
  position: relative;
}

.no-results-icon::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.1;
  z-index: -1;
}

.no-results-icon i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.no-results > p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.suggestions {
  background: #f8f9fa;
  padding: var(--spacing-lg);
  border-radius: 12px;
  margin-bottom: var(--spacing-lg);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #e9ecef;
}

.suggestions p {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.suggestions ul {
  margin: 0;
  padding-left: var(--spacing-md);
  color: var(--text-light);
}

.suggestions li {
  margin-bottom: 6px;
  position: relative;
}

.suggestions li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: 600;
  position: absolute;
  left: -16px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-page {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .search-title {
    font-size: 1.8rem;
  }

  .card-wrapper {
    flex-direction: column;
    height: auto;
  }

  .card-image {
    width: 100%;
    height: 200px;
  }

  .card-content {
    padding: var(--spacing-md);
  }

  .card-title {
    font-size: 1.2rem;
  }

  .no-results {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .no-results h2 {
    font-size: 1.6rem;
  }

  .no-results-icon {
    width: 80px;
    height: 80px;
  }

  .no-results-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .search-title {
    font-size: 1.5rem;
  }

  .card-categories {
    margin-bottom: var(--spacing-xs);
  }

  .category-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .read-more-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
