/* ========== MY ALBUMS PAGE STYLES ========== */
/* Extracted from BonzaUI my-albums.html */

/* ========== ALBUMS CONTENT ========== */
.albums-content {
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 100%;
}

/* ========== SEARCH + CREATE TOOLBAR ========== */
.albums-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.albums-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  padding: 8px 16px 8px 8px;
}

.albums-search img {
  width: 16px;
  height: 16px;
  filter: invert(1);
  opacity: 0.7;
}

.albums-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-family: 'Heebo', sans-serif;
}

.albums-search input::placeholder {
  color: var(--neutral-500);
}

.btn-create-album {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px 6px 10px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 20px rgba(255,255,255,0.56);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Heebo', sans-serif;
}

.btn-create-album:hover {
  background: #f0f0f0;
}

.btn-create-album img {
  width: 20px;
  height: 20px;
}

/* ========== CHARACTER FILTER PILLS ========== */
.albums-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-600);
  border-radius: 40px;
  padding: 4px 20px;
  height: 48px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}

.filter-pill:hover {
  background: var(--neutral-700);
}

.filter-pill.active {
  background: #fff;
  border-color: #fff;
}

.filter-pill.active .filter-pill-name {
  color: #000;
}

.filter-pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.filter-pill-name {
  font-size: 14px;
  color: var(--neutral-400);
  line-height: 20px;
}

.filter-pill.active .filter-pill-name {
  color: #000;
}

.filter-pill-count {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-600);
  border-radius: 40px;
  padding: 4px 20px;
  height: 48px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill-count:hover {
  background: var(--neutral-700);
}

.filter-pill-count .filter-pill-name {
  color: var(--neutral-400);
  font-size: 14px;
}

.count-badge {
  background: var(--neutral-400);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 14px;
}

.filter-pill-add {
  border: 1px dashed var(--neutral-600);
  border-radius: 40px;
  padding: 4px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s;
}

.filter-pill-add:hover {
  border-color: var(--neutral-400);
}

.filter-pill-add img {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

/* ========== EMPTY STATE ========== */
.albums-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 16px 16px;
  width: 100%;
}

.albums-empty.show {
  display: flex;
}

.albums-empty-illustration {
  width: 329px;
  height: 224px;
  position: relative;
  margin-bottom: 16px;
}

.albums-empty-card {
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 16px;
  overflow: hidden;
}

.albums-empty-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.albums-empty-card:nth-child(1) {
  background: var(--neutral-700);
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 50px), calc(-50% + 16px)) rotate(9.3deg);
}

.albums-empty-card:nth-child(2) {
  background: var(--neutral-800);
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 42px), calc(-50% - 10px)) rotate(-16.67deg);
}

.albums-empty-text {
  font-size: 12px;
  color: var(--neutral-500);
  text-align: center;
}

/* ========== ALBUM CARDS GRID ========== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.album-card {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.album-card:hover {
  border-color: var(--neutral-600);
  transform: translateY(-2px);
}

.album-card-preview {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-900);
}

.album-card-photo {
  position: absolute;
  width: 200px;
  height: 290px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
  background: var(--neutral-700);
}

.album-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card-photo:nth-child(1) {
  transform: rotate(5deg) translate(14px, -3px);
  z-index: 1;
}

.album-card-photo:nth-child(2) {
  transform: rotate(3deg) translate(8px, 2px);
  z-index: 2;
}

.album-card-photo:nth-child(3) {
  transform: translate(0, 8px);
  z-index: 3;
}

.album-card-info {
  padding: 16px 8px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}

.album-card-author {
  font-size: 12px;
  color: var(--neutral-400);
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-badges {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.album-badge {
  background: var(--purple-900);
  border: 1px solid var(--purple-800);
  color: var(--purple-400);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 16px;
}

/* ========== LOADING STATE ========== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--neutral-700);
  border-top-color: var(--purple-400);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--neutral-400);
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablet (3 columns) */
@media (max-width: 1024px) {
  .albums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile (2 columns) */
@media (max-width: 768px) {
  .albums-toolbar {
    flex-direction: column;
  }

  .albums-search {
    width: 100%;
  }

  .albums-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .albums-filters::-webkit-scrollbar {
    display: none;
  }

  .albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .album-card-preview {
    height: 240px;
  }

  .album-card-photo {
    width: 150px;
    height: 215px;
  }

  .albums-empty-illustration {
    width: 260px;
    height: 180px;
  }

  .albums-empty-card {
    width: 115px;
    height: 115px;
  }
}

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

  .album-card-preview {
    height: 200px;
  }

  .album-card-photo {
    width: 125px;
    height: 180px;
  }
}

/* ========== LOADING ANIMATION ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

.album-card-photo-skeleton {
  background: linear-gradient(
    90deg,
    var(--neutral-700) 0%,
    var(--neutral-600) 50%,
    var(--neutral-700) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
