/* Google Trends-inspired Blog Styling */
.trends-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-family: 'Google Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.trends-header {
  background: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trends-hero {
  margin-bottom: 30px;
}

.trends-title {
  font-size: 3.5rem;
  font-weight: 400;
  color: #202124;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.trends-subtitle {
  font-size: 1.2rem;
  color: #5f6368;
  margin: 0;
  font-weight: 400;
}

/* Search Section */
.search-section {
  margin: 30px 0;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 16px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  transition: box-shadow 0.2s ease;
}

.search-container:hover,
.search-container:focus-within {
  box-shadow: 0 2px 8px rgba(32,33,36,0.35);
}

.search-icon {
  font-size: 20px;
  color: #9aa0a6;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #202124;
  background: transparent;
  padding: 8px 0;
}

.search-input::placeholder {
  color: #9aa0a6;
}

.search-button {
  background: #4285f4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background: #3367d6;
}

/* Trending Topics */
.trending-topics {
  margin-top: 30px;
}

.trending-topics h3 {
  font-size: 1.1rem;
  color: #5f6368;
  margin-bottom: 15px;
  font-weight: 500;
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.topic-chip {
  background: #f1f3f4;
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.topic-chip:hover {
  background: #e8eaed;
  color: #202124;
  transform: translateY(-1px);
}

/* Filters Section */
.filters-section {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  font-size: 14px;
  color: #202124;
  background: white;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #4285f4;
}

/* Results Section */
.results-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8eaed;
}

.results-header h2 {
  font-size: 1.5rem;
  color: #202124;
  margin: 0;
  font-weight: 500;
}

.results-count {
  font-size: 14px;
  color: #5f6368;
}

/* Trends Grid */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.trend-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s ease;
  cursor: pointer;
}

.trend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

.card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trend-card:hover .card-image {
  transform: scale(1.05);
}

.trending-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ea4335;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.card-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.1rem;
  color: #202124;
  margin: 0 0 10px 0;
  font-weight: 500;
  line-height: 1.4;
}

.card-description {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
  color: #9aa0a6;
}

.views-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: #3367d6;
  text-decoration: underline;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #5f6368;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: #202124;
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trends-title {
    font-size: 2.5rem;
  }
  
  .trends-subtitle {
    font-size: 1rem;
  }
  
  .search-container {
    margin: 0 20px;
  }
  
  .filters-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .trends-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .results-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .trends-header {
    padding: 20px 15px;
  }
  
  .trends-title {
    font-size: 2rem;
  }
  
  .search-container {
    margin: 0 10px;
  }
  
  .topics-grid {
    gap: 8px;
  }
  
  .topic-chip {
    padding: 6px 12px;
    font-size: 13px;
  }
} 