@charset "UTF-8";

/* ===========================
   PAGE HERO (reutiliza de eventos)
   =========================== */

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--white);
}


/* ===========================
   ARTISTS GRID — SQUARE CARDS con hover de nombre
   =========================== */

.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.artist-grid-card {
  display: block;
  cursor: pointer;
}

/* Square image container */
.artist-grid-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.artist-grid-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.artist-grid-card:hover .artist-grid-img img {
  transform: scale(1.06);
  filter: brightness(0.55);
}

/* Overlay con el nombre — centrado */
.artist-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.artist-grid-card:hover .artist-grid-overlay {
  opacity: 1;
}



/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .artists-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .artist-grid-name { font-size: 15px; }

  /* En mobile no hay hover: mostrar el nombre siempre visible pero sutil */
  .artist-grid-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 55%,
      rgba(0,0,0,0.75) 100%
    );
    align-items: flex-end;
    padding: 14px;
  }
  .artist-grid-name {
    transform: none;
    font-size: 13px;
    text-align: center;
    width: 100%;
  }
}


/* ── Filter pills ─────────────────────────────────────────── */
.filters-section {
  padding: 14px 0 14px;
}

@media (min-width: 768px) {
  .filters-section {
    padding: 14px 0 14px;
  }
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-pill {
  padding: 8px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.filter-pill:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.active {
  background: rgba(167, 139, 250, 0.12);
  color: rgba(167, 139, 250, 0.95);
  border-color: rgba(167, 139, 250, 0.4);
}

.grid-empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 48px 16px;
  font-style: italic;
}


/* ── Hover overlay en cards de la grilla ─────────────────── */
.artist-grid-card {
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.artist-grid-card:hover {
  transform: translateY(-2px);
}

.artist-grid-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.artist-grid-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.artist-grid-card:hover .artist-grid-img img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.artist-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.artist-grid-card:hover .artist-grid-overlay {
  opacity: 1;
}

.artist-grid-overlay span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
/* ── Cards de artista: solo imagen, nombre en hover ── */
.artist-grid-card {
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.artist-grid-card:hover {
  transform: translateY(-2px);
}

.artist-grid-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}

.artist-grid-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.artist-grid-card:hover .artist-grid-img img {
  transform: scale(1.04);
  filter: brightness(0.5);
}

/* Overlay con nombre y género — aparece en hover */
.artist-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  gap: 6px;
}

.artist-grid-card:hover .artist-grid-overlay {
  opacity: 1;
}

.artist-grid-overlay-name {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── Skeleton loaders ─────────────────────────────────────── */
.artist-grid-card.skeleton {
  pointer-events: none;
}

.skeleton-block {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-line {
  display: block;
  height: 12px;
  margin: 6px 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 2px;
}

.skeleton-line--md { width: 60%; }
.skeleton-line--sm { width: 35%; height: 9px; }

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 400px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
