:root {
  --primary: #000000;
  --secondary: #ffffff;
  --text: #1a1a1a;
  --accent: #f5f5f5;
  --tag-bg: #f8f8f8;
  --tag-text: #4a4a4a;
  --border-light: #e8e8e8;
  --border-hover: #d0d0d0;
  --dropdown-shadow: rgba(0, 0, 0, 0.08);
  --tag-stroke: #e0e0e0;
  --focus-accent: #000000;
  --text-muted: #8a8a8a;
}

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

.search-filter-container {
  position: relative;
  max-width: 600px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0 auto 3rem auto;
  padding: 0 20px;
}

.search-filter-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 64px;
  padding: 20px 24px 20px 0;
  border: none;
  border-bottom: 2px solid var(--border-light);
  border-radius: 0;
  cursor: text;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.search-filter-input::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8a8a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.search-filter-input.focused::before {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000000' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E");
  transform: translateY(-50%) scale(1.1);
}


.search-filter-input.focused {
  border-bottom-color: var(--focus-accent);
  background: var(--secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.search-filter-input input {
  border: none;
  outline: none;
  flex: 1 1 auto;
  min-width: 150px;
  font-size: 18px;
  padding: 8px 0 8px 32px;
  background: transparent;
  color: var(--text);
  font-weight: 300;
  position: relative;
  z-index: 2;
  text-align: left;
  font-family: inherit;
  letter-spacing: -0.02em;
}

.search-filter-input input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.01em;
}

.tag {
  background: var(--secondary);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  user-select: none;
  box-shadow: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.tag:hover {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.tag .remove-btn {
  margin-left: 8px;
  cursor: pointer;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  user-select: none;
  transition: all 0.2s ease;
  color: var(--text-muted);
  border-radius: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.tag .remove-btn:hover {
  color: var(--primary);
  background: transparent;
  transform: scale(1.1);
}

.tag-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: inherit;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Target Lucide SVG icons within tag icons */
.tag-icon svg {
  width: 14px;
  height: 14px;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}

.tag-text {
  flex: 1;
  white-space: nowrap;
}

.tag:hover .tag-icon {
  transform: scale(1.1);
}

.tag:hover .tag-icon svg {
  transform: scale(1.1);
}

.remove-icon {
  width: 12px;
  height: 12px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Target Lucide SVG icons within remove buttons */
.remove-icon svg {
  width: 12px;
  height: 12px;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}


/* Ensure icons are visible */
.tag-icon,
.remove-icon {
  min-width: 14px;
  min-height: 14px;
  opacity: 1;
  visibility: visible;
}

.remove-icon {
  min-width: 12px;
  min-height: 12px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background: var(--secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  user-select: none;
}

.dropdown.open {
  display: block;
}

.dropdown h4 {
  margin: 20px 24px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown ul {
  list-style: none;
  padding: 0 24px 20px;
  margin: 0;
}

.dropdown ul li {
  padding: 16px 0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  position: relative;
  font-weight: 400;
  letter-spacing: 0;
  border-bottom: 1px solid var(--accent);
}

.dropdown ul li:hover,
.dropdown ul li:focus {
  background: var(--accent);
  color: var(--primary);
  transform: translateX(4px);
  outline: none;
  font-weight: 500;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  color: inherit;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Target Lucide SVG icons within dropdown icons */
.dropdown-icon svg {
  width: 16px;
  height: 16px;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}

.dropdown-text {
  flex: 1;
  white-space: nowrap;
}

---

/* --- 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: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex; /* Keep flex for content inside no-results-visual */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  color: white;
  max-width: 80%; /* Limit its width to 80% of its parent */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;

  /* 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:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(74, 85, 104, 0.4),
    0 4px 15px rgba(45, 55, 72, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.no-results-visual .message-text {
  font-size: 1.4rem; /* Increased text size */
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.no-results-image {
  width: 200px; /* Increased image width */
  height: 200px; /* Increased image height */
  border-radius: 50%;
  object-fit: contain; /* Changed from cover to contain to show more of the image */
  object-position: center; /* Center the image within the container */
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.1); /* Add a subtle background in case image doesn't fill completely */
  position: relative;
  z-index: 1;
}

/* Portfolio page instruction text styling */
section p[style*="text-align: center"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}
