/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Album search modal grid */
.album-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.album-tile {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.album-tile:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
}

.album-tile-art {
  aspect-ratio: 1;
  background: var(--bs-secondary-bg);
  overflow: hidden;
}

.album-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-tile-art-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bs-secondary-color);
}

.album-tile-info {
  padding: 6px 8px 8px;
}

.album-tile-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-tile-artist {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Album preview in composer */
.album-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
}

.album-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.album-preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.album-preview-artist {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

/* Album card in post */
.album-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
}

.album-card-art {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.album-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.album-card-artist {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  margin-top: 2px;
}

/* Album grid on profile */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.album-grid-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.album-grid-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-grid-artist {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Setlist search results */
.setlist-result {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  margin-bottom: 6px;
  transition: background 0.1s;
}

.setlist-result:hover {
  background: var(--bs-tertiary-bg);
}

.setlist-result-artist {
  font-weight: 600;
  font-size: 0.9rem;
}

.setlist-result-details {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.setlist-result-songs {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Setlist preview in composer */
.setlist-preview {
  padding: 8px 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
}

.setlist-preview-artist {
  font-weight: 600;
  font-size: 0.875rem;
}

.setlist-preview-details {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

/* Setlist card in post */
.setlist-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-tertiary-bg);
  padding: 12px 14px;
}

.setlist-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.setlist-card-artist {
  font-weight: 600;
  font-size: 0.95rem;
}

.setlist-card-details {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  margin-top: 1px;
}

.setlist-card-link {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.setlist-songs {
  font-size: 0.82rem;
  padding-left: 1.4rem;
  margin: 0;
}

.setlist-songs li {
  padding: 1px 0;
}

.setlist-set-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color);
  margin: 8px 0 2px;
}

.setlist-expand {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  display: block;
}

.setlist-expand::-webkit-details-marker { display: none; }

.setlist-more[open] > summary { display: none; }

.setlist-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.setlist-collapse {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  display: block;
  margin-top: 4px;
}

.setlist-collapse:hover { text-decoration: underline; }


.ac-nav-active {
  background-image: linear-gradient(90deg, var(--bs-warning), transparent);
  background-size: calc(100% - 1.1rem) 2px;
  background-position: 0.85rem calc(100% - 3px);
  background-repeat: no-repeat;
}

[data-bs-theme="dark"] .navbar-brand img {
  filter: invert(1);
}

body {
  background-color: var(--ac-body-bg);
}

.circle {
  width: 42px;
  height: 42px;
  background-color: white;
  border-radius: 50%;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.field_with_errors {
  color: red;
}

.vinyl-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.vinyl-bg .vinyl {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.042;
}

.vinyl-bg .vinyl:nth-child(1) {
  width: 380px;
  height: 380px;
  top: 11%;
  left: -80px;
}

.vinyl-bg .vinyl:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -60px;
}

.vinyl-bg .vinyl:nth-child(3) {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: 30%;
}
