/* Collection Page Styles */

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.filter-tab.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
}

.filter-count {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.filter-tab.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Individual filter colors when active */
.filter-tab[data-filter="playing"].active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
}

.filter-tab[data-filter="backlog"].active {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}

.filter-tab[data-filter="completed"].active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.filter-tab[data-filter="wishlist"].active {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
}

/* Status Badge on Cards */
.collection-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.collection-status-badge.status-playing {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.collection-status-badge.status-backlog {
  background: rgba(251, 191, 36, 0.9);
  color: #000;
}

.collection-status-badge.status-completed {
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
}

.collection-status-badge.status-wishlist {
  background: rgba(236, 72, 153, 0.9);
  color: #fff;
}

/* Empty State */
.empty-state .browse-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.empty-state .browse-link:hover {
  background: #5558e3;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-tabs {
    gap: 6px;
    justify-content: center;
    overflow-x: visible;
  }

  .filter-tab {
    padding: 8px 10px;
    font-size: 0; /* Hide text */
  }

  .filter-tab svg {
    width: 16px;
    height: 16px;
  }

  .filter-count {
    font-size: 10px;
    padding: 2px 5px;
  }

  /* Show "All" text since it has no icon */
  .filter-tab[data-filter="all"] {
    font-size: 12px;
  }
}
