/* Entity Pages Styles - Sidebar Layout */

/* Entity Hero Section */
.entity-hero {
  background: var(--primary);
  color: white;
  padding: 80px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.entity-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  opacity: 0.9;
  z-index: 1;
}

.entity-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
}

.entity-hero-image {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid var(--white-25);
  box-shadow: 0 10px 30px var(--black-20);
  flex-shrink: 0;
  background: var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.entity-hero-image .entity-placeholder {
  font-size: 48px;
  color: var(--white-85);
  opacity: 0.7;
}

.entity-hero-info {
  flex: 1;
}

.entity-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-15);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-25);
}

.entity-type-badge i {
  font-size: 16px;
}

.entity-name {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  line-height: 1.1;
}

.entity-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.entity-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.entity-hero .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--white-90);
}

.entity-hero .stat-item i {
  font-size: 18px;
  color: var(--white-85);
}

.entity-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.discogs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-15);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-25);
}

.discogs-btn:hover {
  background: var(--white-25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
  color: white;
  text-decoration: none;
}

.discogs-btn i {
  font-size: 16px;
}

/* Main Content Layout */
.entity-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  margin-bottom: 80px;
}

.entity-main-content {
  min-width: 0;
}

.entity-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Section Titles */
/* Section Titles - Scoped */
.entity-content-wrapper .section-title {
  font-size: 30px;
  margin-bottom: 32px;
  position: relative;
  color: var(--dark-text);
}

.entity-content-wrapper .section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Sidebar Sections */
/* Sidebar Sections */
.entity-sidebar .sidebar-section {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow-light);
  border: 1px solid var(--border);
}

.entity-sidebar .sidebar-section .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0 0 20px 0;
}

.entity-sidebar .sidebar-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--medium-text);
}

/* Entity Description */
.entity-description {
  color: var(--medium-text);
  line-height: 1.7;
}

/* Discogs Entity Links in Description */
.entity-description .discogs-entity-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.entity-description .discogs-entity-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

.entity-description .artist-link {
  background: var(--primary-bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: none;
}

.entity-description .artist-link:hover {
  background: var(--primary-border);
  border-bottom: none;
}

.entity-description .label-link {
  background: var(--success-bg-light);
  color: var(--success);
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: none;
}

.entity-description .label-link:hover {
  background: var(--success-border);
  color: var(--success-dark);
  border-bottom: none;
}

.entity-description .release-link,
.entity-description .master-link {
  background: var(--warning-bg-light);
  color: var(--warning);
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: none;
}

.entity-description .release-link:hover,
.entity-description .master-link:hover {
  background: var(--warning-border);
  color: var(--warning-dark);
  border-bottom: none;
}

.entity-description .external-link {
  color: var(--info);
  text-decoration: none;
  border-bottom: 1px dotted var(--info);
}

.entity-description .external-link:hover {
  color: var(--info-dark);
  text-decoration: none;
  border-bottom-style: solid;
}

.entity-description .external-link i,
.entity-description .discogs-entity-link i {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.7;
}

/* Enhanced text formatting */
.entity-description strong {
  color: var(--dark-text);
  font-weight: 600;
}

.entity-description em {
  color: var(--medium-text);
  font-style: italic;
}

.entity-description u {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 2px;
}

/* Relationships in Sidebar */
.relationship-group {
  margin-bottom: 24px;
}

.relationship-group:last-child {
  margin-bottom: 0;
}

.relationship-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
  margin: 0 0 12px 0;
}

.relationship-subtitle i {
  font-size: 14px;
  color: var(--primary);
}

.relationship-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relationship-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.relationship-item:hover {
  border-color: var(--primary-border);
  background: var(--primary-bg-light);
}

.relationship-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  transition: color 0.2s ease;
}

.relationship-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.relationship-link i {
  font-size: 12px;
  opacity: 0.7;
}

.relationship-name {
  color: var(--dark-text);
  font-weight: 500;
}

.relationship-status {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--light-text-bg);
  color: var(--light-text);
}

/* Web Links */
.web-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.web-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--background);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.2s ease;
  font-weight: 500;
}

