/* Blog-specific styles that extend category.css */

/* Blog Header - Different from category header */
.blog-header {
  background: linear-gradient(
    to right,
    var(--pet-cream),
    rgba(227, 132, 69, 0.1)
  );
  padding: 4rem 1rem;
}

.blog-header-container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.blog-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.blog-title-highlight {
  color: var(--pet-orange);
  font-family: "Caveat", cursive;
}

.blog-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* FAQ Section - Styles moved to main style.css for reusability */

/* Advanced Filters Styles */
.advanced-filters {
  width: 100%;
}

/* Mobile Filter Button */
.mobile-filter-button {
  display: block;
  width: 100%;
}

@media (min-width: 1024px) {
  .mobile-filter-button {
    display: none;
  }
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-toggle-btn:hover {
  background: var(--pet-cream);
  color: var(--pet-orange);
}

.filter-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.filter-count {
  background: var(--pet-orange);
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Desktop Filters */
.desktop-filters {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-filters {
    display: block;
    width: 100%;
  }
}

.filter-section {
  background: rgba(248, 242, 227, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.filter-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pet-brown);
  text-align: center;
  margin-bottom: 1rem;
}

.clear-filters-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.clear-filters-btn:hover {
  background: var(--pet-cream);
  color: var(--pet-orange);
}

.clear-filters-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter Categories */
.filter-categories {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .filter-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.filter-category-group {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  overflow: hidden;
  transition: all 0.2s;
}

.filter-category-group:hover {
  background: rgba(248, 242, 227, 0.2);
}

.filter-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-category-header:hover {
  background: rgba(248, 242, 227, 0.3);
}

.filter-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pet-brown);
  margin: 0;
}

.category-toggle-icon {
  width: 1rem;
  height: 1rem;
  color: var(--pet-brown);
  transition: transform 0.2s;
}

.filter-category-content {
  padding: 0 1rem 1rem;
  max-height: 12rem;
  overflow-y: auto;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.filter-option:hover .filter-label {
  color: var(--pet-orange);
}

.filter-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pet-orange);
  cursor: pointer;
}

.filter-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s;
}

.filter-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: rgba(248, 242, 227, 0.5);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Active Filter Tags Section */
.active-filters-section {
  padding: 0 1rem 1.5rem;
  background: var(--background);
}

.active-filters-container {
  max-width: 80rem;
  margin: 0 auto;
}

.active-filters-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.active-filters-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(227, 132, 69, 0.1);
  color: var(--pet-orange);
  border: 1px solid rgba(227, 132, 69, 0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.remove-filter-btn {
  background: none;
  border: none;
  color: var(--pet-orange);
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transition: color 0.2s;
}

.remove-filter-btn:hover {
  color: var(--pet-brown);
}

.remove-filter-btn i {
  width: 0.75rem;
  height: 0.75rem;
}

.clear-all-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.clear-all-btn:hover {
  color: var(--foreground);
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-content {
  background: var(--background);
  width: 18.75rem;
  max-width: 90vw;
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-filter-overlay.active .mobile-filter-content {
  transform: translateX(0);
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--pet-cream);
}

.mobile-filter-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pet-brown);
  margin: 0;
}

.close-mobile-filters {
  background: none;
  border: none;
  color: var(--pet-brown);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.close-mobile-filters:hover {
  background: rgba(111, 86, 68, 0.1);
}

.close-mobile-filters i {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-filter-body {
  padding: 1rem;
}

.mobile-filter-body .clear-filters-btn {
  margin-bottom: 1rem;
}

.mobile-filter-body .filter-categories {
  grid-template-columns: 1fr;
}

.mobile-filter-body .filter-category-group {
  margin-bottom: 1rem;
}

/* Blog-specific responsive styles */
@media (max-width: 640px) {
  .blog-title {
    font-size: 2rem;
  }

  .blog-description {
    font-size: 1rem;
  }
}
