/*
  CUBE — Project List (feed style)
  Newest-first list of every project: thumbnail, title, description,
  tags, clickable creator. No ranking, no like/comment counts, no
  sort/category clutter — search only.
*/

/* ================================================
   HEADER
   ================================================ */
.pl-header {
  margin-bottom: 18px;
}

.pl-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #f2e9e9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pl-header p {
  color: rgba(242, 233, 233, 0.6);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ================================================
   SEARCH BAR
   ================================================ */
.pl-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.pl-search-input {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pl-search-input i {
  color: rgba(242, 233, 233, 0.4);
  font-size: 14px;
}

.pl-search-input input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  color: #f2e9e9;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.pl-search-input input::placeholder {
  color: rgba(242, 233, 233, 0.35);
}

.pl-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #a92d2d, #e31136);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.pl-search-btn:hover {
  filter: brightness(1.1);
}

.pl-clear-btn {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(242, 233, 233, 0.7);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pl-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================================================
   PROJECT FEED CARDS
   ================================================ */
.project-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-feed-card {
  display: flex;
  gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 17, 54, 0.3);
}

.pfc-thumb {
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.pfc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pfc-thumb .category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 13px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  backdrop-filter: blur(6px);
}

.category-completed {
  background: rgba(31, 157, 85, 0.85);
  color: #fff;
}

.category-ongoing {
  background: rgba(201, 131, 0, 0.85);
  color: #fff;
}

.pfc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pfc-title {
  font-size: 17px;
  font-weight: 700;
  color: #f2e9e9;
  text-decoration: none;
  margin-bottom: 6px;
}

.pfc-title:hover {
  color: #e31136;
}

.pfc-desc {
  font-size: 13px;
  color: rgba(242, 233, 233, 0.6);
  line-height: 1.6;
  margin-bottom: 10px;
}

.pfc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pfc-tags span {
  font-size: 11.5px;
  color: #e31136;
  background: rgba(227, 17, 54, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.pfc-creator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
  width: fit-content;
}

.pfc-creator img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pfc-creator span {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(242, 233, 233, 0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pfc-creator span i {
  color: #7ee0ff;
  font-size: 11px;
}

.pfc-creator:hover span {
  color: #fff;
}

/* ================================================
   PAGINATION
   ================================================ */
.pl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2e9e9;
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-btn:hover {
  background: rgba(227, 17, 54, 0.2);
}

.page-info {
  font-size: 13px;
  color: rgba(242, 233, 233, 0.6);
  font-weight: 600;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.pl-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(242, 233, 233, 0.5);
}

.pl-empty-state i {
  font-size: 36px;
  margin-bottom: 14px;
  opacity: 0.4;
}

.pl-empty-state h3 {
  font-size: 16px;
  color: #f2e9e9;
  margin-bottom: 6px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 700px) {
  .project-feed-card {
    flex-direction: column;
  }

  .pfc-thumb {
    flex: none;
    width: 100%;
  }
}
