:root {
  --primary: #6db99f;
  --secondary: #f2f7f5;
  --text: #333;
  --accent: #a3d2ca;
  --tag-bg: #f4f4f4; /* Lighter tag background */
  --tag-text: #2e325c; /* Slightly less intense tag text */
  --border-light: #ccc;
  --border-hover: #999;
  --dropdown-shadow: rgba(0, 0, 0, 0.1);
  --tag-stroke: #c1bdbd; /* New variable for a dark stroke color */
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--secondary);
  color: var(--text);
}

.search-filter-container {
  position: relative;
  max-width: 400px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 20px;
}

.search-filter-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  cursor: text;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-filter-input.focused {
  border-color: var(--border-hover);
  box-shadow: 0 0 10px var(--dropdown-shadow);
  background-color: #fafafa;
}

.search-filter-input input {
  border: none;
  outline: none;
  flex: 1 1 auto;
  min-width: 100px;
  font-size: 0.9rem;
  padding: 3px 5px;
  background: transparent;
  color: var(--text);
}

.tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #e6ecff;
}

.tag .remove-btn {
  margin-left: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
  transition: color 0.2s ease;
}

.tag .remove-btn:hover {
  color: #667eea;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px var(--dropdown-shadow);
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  user-select: none;
}

.dropdown.open {
  display: block;
}

.dropdown h4 {
  margin: 10px 16px 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  user-select: text;
}

.dropdown ul {
  list-style: none;
  padding: 0 16px 10px;
  margin: 0;
}

.dropdown ul li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
  color: var(--text);
}

.dropdown ul li:hover,
.dropdown ul li:focus {
  background-color: #f5f8ff;
  outline: none;
}

---

/* --- UPDATED CSS FOR CENTERING THE NO RESULTS MESSAGE CONTAINER WITHIN A GRID --- */
.articles {
  /* Keep your existing grid properties for when articles are displayed */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Example grid settings */
  gap: 20px; /* Example gap */
  min-height: 400px; /* Essential for vertical centering to have a height reference */
  align-items: center; /* Vertically centers grid items */
  justify-items: center; /* Horizontally centers grid items within their tracks */
  /* Using 'place-items: center;' is a shorthand for both align-items and justify-items */
}

.no-results-visual {
  text-align: center;
  padding: 30px;
  margin-top: 30px; /* Keep margin-top if you want space from above elements */
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex; /* Keep flex for content inside no-results-visual */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  color: var(--text);
  max-width: 80%; /* Limit its width to 80% of its parent */
  box-sizing: border-box;

  /* If the parent is a grid, these help span columns and align */
  grid-column: 1 / -1; /* Make it span all columns */
  justify-self: center; /* Center itself horizontally within its grid area */
  align-self: center; /* Center itself vertically within its grid area */
}

.no-results-visual .message-text {
  font-size: 1.4rem; /* Increased text size */
  margin-bottom: 20px;
  color: #555;
  font-weight: 600;
}

.no-results-image {
  width: 200px; /* Increased image width */
  height: 200px; /* Increased image height */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}