/* ==========================================================================
   TAXONOMY ARCHIVE - Modern Bootstrap-Style Design
   ========================================================================== */

.taxonomy-archive {
  padding: 0;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Hero Header - Compact with breathing room from main header */
.archive-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff8f5a 100%);
  padding: 24px 0 20px;
  margin-top: 24px;
  margin-bottom: 0;
  color: white;
  text-align: center;
}

.archive-header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.archive-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: white;
  line-height: 1.3;
}

.archive-description {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.4;
}

/* Filter Bar - Full Width Sticky */
.filter-bar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Input - Flex grow */
.filter-search {
  flex: 1;
  position: relative;
  min-width: 0;
}

.filter-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 48px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #212529;
  background: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.filter-search input::placeholder {
  color: #6c757d;
}

/* Dropdowns - Bootstrap style */
.filter-dropdowns {
  display: flex;
  gap: 12px;
}

.filter-select {
  height: 46px;
  padding: 0 36px 0 16px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #212529;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23343a40' d='M1.5 4L6 8.5 10.5 4'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  appearance: none;
  min-width: 140px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.filter-select:hover {
  border-color: #adb5bd;
}

/* Buttons */
.filter-submit {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, transform 0.1s ease;
  white-space: nowrap;
}

.filter-submit:hover {
  background: #e55a2b;
}

.filter-submit:active {
  transform: scale(0.98);
}

.filter-clear {
  height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.filter-clear:hover {
  color: #dc3545;
  background: #fee2e2;
  text-decoration: none;
}

/* Results Bar */
.results-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.95rem;
  color: #6c757d;
}

.results-count strong {
  color: #212529;
  font-weight: 600;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.active-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Recipe Grid Container */
.taxonomy-archive .container {
  max-width: 1200px;
  padding: 0 20px 60px;
}

.taxonomy-archive .recipe-grid {
  margin-top: 30px;
}

/* No Results */
.taxonomy-archive .no-recipes-message {
  background: white;
  border-radius: 16px;
  padding: 80px 40px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.taxonomy-archive .no-recipes-message .big-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}

.taxonomy-archive .no-recipes-message h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #212529;
}

.taxonomy-archive .no-recipes-message p {
  color: #6c757d;
  margin-bottom: 24px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #212529;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination a:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  text-decoration: none;
  color: #212529;
}

.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .filter-dropdowns {
    display: none;
  }
  
  .filter-form {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .archive-title {
    font-size: 1.6rem;
  }
  
  .archive-description {
    font-size: 1rem;
  }
  
  .archive-header {
    padding: 32px 0 24px;
  }
  
  .archive-header-content {
    padding: 0 16px;
  }
  
  .filter-form {
    padding: 12px 16px;
  }
  
  .filter-search input,
  .filter-submit {
    height: 44px;
  }
  
  .results-bar {
    padding: 16px 16px 0;
  }
  
  .taxonomy-archive .container {
    padding: 0 16px 40px;
  }
}

@media (max-width: 576px) {
  .filter-form {
    flex-wrap: wrap;
  }
  
  .filter-search {
    width: 100%;
    flex: none;
  }
  
  .filter-submit {
    flex: 1;
  }
  
  .filter-clear {
    padding: 0 12px;
  }
}
