/* Music Mosaic — Blog & Article View Styles
   Harmonizes with theme.css (2026 Redesign) */

/* ---------- Blog Hero / Featured Post ---------- */
.blog-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(139,111,232,0.22), transparent 60%),
    radial-gradient(550px 340px at 10% 120%, rgba(43,182,168,0.14), transparent 60%);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.blog-featured-card:hover {
  border-color: rgba(242,169,59,0.5);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-image-wrap {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  background: var(--bg-raised-2);
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.blog-featured-card:hover .featured-image-wrap img {
  transform: scale(1.04);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242,169,59,0.15);
  color: var(--gold);
  border: 1px solid rgba(242,169,59,0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  align-self: flex-start;
}

.featured-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.featured-content h2 a {
  text-decoration: none;
  color: var(--ink);
  transition: color .2s ease;
}

.featured-content h2 a:hover {
  color: var(--gold);
}

.featured-excerpt {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.post-meta-inline .dot {
  opacity: 0.4;
}

.post-author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar-s {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

/* ---------- Filter Bar & Search ---------- */
.blog-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.category-pill {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: all .2s ease;
  white-space: nowrap;
}

.category-pill:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 4px 14px -3px rgba(242,169,59,0.4);
}

.blog-search-form {
  position: relative;
  min-width: 260px;
}

.blog-search-form input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 42px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14.5px;
  transition: border-color .2s ease;
}

.blog-search-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.blog-search-form svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* ---------- 3-Column Articles Grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s ease, box-shadow .25s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242,169,59,0.4);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.6);
}

.article-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-raised-2);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.06);
}

.article-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20,18,42,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
  z-index: 2;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card-title a {
  text-decoration: none;
  color: var(--ink);
  transition: color .2s ease;
}

.article-card-title a:hover {
  color: var(--gold);
}

.article-card-excerpt {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}

.card-read-more {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .2s ease;
}

.article-card:hover .card-read-more {
  transform: translateX(3px);
}

/* ---------- Pagination Controls ---------- */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 20px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}

.page-btn:hover:not(.disabled) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 4px 12px -2px rgba(242,169,59,0.4);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Single Post View (`post.php`) ---------- */
.post-header-wrap {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 320px at 80% -10%, rgba(139,111,232,0.18), transparent 60%),
    radial-gradient(460px 260px at 15% 100%, rgba(43,182,168,0.12), transparent 60%);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb-nav a:hover {
  color: var(--gold);
}

.breadcrumb-nav .sep {
  opacity: 0.4;
}

.breadcrumb-nav .current {
  color: var(--ink);
  font-weight: 600;
  max-width: 36ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-title-main {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
  color: var(--ink);
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byline-author .author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
}

.byline-author .author-title {
  color: var(--ink-muted);
  font-size: 13px;
}

.byline-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.draft-notice-banner {
  background: rgba(242,169,59,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-s);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* Post Body Container & Typography */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.post-featured-media {
  margin-bottom: 36px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.post-featured-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-featured-media figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.post-body-content {
  color: #dfdbe8;
  font-size: 18px;
  line-height: 1.82;
}

.post-body-content p {
  margin-bottom: 24px;
}

.post-body-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  margin: 44px 0 18px;
  color: var(--ink);
  scroll-margin-top: 100px;
}

.post-body-content h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin: 34px 0 14px;
  color: var(--ink);
  scroll-margin-top: 100px;
}

.post-body-content ul,
.post-body-content ol {
  margin: 0 0 26px 24px;
  padding: 0;
}

.post-body-content li {
  margin-bottom: 10px;
}

.post-body-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--gold);
  background: var(--bg-raised);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.7;
}

.post-body-content .callout {
  background: rgba(43,182,168,0.12);
  border: 1px solid var(--teal);
  border-radius: var(--radius-s);
  padding: 20px 24px;
  margin: 32px 0;
  color: var(--ink);
}

.post-body-content .callout.gold {
  background: rgba(242,169,59,0.12);
  border-color: var(--gold);
}

.post-body-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-raised-2);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--gold);
  border: 1px solid var(--line);
}

.post-body-content pre {
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  margin: 28px 0;
}

.post-body-content .embed-responsive {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: 36px 0;
  border: 1px solid var(--line);
}

.post-body-content .embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Social Share Bar ---------- */
.share-bar-section {
  margin: 44px 0 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}

.btn-share:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-share.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}

.btn-share.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}

.btn-share.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.btn-share.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

/* Share toast notification */
.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-raised-2);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Author Bio Box (E-E-A-T) ---------- */
.author-bio-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: var(--gold-ink);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.author-bio-details h4 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-bio-details .author-role-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.author-bio-details p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.author-eeat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.author-eeat-badge {
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .author-bio-card {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
}

/* ---------- Related Articles ---------- */
.related-posts-section {
  padding: 50px 0 20px;
  border-top: 1px solid var(--line);
}

.related-posts-section h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 28px;
}

/* ---------- 404 Not Found Page ---------- */
.not-found-wrap {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.not-found-badge {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}

.not-found-wrap h1 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.not-found-wrap p {
  color: var(--ink-muted);
  font-size: 16px;
  margin-bottom: 30px;
}
