/* =========================================
   TAGS PAGE — tags.css
   PERF: !important removidos, will-change, contain
   ========================================= */

.packs-section { padding: 20px 14px; }

/* ===== GRID DE CARDS ===== */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 0 20px;
}
@media (min-width: 600px)  { .packs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px)  { .packs-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1200px) { .packs-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

/* ===== CARD ===== */
.pack-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) {
  .pack-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(255, 95, 162, 0.2);
  }
  .pack-card:hover .pack-image-wrapper img { transform: scale(1.06); }
}
.pack-card:active { transform: scale(0.97); }

.pack-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  contain: strict;
}
.pack-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.32s ease;
}

.pack-info {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 44px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 70%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  z-index: 2;
}
.pack-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== NSFW OVERLAY ===== */
.pack-card.nsfw::after {
  content: "⚠ Conteúdo Sensível";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  color: #ff5fa2;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 3;
}

/* ===== ESTADOS VAZIOS ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #555;
  font-size: 0.9rem;
}
.empty-state span { display: block; font-size: 2rem; margin-bottom: 8px; }

/* ===== SKELETON ===== */
.skeleton-card {
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  will-change: background-position;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== LISTA DE TAGS — 2 COLUNAS NO MOBILE ===== */
@media (max-width: 768px) {
  .tags-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    flex-direction: unset !important;
  }
}