.web-link:hover {
  background: var(--primary-bg-light);
  border-color: var(--primary-border);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.web-link i {
  color: var(--primary);
  font-size: 12px;
}

/* Mix Items - Same as before but optimized for main content */
.entity-mixes-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.entity-mix-item {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.entity-mix-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--primary-border);
}

.entity-content-wrapper .mix-item-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--primary-bg-light);
  border-bottom: 1px solid var(--border);
}

.entity-content-wrapper .mix-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.entity-content-wrapper .mix-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.entity-mix-item:hover .mix-item-image img {
  transform: scale(1.05);
}

.entity-content-wrapper .mix-item-info {
  flex: 1;
  min-width: 0;
}

.entity-content-wrapper .mix-item-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.entity-content-wrapper .mix-item-title a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entity-content-wrapper .mix-item-title a:hover {
  color: var(--primary);
}

.entity-content-wrapper .mix-item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.entity-content-wrapper .mix-date,
.entity-content-wrapper .track-count,
.entity-content-wrapper .mix-dj {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--light-text);
}

.entity-content-wrapper .mix-date i,
.entity-content-wrapper .track-count i,
.entity-content-wrapper .mix-dj i {
  font-size: 14px;
  color: var(--primary);
}

.entity-content-wrapper .mix-item-tracks {
  padding: 0;
}

.entity-content-wrapper .entity-track-item {
  display: grid;
  grid-template-columns: 50px auto 1fr 80px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background-color 0.2s ease;
}

.entity-content-wrapper .entity-track-item:hover {
  background: var(--primary-bg-light);
}

.entity-content-wrapper .entity-track-item:last-child {
  border-bottom: none;
}

.entity-content-wrapper .track-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.entity-content-wrapper .track-timestamp {
  font-size: 12px;
  color: var(--light-text);
  font-family: "Courier New", monospace;
  text-align: right;
  min-width: 50px;
}

.entity-content-wrapper .track-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.entity-content-wrapper .track-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
}

.entity-content-wrapper .track-artist,
.entity-content-wrapper .track-label {
  font-size: 14px;
}

.entity-content-wrapper .track-artist a,
.entity-content-wrapper .track-label a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entity-content-wrapper .track-artist a:hover,
.entity-content-wrapper .track-label a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.entity-content-wrapper .track-separator {
  color: var(--light-text);
  font-weight: 300;
}

.entity-content-wrapper .track-year {
  font-size: 13px;
  color: var(--light-text);
  font-style: italic;
}

/* No Tracks Message */
.no-tracks {
  text-align: center;
  padding: 60px 40px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.no-tracks p {
  font-size: 18px;
  color: var(--light-text);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .entity-content-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .entity-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .entity-hero-image {
    margin: 0 auto;
  }

  .entity-stats {
    justify-content: center;
  }

  .entity-actions {
    justify-content: center;
  }

  .entity-name {
    font-size: 40px;
  }

  .entity-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .entity-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .entity-hero {
    padding: 60px 0;
    margin-bottom: 40px;
  }

  .entity-hero-image {
    width: 160px;
    height: 160px;
  }

  .entity-name {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .entity-stats {
    gap: 20px;
  }

  .stat-item {
    font-size: 15px;
  }

  .entity-content-wrapper {
    gap: 30px;
    margin-bottom: 60px;
  }

  .sidebar-section {
    padding: 24px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .entity-mixes-list {
    gap: 24px;
  }

  .mix-item-header {
    padding: 20px;
    gap: 16px;
  }

  .mix-item-image {
    width: 64px;
    height: 64px;
  }

  .mix-item-title {
    font-size: 18px;
  }

  .entity-track-item {
    grid-template-columns: 40px auto 1fr 60px;
    gap: 12px;
    padding: 14px 20px;
  }

  .track-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .track-separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .entity-hero-image {
    width: 140px;
    height: 140px;
  }

  .entity-name {
    font-size: 32px;
  }

  .entity-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .sidebar-section {
    padding: 20px;
  }

  .mix-item-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .mix-item-image {
    width: 80px;
    height: 80px;
  }

  .entity-track-item {
    grid-template-columns: 30px 1fr 50px;
    gap: 8px;
    padding: 12px 16px;
  }

  .track-timestamp {
    grid-column: 3;
    grid-row: 1;
  }

  .track-details {
    grid-column: 2;
    grid-row: 1;
  }
}