/*
Theme Name: SoundWave Audio Child
Theme URI: #
Description: Child theme for SoundWave Audio with WP Blog posts separated from soundboard posts.
Author: Custom
Template: soundwave-audio
Version: 1.0.6
Text Domain: soundwave-audio-child
*/

/* Blog cards */
.swac-blog-main {
  max-width: 1180px;
}

.swac-blog-section {
  width: 100%;
}

.swac-blog-hero,
.swac-intro {
  margin: 0 0 28px;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.swac-blog-hero h1,
.swac-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}

.swac-intro p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #c9c9c9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.swac-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.swac-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.swac-blog-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: #232323;
  color: #ff4d6d;
  font-size: 3rem;
  font-weight: 800;
  overflow: hidden;
}

.swac-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.swac-blog-card:hover .swac-blog-thumb img {
  transform: scale(1.035);
}

.swac-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.swac-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: #aaa;
  font-size: 0.82rem;
}

.swac-blog-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.swac-blog-title a {
  color: #fff;
  text-decoration: none;
}

.swac-blog-title a:hover {
  color: #ff4d6d;
}

.swac-blog-excerpt {
  color: #c9c9c9;
  font-size: 0.96rem;
  line-height: 1.65;
}

.swac-blog-excerpt p {
  margin: 0;
}

.swac-blog-read-more {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: auto;
  padding-top: 18px;
  color: #ff4d6d;
  font-weight: 700;
  text-decoration: none;
}

.swac-blog-read-more:hover {
  color: #fff;
}

.swac-blog-pagination {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.swac-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swac-blog-pagination a,
.swac-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.swac-blog-pagination .current,
.swac-blog-pagination a:hover {
  background: #ff4d6d;
  border-color: #ff4d6d;
  color: #fff;
}

.single-blog_post .comments-area,
.post-type-archive-blog_post .comments-area,
.tax-blog-category .comments-area {
  display: none !important;
}

.swac-more-blog-posts {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.swac-more-blog-posts > h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Shared search */
.swac-search-form {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 32px;
}

.swac-search-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  overflow: hidden;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.swac-search-row input[type="search"] {
  min-width: 0;
  flex: 1;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
}

.swac-search-row input[type="search"]::placeholder {
  color: #8d8d8d;
}

.swac-search-row input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 77, 109, 0.45);
}

.swac-search-row button {
  display: inline-flex;
  min-width: 132px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  background: #ff4d6d;
  border: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.swac-search-row button:hover {
  background: #ff2d55;
  transform: none;
  box-shadow: none;
}

.swac-search-scopes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.swac-search-scopes label {
  cursor: pointer;
}

.swac-search-scopes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swac-search-scopes span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  color: #cfcfcf;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.swac-search-scopes input:checked + span {
  color: #fff;
  background: rgba(255, 77, 109, 0.22);
  border-color: rgba(255, 77, 109, 0.7);
}

.swac-search-results-main {
  max-width: 1180px;
}

.swac-search-section {
  margin-top: 34px;
}

