/* =============================================================================
 * feed.css — Feed list page styles
 * ============================================================================= */

/* Feed header */
.feed-header {
  padding: 32px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.feed-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.stats-bar .stat {
  display: flex;
  gap: 4px;
}

.stats-bar .value {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Feed controls */
.feed-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

/* Search */
.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 36px 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.search-bar input:focus { border-color: #4a9eff; }
.search-bar input::placeholder { color: rgba(255,255,255,0.25); }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  display: none;
  font-family: inherit;
}

.search-clear:hover { color: rgba(255,255,255,0.7); }

/* Sort */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sort-label {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-right: 4px;
}

.sort-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.sort-btn:hover {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

.sort-btn.active {
  color: #4a9eff;
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.06);
}

/* Active filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 14px;
  font-size: 12px;
  color: #4a9eff;
  line-height: 1;
}

.filter-chip .chip-label {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
}

.filter-chip .chip-dismiss {
  background: none;
  border: none;
  color: rgba(74,158,255,0.6);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.filter-chip .chip-dismiss:hover {
  color: #fff;
}

/* New posts bar */
.new-posts-bar {
  text-align: center;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(74,158,255,0.06);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 8px;
  color: #4a9eff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.new-posts-bar:hover { background: rgba(74,158,255,0.1); }

/* Feed */
.feed { padding: 8px 0; }

/* Infinite scroll loader */
.feed-loader {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #4a9eff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
  .feed-controls {
    flex-direction: column;
    gap: 12px;
  }

  .search-bar { width: 100%; }
  .sort-bar { align-self: flex-start; }
  .feed-header h1 { font-size: 20px; }
}
