/* Journal of Discords - Custom Styles */

/* Suno Player Embed */
.suno-player {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suno-player iframe {
  display: block;
}

.suno-placeholder {
  margin: 2rem 0;
  padding: 3rem;
  background: var(--code-bg);
  border-radius: 12px;
  text-align: center;
  color: var(--secondary);
}

.suno-placeholder .placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.suno-placeholder svg {
  opacity: 0.5;
}

/* Song Metadata Table */
.song-meta {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--code-bg);
  border-radius: 8px;
}

.song-meta-table {
  width: 100%;
  border-collapse: collapse;
}

.song-meta-table th {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  width: 120px;
}

.song-meta-table td {
  padding: 0.5rem 0;
}

.song-meta-table a {
  color: var(--primary);
  text-decoration: none;
}

.song-meta-table a:hover {
  text-decoration: underline;
}

/* Song Page Header */
.song-header {
  margin-bottom: 2rem;
}

.song-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.song-caption {
  font-size: 1.2rem;
  color: var(--secondary);
  font-style: italic;
  margin: 0;
}

/* Song Content */
.song-content {
  line-height: 1.8;
}

.song-content h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.song-content blockquote {
  background: var(--code-bg);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Lyrics Styling */
.song-content .lyrics {
  background: var(--code-bg);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  white-space: pre-wrap;
  font-family: inherit;
}

/* Song Navigation */
.song-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.song-nav a {
  color: var(--primary);
  text-decoration: none;
}

.song-nav a:hover {
  text-decoration: underline;
}

/* Songs List Page */
.songs-list-page {
  max-width: 1200px;
  margin: 0 auto;
}

.list-header {
  text-align: center;
  margin-bottom: 2rem;
}

.songs-stats {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 2rem;
}

/* Songs Grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.song-card {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.song-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.song-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.song-card-title a {
  color: var(--primary);
  text-decoration: none;
}

.song-card-title a:hover {
  text-decoration: underline;
}

.song-card-caption {
  color: var(--secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.song-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.song-card-meta span::before {
  content: "";
}

.meta-speaker {
  font-weight: 500;
}

.song-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--tertiary);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--content);
  text-decoration: none;
  transition: background 0.2s;
}

.topic-tag:hover {
  background: var(--primary);
  color: white;
}

.audio-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #4CAF50;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Source Table Styling */
.song-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.song-content th,
.song-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.song-content th {
  background: var(--code-bg);
  font-weight: 600;
}

/* Collapsible Sections */
details {
  margin: 1.5rem 0;
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
}

details summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

details summary:hover {
  background: var(--tertiary);
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

details > *:not(summary) {
  padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .songs-grid {
    grid-template-columns: 1fr;
  }

  .song-title {
    font-size: 1.75rem;
  }

  .song-meta-table th {
    width: 100px;
  }
}