.swac-empty-results {
  padding: 18px 20px;
  color: #cfcfcf;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Soundboard list/detail */
.swac-soundboards-main {
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.swac-soundboards-main .page-header {
  margin: 0 0 28px;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.swac-soundboards-main .page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
}

.swac-soundboards-main .archive-description {
  max-width: 760px;
  margin-top: 12px;
  color: #b8b8b8;
}

.instants-pvh {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

.sound-item {
  position: relative;
  min-width: 0;
  padding: 18px 14px 14px;
  text-align: center;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.sound-button-wrapper {
  position: relative;
  display: inline-flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.sound-button-wrapper:hover {
  transform: translateY(-2px) scale(1.04);
}

.sound-button-wrapper:active {
  transform: scale(0.94);
}

.sound-button-wrapper svg,
.sound-base-icon {
  width: 96px;
  height: 96px;
}

.sound-btn {
  background: transparent;
  border: 0;
}

.pause-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 38px !important;
  height: 38px !important;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sound-btn.is-playing .pause-overlay-icon {
  display: block;
}

.instant-pvh-link {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.instant-pvh-link:hover,
.sound-detail-tag a:hover,
.sidebar-see-more:hover {
  color: #ff4d6d;
}

.pvh-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.instant-pvh-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.instant-pvh-btn:hover {
  background: rgba(255, 77, 109, 0.16);
  transform: translateY(-1px);
}

.instant-pvh-btn-icon {
  width: 20px;
  height: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px 16px;
  color: #bbb;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.detail-container {
  max-width: 1200px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-section,
.sidebar-widget {
  margin-bottom: 28px;
  padding: 24px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.main-infos-section {
  padding: 28px;
}

.sound-detail-container {
  display: flex;
  justify-content: center;
}

.sound-detail-left {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.sound-title-detail {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
}

.sound-button-detail-wrapper {
  width: 180px;
  height: 180px;
}

.sound-button-detail-wrapper svg {
  width: 180px;
  height: 180px;
}

.sound-detail-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.sound-detail-tag a {
  padding: 5px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-decoration: none;
}

.favorite-count {
  display: flex;
  justify-content: center;
  margin: 18px 0;
  color: #cfcfcf;
}

.favorite-count p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 10px;
  font-size: 0.95rem;
}

.favorite-icon,
.action-icon,
.share-icon,
.sound-type-icon {
  width: 20px;
  height: 20px;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.action-button-wrapper {
  min-width: 0;
}

.action-buttons .btn,
.btn-see-all {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-action-green {
  background: #168a4a !important;
}

.button-action-red {
  background: #c9344b !important;
}

.button-action-blue {
  background: #1976d2 !important;
}

.button-action-yellow {
  background: #bd8700 !important;
}

.section-title,
.sounds-type,
.sidebar-widget-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
}

.entry-content,
.entry-content p,
.videos-description {
  color: #d0d0d0;
}

.entry-content a {
  color: #ff4d6d;
}

.see-all-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-see-all {
  width: auto;
  white-space: nowrap;
}

.detail-sidebar {
  min-width: 0;
}

.sidebar-widget .instants-pvh {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sidebar-widget .sound-item {
  padding: 12px 8px;
}

.sidebar-widget .sound-button-wrapper,
.sidebar-widget .sound-button-wrapper svg,
.sidebar-widget .sound-base-icon {
  width: 72px;
  height: 72px;
}

.sidebar-widget .pvh-actions {
  display: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.video-grid video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
}

.cdk-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

#modalShare .modal {
  position: absolute;
  inset: 0;
  width: min(330px, calc(100vw - 32px));
  height: max-content;
  margin: auto;
  padding: 22px;
  text-align: center;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#modalShare .modal.show {
  opacity: 1;
  transform: translateY(0);
}

#modalShare p,
#modalShare .sound-title-modal {
  color: #fff;
}

.close {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
}

.close svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.facebook {
  background: #0866ff;
}

.twitter {
  background: #000;
}

.whatsapp {
  background: #25d366;
}

.copy-link {
  background: #777;
}

#scrollToTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ff4d6d;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

#top-arrow {
  width: 24px;
  height: 24px;
}

@media (max-width: 980px) {
  .swac-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    width: 100%;
  }

  .action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .swac-blog-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .swac-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .swac-blog-card-body {
    padding: 16px;
  }

  .swac-search-row {
    flex-direction: column;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 10px;
  }

  .swac-search-row input[type="search"] {
    width: 100%;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
  }

  .swac-search-row button {
    width: 100%;
    border-radius: 8px;
  }

  .swac-search-scopes {
    justify-content: flex-start;
  }

  .instants-pvh {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sound-item {
    padding: 14px 10px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .see-all-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-see-all {
    width: 100%;
  }

  .sound-button-detail-wrapper,
  .sound-button-detail-wrapper svg {
    width: 148px;
    height: 148px;
  }
}
