
/* Floating top bar search */
.topbar-search-wrapper {
  position: relative;
  z-index: 50;
}

.topbar-search {
  position: absolute;
  top: 65px;
  right: 30px;
  background: white;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.topbar-search.show {
  display: block;
}

.topbar-search input {
  width: 300px;
  max-width: 100vw;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.topbar-search button {
  padding: 9px 18px;
  border: 1px solid #ddd;
  background: #2ea3f2;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Toggle button for mobile/compact header */
.toggle-topbar-search {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .toggle-topbar-search {
    display: block;
  }
  .topbar-search {
    position: static;
    display: none;
    width: 100%;
  }
  .topbar-search.show {
    display: block;
  }
}

/* Tag filter buttons */
.filters {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-btn {
  padding: 4px 10px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.filter-btn:hover { background: #eef; }
.filter-btn.active { background: #2ea3f2; color: #fff; border-color: #2ea3f2; }

/* Posts grid & cards */
.post-card, .post-summary {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.post-card h2, .post-summary h2 { font-size: 18px; }
.post-excerpt { line-height: 1.5; }
.read-more-expanded .post-excerpt { white-space: pre-wrap; }

/* Tag badges */
.post-tags { margin-top: 8px; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f3f3f3;
  margin-right: 4px;
  margin-bottom: 4px;
}
