/* ── Snêk Smart Filter – Frontend ─────────────────────── */

.snek-filter-wrap {
  font-family: inherit;
  margin: 0 0 2.5rem;
}

.snek-filter-heading {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 .25rem;
  color: inherit;
}

.snek-filter-desc {
  font-size: .95rem;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* ── Filter groups ─────────────────────────── */
.snek-filter-group {
  margin-bottom: 1rem;
}

.snek-filter-group-label {
  font-size: 12px;
	font-family: "Montserrat", Sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  color: #3A3531;
  margin-bottom: .4rem;
}

.snek-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Buttons ────────────────────────────────── */
.snek-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .875rem;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: none;
	border-color:#DFE4E2;
  background: #DFE4E2;
  color: #3A3531;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.4;
  font-family: inherit;
}

.snek-btn:hover {
  background: #f5f5f3;
  color: #222;
  border-color: #aaa;
}

.snek-btn.active {
  background: #3C3489;
  color: #EEEDFE;
  border-color: #3C3489;
}

.snek-btn.snek-reset-btn {
  background: transparent;
  color: #555;
  border-color: #ddd;
  font-size: .8rem;
  padding: 4px 12px;
}

.snek-btn.snek-reset-btn:hover {
  color: #222;
  border-color: #aaa;
}

/* ── Divider ─────────────────────────────────── */
.snek-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 1.25rem 0;
}

/* ── Filter bar (pills + reset) ──────────────── */
.snek-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.snek-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.snek-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  background: #EEEDFE;
  color: #3C3489;
  border: 1px solid #AFA9EC;
}

.snek-pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #534AB7;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

.snek-pill-remove:hover {
  color: #26215C;
}

/* ── Meta row ─────────────────────────────────── */
.snek-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: #888;
  margin-top: .75rem;
  min-height: 24px;
}

.snek-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #3C3489;
  border-radius: 50%;
  animation: snek-spin .7s linear infinite;
}

@keyframes snek-spin { to { transform: rotate(360deg); } }

/* ── Grid ─────────────────────────────────────── */
.snek-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .snek-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .snek-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── Card ─────────────────────────────────────── */
.snek-card {
  background: #e2e3db;
  border: none;
  border-radius: 0px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.snek-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.snek-card-link {
  display: block;
  text-decoration: none;
}

.snek-card-img {
  width: 100%;
  height: 160px!important;
  object-fit: cover;
  display: block;
}

.snek-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: #f5f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.snek-card-body {
  padding: 20px 30px 20px 30px;
}

.snek-card-title {
  font-size: 23px!important;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.3;
}

.snek-card-title a {
  color: inherit;
  text-decoration: none;
}

.snek-card-title a:hover {
  color: #3A3531;
}

.snek-card-excerpt {
  font-size: 14px;
  color: #3A3531;
  margin: 0 0 8px;
  line-height: 1.5;
}

.snek-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.snek-tag {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius:0px;
  background: #EEEDFE;
  color: #3A3531;
  border: 1px solid #AFA9EC;
}

/* ── No results ────────────────────────────────── */
.snek-no-results {
  font-size: .95rem;
  color: #888;
  padding: 2rem 0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .snek-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .snek-card-img,
  .snek-card-img-placeholder {
    height: 120px;
  }
  .snek-filter-buttons {
    gap: 6px;
  }
  .snek-btn {
    font-size: .8rem;
    padding: 5px 12px;
  }
}
