.post-browser-container h3 {
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text) !important;
}
.post-browser-container h3 i {
  color: var(--color-warning);
}
.all-posts {
  margin-top: 30px;
}

.post-filters {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
}
.post-filters i {
  color: var(--color-primary);
}
.post-filters .search-box input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid var(--color-input-border);
  background-color: var(--color-input-bg);
  color: var(--color-text);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: none !important;
}

.post-filters .search-box input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(43, 245, 152, 0.2);
  outline: none;
}

.post-filters .category-list {
  margin-top: 20px;
}

.post-filters .category-list p {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-muted-text);
}
.post-filters .category-list .grid-cat {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.post-filters .category-list button.category-filter {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
  color: var(--color-text);
  margin: 0;
  min-height: unset;
  line-height: unset;
}

.post-filters .category-list button.category-filter:hover {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

.post-filters .category-list button.category-filter.active {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: bold;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.post-card .card-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.post-card .popular-badge {
  background-color: var(--color-warning);
  color: #000;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  display: flex;
  align-items: center;
  width: fit-content;
}

.post-card .card-header .card-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted-text);
  margin-bottom: 10px;
  display: flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.post-card .card-title {
  font-size: 18px;
  margin: 0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.post-card .card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.post-card .card-title a:hover {
  color: var(--color-accent);
}

.post-card .card-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--color-muted-text);
  margin-bottom: 20px;
}

.post-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card .download-button {
  margin: 0;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: #fff ;
  border-radius: 6px;
  text-align: center;
  padding: 8px 12px;
  font-weight: bold;
  transition: all 0.3s;
  border: none;
  text-transform: none;
}

.post-card .download-button:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ux-loading-spin {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

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