/* Album List Styles */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.album-card {
  background-color: #1e1e1e;
  border: 3px solid #333;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.album-card:hover,
.album-card:focus {
  transform: translateY(-4px);
  border-color: #2196f3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  outline: none;
}

.album-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #2a2a2a;
  display: block;
}

.album-thumbnail.loading {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

.album-info {
  padding: 1.5rem;
}

.album-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-count {
  font-size: 0.875rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.album-count::before {
  content: "📷";
  font-size: 1rem;
}

/* Empty state */
.albums-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
}

.albums-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #aaa;
}

.albums-empty p {
  font-size: 1.125rem;
}

/* Loading state for albums view */
#albums-view .loading {
  min-height: 400px;
}
