/* TAPES ALIVE STYLES */


/* SEARCH */

.search-form {
  margin-bottom: 2rem;
}

.search-form label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.search-form input {
  padding: 0.4rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 4px;
}

#autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1050;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  background-color: white;
  color: black;
  border: 1px solid #6c757d;
  border-radius: 0.375rem;
  padding-left: 0;
  margin-top: 0.25rem;
}

#autocomplete-list li {
  background-color: white;
  cursor: pointer;
  margin-bottom: 2px;
  padding: 6px 12px;
  border-radius: 0.25rem;
}

#autocomplete-list li:hover {
  background-color: #e9ecef;
}

#autocomplete-list li:last-child {
  margin-bottom: 0;
}


/* ALBUM RELEASE GRID */

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 1.5rem;
  justify-content: start;
}

.release-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  width: 320px;
  min-height: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.release-card:hover {
  transform: scale(1.02);
}

.release-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* album-detail-grid STYLE IS ONLY USED BY ta_view_album_template_test.php FOR TESTING */

.album-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 321px) minmax(320px, 640px) minmax(320px, 321px);
  gap: 1.5rem;
  justify-content: start;
  width: 100%;
  grid-auto-flow: row dense;
}


@media (max-width: 2000px) {

  .container {
    flex-direction: column;
  }

  .release-grid {
    justify-content: center;
  }

  .album-detail-grid {
    justify-content: center;
  }

  .release-card {
    width: 90%;
  }
}

.square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.square-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.square-image.missing img {
  display: none;
}


/* ALBUM DETAIL PAGE */

.ta-album-card {
  padding: 2rem;
}

.ta-cover-box {
  width: 250px;
  height: 250px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.ta-cover-image-container {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ta-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.ta-no-shrink {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
	#ta-cassette-releases .ta-album-card .col-12.col-md-auto.ta-no-shrink {
		display: none !important;
	}
}

/* DROPZONE CUSTOM STYLES – FOR SQUARE THUMBNAILS */

#cassetteImageDropzone .dz-preview {
	width: 100%;
	position: relative;
	padding-top: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin: 0 auto;
	margin-bottom: 1.5rem;
}

#cassetteImageDropzone .dz-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
}

#cassetteImageDropzone .dz-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

#cassetteImageDropzone .dz-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 1.2rem;
	color: white;
	z-index: 10;
	text-decoration: none;
}

#cassetteImageDropzone .dz-remove i {
	pointer-events: none;
}



/* ============================
   OUTDATED / NOT CURRENTLY USED
   (kept in original order)
   ============================ */

/* LAYOUT 

.container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
}

.main-content {
  flex: 1;
}
*/


/* ERROR MESSAGE

.error {
  color: #ff6b6b;
  font-weight: bold;
}
*/

/*
.release-card h3 {
  font-size: 1rem;
  padding: 0.75rem;
  margin: 0;
}
*/

/*
.track-info-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  min-height: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: none !important;
}

.track-info-card:hover {
  transform: none !important;
}

@media (max-width: 767px) {
  .track-info-card {
    width: 100%;
    margin-top: 1rem;
  }
}
*/
