/**
 * Luxury Blog Styles
 * Search, tags, and blog card styling
 */

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  border: 2px solid rgba(254, 166, 209, 0.3);
  border-radius: 30px;
  background: white;
  color: #2B1F2A;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(254, 166, 209, 0.1);
}

.search-input:hover {
  border-color: #FEA6D1;
  box-shadow: 0 3px 10px rgba(254, 166, 209, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: #FEA6D1;
  box-shadow: 0 0 0 4px rgba(254, 166, 209, 0.15);
}

.search-input::placeholder {
  color: #999;
  font-size: 0.9rem;
}

.result-count {
  color: #2B1F2A;
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-top: 1rem;
  opacity: 0.7;
}

/* Filter and Search Layout */
.filter-search-container {
  display: flex;
  gap: 4rem;
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border: 2px solid rgba(254, 166, 209, 0.2);
  border-radius: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(254, 166, 209, 0.08);
}

@media (max-width: 968px) {
  .filter-search-container {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
    margin: 2rem 0;
  }
}

/* Tag Section */
.tag-section {
  flex: 1.5;
}

.tag-section h3,
.search-section h3 {
  color: #2B1F2A;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Search Section */
.search-section {
  flex: 1;
  max-width: 400px;
}

.tag-cloud {
  margin-bottom: 0;
}

/* Tag Categories */
.tag-category {
  margin-bottom: 0.75rem;
}

.tag-category-title {
  display: none;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.tag-btn {
  padding: 0.5rem 0.9rem;
  background: white;
  border: 1.5px solid #e5e5e5;
  border-radius: 25px;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tag-btn:hover {
  border-color: #FEA6D1;
  color: #2B1F2A;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(254, 166, 209, 0.15);
}

.tag-btn.active {
  background: #FEA6D1;
  border-color: #FEA6D1;
  color: white;
  box-shadow: 0 2px 6px rgba(254, 166, 209, 0.3);
}

.tag-count {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Inactive tags with 0 posts */
.tag-btn.tag-inactive {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: dashed;
}

.tag-btn.tag-inactive:hover {
  transform: none;
  border-color: #ddd;
  color: #666;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0 3rem 0;
}

.blog-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #f5f5f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(254, 166, 209, 0.15);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-date {
  color: #aaa;
  font-weight: 500;
}

.blog-source {
  color: #FEA6D1;
  font-weight: 600;
}

.blog-card h3 {
  color: #2B1F2A;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 600;
}

.blog-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Post Tags in Cards */
.blog-tags, .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.tag, .post-tag {
  padding: 0.3rem 0.75rem;
  background: rgba(254, 166, 209, 0.08);
  border: 1px solid rgba(254, 166, 209, 0.2);
  border-radius: 20px;
  color: #2B1F2A;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover, .post-tag:hover {
  background: rgba(254, 166, 209, 0.2);
  border-color: rgba(254, 166, 209, 0.4);
  color: #2B1F2A;
}

.read-more {
  color: #FEA6D1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}

.read-more:hover {
  gap: 0.6rem;
  color: #2B1F2A;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.no-results p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Blog Filter (existing categories) */
.blog-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #FEA6D1;
  color: #2B1F2A;
}

.filter-btn.active {
  background: #FEA6D1;
  border-color: #FEA6D1;
  color: white;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-number {
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover {
  border-color: #FEA6D1;
  color: #FEA6D1;
}

.page-number.active {
  background: #FEA6D1;
  border-color: #FEA6D1;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .result-count {
    text-align: center;
  }

  .tag-cloud {
    justify-content: center;
  }

  .blog-filter {
    justify-content: center;
  }
}