/* Collections Screen Styles */
.collections-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .875rem;
}

.btn-col-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  height: 36px;
  font-size: .8125rem;
  font-weight: 800;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .12s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-col-action:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-col-action:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-col-action .i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.collections-controls {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}

.collections-search-wrap {
  flex: 1;
}

.collections-sort-wrap {
  width: 140px;
  flex-shrink: 0;
}

.collections-sort {
  font-size: .75rem;
  font-weight: 700;
  padding: .375rem .5rem;
  height: 34px;
}

.collections-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .625rem;
  padding: 0 .25rem;
}

.collections-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  padding: .25rem;
}

@media (max-width: 1200px) {
  .collections-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.collection-card {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  padding: .75rem;
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .12s ease;
  min-width: 0;
}

.collection-card:hover {
  transform: translateY(-1px);
}

.col-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.col-card-title {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

.col-rename-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s ease;
}

.col-rename-btn:hover {
  background: var(--purple-hover);
}

.col-rename-btn .i {
  width: 13px;
  height: 13px;
}

.col-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
  font-size: .6875rem;
  color: var(--gray);
  font-weight: 600;
}

.col-card-kw {
  font-style: italic;
  color: var(--ink);
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 4px;
}

.col-card-actions {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px dashed rgba(29, 29, 29, 0.2);
}

.col-card-actions .btn-sm {
  height: 28px;
  padding: 0 .5rem;
  font-size: .6875rem;
  border-radius: 8px;
  font-weight: 800;
}

.col-card-actions .btn-sm .i {
  width: 12px;
  height: 12px;
}

.col-card-actions .btn-edit {
  background: #fef08a;
  color: #854d0e;
  border-color: #854d0e;
}

.col-card-actions .btn-edit:hover {
  background: #fde047;
}

.col-empty {
  padding: 1.5rem 1rem;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.5;
}

/* Big Category Tab Boxes */
.collections-category-bar {
  display: flex;
  margin-bottom: 1rem;
}

.col-cat-group {
  display: flex;
  gap: .625rem;
  width: 100%;
}

.col-cat-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 48px;
  padding: .5rem 1rem;
  font-size: .9375rem;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.col-cat-btn .i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.col-cat-btn:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
  box-shadow: 3.5px 3.5px 0 var(--ink);
}

.col-cat-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.col-cat-btn.active {
  background: var(--lime);
}

.col-cat-btn[data-cat="verified"].active {
  background: #86efac;
}

.col-cat-btn[data-cat="unverified"].active {
  background: var(--lavender);
}

.col-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: .75rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--ink);
}
