/* Composers Page Styles */

.page-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

.composers-intro {
  color: #dddddd;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 1rem auto 2rem;
  max-width: 800px;
  text-align: center;
}

.composers-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 2rem 0;
  grid-auto-rows: 1fr;
}

.composer-card {
  background-color: rgba(13, 13, 13, 0.8);
  border: 1px solid rgba(228, 179, 67, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: space-between;
}

.composer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.composer-detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.composer-image-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.composer-image-link:hover {
  transform: scale(1.05);
}

.composer-image {
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #e4b343;
  margin: 0 auto 15px;
}

.composer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 15px;
}

/* Composer detail page styles */
.composer-detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.composer-detail-header .composer-image {
  flex: 0 0 150px;
  margin: 0;
}

.composer-detail-header .composer-info {
  flex: 1;
  align-items: flex-start;
  text-align: left;
  margin-left: 25px;
  margin-bottom: 0;
}

.composer-name {
  color: #e4b343;
  font-size: 1.7rem;
  font-variant: small-caps;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.composer-name a {
  color: #e4b343;
  text-decoration: none;
  transition: color 0.3s ease;
}

.composer-name a:hover {
  color: #ffcc66;
  text-decoration: underline;
}

.composer-albums {
  color: #dddddd;
  font-size: 1rem;
  margin: 0 0 10px 0;
}

.composer-link {
  background-color: #e4b343;
  border-radius: 4px;
  color: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 6px 12px;
  height: 45px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
}

.composer-link:hover {
  background-color: #ffcc66;
  transform: translateY(-2px);
}

.composer-link span {
  line-height: 1.1;
}

.composer-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.view-composer-button {
  background-color: #000;
  border: 1px solid #e4b343;
  border-radius: 4px;
  color: #e4b343;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 6px 12px;
  height: 45px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-composer-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

.view-composer-button span {
  line-height: 1.1;
}

.back-to-composers {
  margin: 40px 0;
  text-align: center;
}

.back-button {
  background-color: #e4b343;
  border-radius: 4px;
  color: #0d0d0d;
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #ffcc66;
  transform: translateY(-2px);
}

.composer-bio {
  color: #dddddd;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 25px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.composer-detail-header + .composer-bio {
  font-size: 1.3rem;
  line-height: 1.6;
  -webkit-line-clamp: unset;
  display: block;
}

.albums-heading {
  color: #e4b343;
  font-size: 1.5rem;
  font-variant: small-caps;
  margin-bottom: 15px;
}

.composer-albums-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 30px;
}

.album-item {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.album-item:hover {
  transform: translateY(-5px);
}

.album-item img {
  aspect-ratio: 1/1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.album-item h4 {
  color: #e4b343;
  font-size: 1rem;
  margin: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-links-container {
  display: flex;
  flex-direction: column;
  margin: 0 10px 12px;
}

.album-details-link {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.album-platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.album-platform {
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 4px 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.album-platform:hover {
  opacity: 0.8;
}

.album-platform.bandcamp {
  background-color: #4C9EBF;
  color: white;
}

.album-platform.spotify {
  background-color: #1DB954;
  color: white;
}

.album-platform.youtube {
  background-color: #FF0000;
  color: white;
}

.album-platform.details {
  background-color: #e4b343;
  color: #0d0d0d;
  font-weight: bold;
  padding: 6px 16px;
  font-size: 0.9rem;
  width: 80%;
  text-align: center;
}

.album-cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .composers-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .composer-card {
    padding: 15px;
  }
  
  .composer-image {
    width: 110px;
    height: 110px;
    margin-bottom: 10px;
  }
  
  .composer-name {
    font-size: 1.5rem;
  }
  
  .composer-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .composer-detail-header .composer-info {
    align-items: center;
    text-align: center;
    margin-left: 0;
    margin-top: 15px;
  }
  
  .composer-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .composer-card-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .composer-link, .view-composer-button {
    height: 40px;
    padding: 5px 10px;
  }
}