/* Gallery & Labels Layout */

/* ==========================================================================
   GALLERY FILTERS & CONTROLS
   ========================================================================== */
.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text-bright);
}
.filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 176, 65, 0.35);
}

.search-bar-wrap {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 46px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 176, 65, 0.2);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   MASONRY ART GALLERY GRID
   ========================================================================== */
.art-grid {
  columns: 4 280px;
  column-gap: 20px;
  margin-bottom: 50px;
}

.pagination-wrap [hidden] { display: none; }

.art-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}
.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.art-card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-normal);
  background: #0a0b10;
}
.art-card:hover .art-card-img {
  transform: scale(1.03);
}

.art-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 9, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: var(--transition-fast);
}
.art-card:hover .art-card-overlay,
.art-card:focus-visible .art-card-overlay {
  opacity: 1;
}
.art-card:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.art-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}
.art-card-cat {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pagination-wrap {
  text-align: center;
  margin-top: 30px;
}

/* ==========================================================================
   RETRO GAME LABELS GALLERY & PACKS
   ========================================================================== */
.label-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.pack-card {
  background: linear-gradient(135deg, #12141f 0%, #0d0e17 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}
.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}
.pack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pack-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
}
.pack-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Labels Grid */
.labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.label-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}
.label-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-sm);
}
.label-thumb-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}
.label-thumb-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: var(--transition-fast);
}
.label-card:hover .label-thumb-wrap img {
  transform: scale(1.08);
}
.label-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.label-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.label-console-tag {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}
.label-dl-btn {
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   EMPTY SEARCH & FILTER STATES
   ========================================================================== */
.empty-state {
  column-span: all;
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  margin: 30px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty-state-icon {
  font-size: 3rem;
  line-height: 1;
}
.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
}
.empty-state-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 440px;
  line-height: 1.6;
}
