/* ============================================================
   MyrixTV — blog pages styles (archive + articles)
   ============================================================ */

/* ---------- Shared header tweaks ---------- */

.nav-link.active { color: var(--lime); }

/* ---------- Blog archive hero ---------- */

.blog-hero {
  padding: 70px 0 40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.08), transparent 45%),
    #000;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  color: var(--white);
  margin-bottom: 12px;
}

.blog-hero h1 span { color: var(--lime); }

.blog-hero p {
  font-size: 17px;
  color: #b9b9b9;
  max-width: 60ch;
  line-height: 1.6;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #9a9a9a;
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--lime); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #666; }

/* ---------- Category filter ---------- */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 40px;
}

.btn-filter {
  background: var(--card);
  color: #c5c5c5;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 50px;
  font-family: var(--font-btn);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-filter:hover { border-color: var(--lime); color: var(--lime); }
.btn-filter.active {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
}

/* ---------- Archive post cards ---------- */

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 70px;
}

.post-card {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.12);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.05); }

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

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #9a9a9a;
  margin-bottom: 10px;
}
.post-card-meta .tag {
  background: rgba(139, 92, 246, 0.12);
  color: var(--lime);
  padding: 3px 10px;
  border-radius: 30px;
  font-weight: 500;
}
.post-card-meta .dot { opacity: 0.5; }

.post-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-card h2 a { color: var(--white); }
.post-card h2 a:hover { color: var(--lime); }

.post-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: #c5c5c5;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--lime);
  font-weight: 600;
  font-size: 14px;
}
.read-more:hover { text-decoration: underline; }

/* ---------- Article page ---------- */

.post-single { padding: 30px 0 70px; }

.post-single article {
  max-width: 820px;
  margin: 0 auto;
}

.post-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.15;
  color: var(--white);
  margin: 8px 0 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #9a9a9a;
  margin-bottom: 26px;
}
.post-meta .tag {
  background: rgba(139, 92, 246, 0.12);
  color: var(--lime);
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
}
.post-meta .dot { opacity: 0.5; }

.post-byline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.6;
  color: #bbbbbb;
}
.post-byline strong { color: var(--white); }

.post-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 30px;
}

.post-content { font-size: 17px; line-height: 1.75; color: #dddddd; }

.post-content > * + * { margin-top: 1.2em; }

.post-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--lime);
  margin-top: 2em;
  line-height: 1.25;
}

.post-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--white);
  margin-top: 1.8em;
}

.post-content strong { color: var(--white); }

.post-content ul,
.post-content ol {
  padding-left: 24px;
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { margin-top: 0.5em; }

.post-content a { color: var(--lime); text-decoration: underline; }
.post-content a:hover { text-decoration: none; }

.post-content blockquote {
  border-left: 4px solid var(--lime);
  background: rgba(139, 92, 246, 0.06);
  padding: 16px 20px;
  color: #cfcfcf;
  font-style: italic;
}

.post-content code {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 14px;
  color: var(--lime);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}
.post-content table th,
.post-content table td {
  border: 1px solid #2a2a2a;
  padding: 10px 14px;
  text-align: left;
}
.post-content table th {
  background: #141414;
  color: var(--lime);
  font-weight: 600;
}
.post-content table td { color: #d5d5d5; }

.post-content img {
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.post-faq { margin-top: 2.5em; }

/* ---------- Inline CTA ---------- */

.post-cta {
  margin-top: 2.5em;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.02)), #080809;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  color: var(--white);
}
.post-cta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--white);
}
.post-cta p { font-size: 15.5px; margin-bottom: 20px; color: #cfcfcf; }

.btn-cta-lime {
  display: inline-block;
  background: var(--lime);
  color: #000;
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  padding: 16px 42px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(139, 92, 246, 0.32);
}

/* ---------- Related posts ---------- */

.related { padding: 0 0 70px; }

.related h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--white);
  text-align: center;
  margin-bottom: 30px;
}
.related h2 span { color: var(--lime); }

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

.related-card {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.1);
}
.related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-card-body { padding: 16px 18px 20px; }
.related-card h3 { font-size: 15.5px; line-height: 1.35; font-family: var(--font-display); font-weight: 600; }
.related-card h3 a { color: var(--white); }
.related-card h3 a:hover { color: var(--lime); }
.related-card .rc-date { font-size: 12px; color: #9a9a9a; margin-top: 8px; display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-hero h1 { font-size: 34px; }
  .blog-hero { padding: 40px 0 26px; }
  .post-title { font-size: 30px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 23px; }
  .blog-filters { padding-bottom: 26px; }
}

/* ---------- Light theme ---------- */

[data-theme="light"] .blog-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(109, 40, 217, 0.08), transparent 45%),
    var(--bg);
}
[data-theme="light"] .blog-hero p { color: var(--text-muted); }
[data-theme="light"] .breadcrumbs { color: var(--text-muted); }
[data-theme="light"] .breadcrumbs .sep { color: var(--text-muted); opacity: 0.6; }
[data-theme="light"] .btn-filter { color: var(--text-muted); }
[data-theme="light"] .post-card-media { background: #e5eaf0; }
[data-theme="light"] .post-card-meta { color: var(--text-muted); }
[data-theme="light"] .post-card-excerpt { color: var(--text-soft); }
[data-theme="light"] .post-meta { color: var(--text-muted); }
[data-theme="light"] .post-byline { color: var(--text-soft); }
[data-theme="light"] .post-content { color: var(--text-soft); }
[data-theme="light"] .post-content blockquote { color: var(--text-soft); }
[data-theme="light"] .post-content code { background: #eef2f6; border-color: #d5dbe3; }
[data-theme="light"] .post-content table th,
[data-theme="light"] .post-content table td { border-color: #d5dbe3; }
[data-theme="light"] .post-content table th { background: #eef2f6; }
[data-theme="light"] .post-content table td { color: var(--text-soft); }
[data-theme="light"] .post-cta {
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.08), rgba(109, 40, 217, 0.02)), var(--card);
}
[data-theme="light"] .post-cta p { color: var(--text-soft); }
[data-theme="light"] .related-card .rc-date { color: var(--text-muted); }
