/*
Theme Name: Genesis Block Child
Theme URI: https://example.com
Description: Child theme for Genesis block theme
Author: Brian
Version: 1.0.0
Template: genesis-block-theme
Text Domain: genesis-block-child
*/

/* --- Song archive layout tweaks (month spacing + tighter comments) --- */

/* Give each month section breathing room so the next month doesn't butt up against comments */
.song-month {
  margin: 0 0 4rem;
  padding: 0 0 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Full-width month heading background, constrained text */
.song-month > h2 {
  position: relative;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1rem 0;
  z-index: 0;
}

.song-month > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #f5f5f5;
  z-index: -1;
}

/* Slightly tighter spacing inside each song card */
.song-item {
  margin: 0 0 2.5rem;
}

/* Match song content width to comments block */
.song-item > *:not(.song-comments) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Delete song link styled as a button */
.song-actions {
  margin-top: 0.75rem;
}

.song-actions .song-delete {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  background: #c0392b;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.1;
}

.song-actions .song-delete:hover,
.song-actions .song-delete:focus {
  background: #a93226;
  color: #ffffff;
}

/* Like buttons */
.song-likes,
.comment-like {
  margin-top: 0.5rem;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.comment-delete {
  font-size: 0.85rem;
  color: #a94442;
  text-decoration: none;
}

.comment-delete:hover,
.comment-delete:focus {
  color: #7b2f2d;
  text-decoration: underline;
}

.song-like-form,
.comment-like-form {
  display: inline-block;
  margin: 0;
}

.song-like-button,
.comment-like-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.song-like-button.is-liked,
.comment-like-button.is-liked {
  color: #cc3366;
}

.song-like-button .like-heart,
.comment-like-button .like-heart {
  font-size: 2.34rem;
  line-height: 1;
}

.song-like-button .like-tooltip,
.comment-like-button .like-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #222222;
  color: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease-in-out, visibility 120ms ease-in-out;
  z-index: 2;
}

.song-like-button:hover .like-tooltip,
.song-like-button:focus .like-tooltip,
.comment-like-button:hover .like-tooltip,
.comment-like-button:focus .like-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Comments block: narrower, centered, and tightened */
.song-comments {
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.song-comments .comment-list,
.song-comments .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-comments .comment {
  margin: 0 0 1.25rem;
}

.song-comments .comment-body {
  padding: 0.75rem 1rem;
}

.song-comments .comment-meta {
  margin-bottom: 0.5rem;
}

/* Tighten the reply form spacing */
.song-comments .comment-respond {
  margin: 1.25rem 0 0;
}
.comment-reply-title{
  font-size: 2.5rem !important;
}

.song-comments .comment-respond .comment-reply-title {
  margin: 0 0 0.5rem;
}

.song-comments .comment-respond textarea {
  min-height: 140px;
}

/* Make the Post Comment button a bit smaller */
.song-comments .form-submit {
  margin: 0.75rem 0 0;
}

.song-comments .form-submit input[type="submit"],
.song-comments .form-submit button[type="submit"],
.song-comments #submit {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.1;
}
/*
Theme Name: Genesis Block Child
Theme URI: https://example.com
Description: Child theme for Genesis block theme
Author: Brian
Version: 1.0.0
Template: genesis-block-theme
Text Domain: genesis-block-child
*/

/* --- Song archive layout tweaks (spacing + tighter comments) --- */

/* Give each song item more breathing room so the next month heading doesn't butt up against the comment form */
.song-item {
  margin: 0 0 4rem;
}

/* Constrain the audio player to the comment width */
.song-item .wp-audio-shortcode,
.song-item .mejs-container,
.song-item audio {
  width: 100% !important;
  max-width: 720px !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Comments block: narrower, centered */
.song-comments {
  max-width: 720px;
  margin: 1.5rem auto 0;
}

/* Add space AFTER comments so the next month section isn't jammed into the form */
.song-comments {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Tighten up the comment list spacing */
.song-comments .comment-list,
.song-comments .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-comments .comment {
  margin: 0 0 1.25rem;
}

/* Your theme uses .comment-block/.comment-wrap/.comment-info instead of .comment-body/.comment-meta */
.song-comments .comment-block {
  padding: 0.75rem 1rem;
}

.song-comments .comment-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.song-comments .comment-wrap .avatar {
  width: 44px;
  height: 44px;
}

.song-comments .comment-info {
  margin-bottom: 0.35rem;
}

.song-comments .comment-content p {
  margin: 0 0 0.5rem;
}

.song-comments .comment-content p.reply {
  margin: 0;
}

/* Tighten the reply form */
.song-comments .comment-respond {
  margin-top: 1.25rem;
}

.song-comments .comment-respond .comment-reply-title {
  margin: 0 0 0.5rem;
}

.song-comments .comment-respond .comment-form-comment {
  margin: 0;
}

.song-comments .comment-respond textarea {
  min-height: 140px;
}

/* Make the Post Comment button smaller */
.song-comments .form-submit {
  margin: 1rem 0 0;
}

.song-comments .form-submit input[type="submit"],
.song-comments .form-submit button[type="submit"],
.song-comments #submit {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.1;
}