/* ============================================
   GYA Blog Styles — blog.css
   Prefixes: bl- (listing), bs- (single post)
   ============================================ */

/* ---- BLOG LISTING PAGE ---- */

.bl-hero {
  background: #0a0a0a;
  padding: 148px 0 70px; /* 68px navbar + 80px breathing room */
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bl-hero__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.bl-hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 18px;
}

.bl-hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.bl-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

.bl-section {
  padding: 70px 0 60px;
  background: #0d0d0d;
}

.bl-grid {
  display: grid;
  gap: 24px;
}

/* Featured card */
.bl-card--featured {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 40px;
  transition: border-color 0.2s;
}

.bl-card--featured:hover {
  border-color: rgba(245,158,11,0.4);
}

.bl-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bl-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.bl-card__date {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.bl-card__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.bl-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.bl-card__title a:hover {
  color: #f59e0b;
}

.bl-card__excerpt {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 680px;
}

.bl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bl-card__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.bl-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b;
  text-decoration: none;
  transition: gap 0.2s;
}

.bl-card__link:hover {
  gap: 10px;
}

/* Topics */
.bl-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bl-topics__label {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

.bl-topics__tag {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}

.bl-topics__tag:hover,
.bl-topics__tag--active {
  color: #f59e0b;
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.07);
}

/* Blog CTA */
.bl-cta {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bl-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.bl-cta__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.bl-cta__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
}


/* ---- SINGLE POST PAGE ---- */

.bs-article {
  background: #0d0d0d;
  min-height: 100vh;
}

.bs-header {
  background: #0a0a0a;
  padding: 148px 0 60px; /* 68px navbar + 80px breathing room */
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bs-header__inner {
  max-width: 820px;
}

.bs-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.bs-header__back {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.bs-header__back:hover {
  color: #f59e0b;
}

.bs-header__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.bs-header__date {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.bs-header__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
}

.bs-header__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 700px;
}

.bs-header__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* Layout */
.bs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  padding: 60px 0 80px;
  align-items: start;
}

/* TOC Sidebar */
.bs-toc {
  position: sticky;
  top: 88px; /* 68px navbar + 20px gap */
}

.bs-toc__inner {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 24px;
}

.bs-toc__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 16px;
}

.bs-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-toc__link {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.4;
}

.bs-toc__link:hover,
.bs-toc__link.active {
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
}

/* Content */
.bs-content {
  min-width: 0;
}

.bs-content h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 48px 0 16px;
  line-height: 1.25;
}

.bs-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: #fff;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.bs-content h2:first-child,
.bs-content h3:first-child {
  margin-top: 0;
}

.bs-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin: 0 0 20px;
}

.bs-content ul,
.bs-content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.bs-content li {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 10px;
}

.bs-content strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.bs-content em {
  color: rgba(255,255,255,0.7);
}

/* Divider */
.bs-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 48px 0;
}

/* Stat block */
.bs-stat-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.bs-stat {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.bs-stat__num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 6px;
}

.bs-stat__label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* Inline TOC */
.bs-toc-inline {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 0 0 28px;
}

.bs-toc-inline strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
}

.bs-toc-inline ul {
  margin: 0;
  padding-left: 20px;
}

.bs-toc-inline li {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Callout */
.bs-callout {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0 0 28px;
}

/* Workflow */
.bs-workflow {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 24px;
  margin: 0 0 28px;
}

.bs-workflow__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 20px;
}

.bs-workflow__step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.bs-workflow__step:first-of-type {
  border-top: none;
  padding-top: 0;
}

.bs-workflow__num {
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  min-width: 28px;
  margin-top: 2px;
}

.bs-workflow__step > div {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.bs-workflow__step strong {
  display: block;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

/* Tools Grid */
.bs-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

.bs-tool {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 20px;
}

.bs-tool__category {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 8px;
}

.bs-tool strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}

.bs-tool p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.55;
}

/* Mistakes */
.bs-mistakes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
}

.bs-mistake {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bs-mistake:last-child {
  border-bottom: none;
}

.bs-mistake__num {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  min-width: 44px;
  line-height: 1;
  margin-top: 2px;
}

.bs-mistake > div strong {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.bs-mistake > div p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.65;
}

/* 4-Week Plan */
.bs-plan {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
}

.bs-plan__week {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bs-plan__week:last-child {
  border-bottom: none;
}

.bs-plan__num {
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  height: fit-content;
  margin-top: 2px;
}

.bs-plan__week > div strong {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.bs-plan__week > div p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.65;
}

/* FAQ */
.bs-faq {
  margin: 0 0 28px;
}

.bs-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 4px 0;
}

.bs-faq__item:last-child {
  border-bottom: none;
}

.bs-faq__item summary {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.bs-faq__item summary::-webkit-details-marker { display: none; }

.bs-faq__item summary::after {
  content: '+';
  font-size: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bs-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.bs-faq__item[open] summary {
  color: #fff;
}

.bs-faq__item p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

/* Article CTA Block */
.bs-cta-block {
  background: linear-gradient(135deg, #1a1400 0%, #151515 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.bs-cta-block h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  color: #fff;
  margin: 0 0 12px;
}

.bs-cta-block p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 28px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .bs-layout {
    grid-template-columns: 1fr;
  }

  .bs-toc {
    position: static;
    display: none; /* hide sidebar TOC on mobile, inline TOC handles it */
  }

  .bs-tools-grid {
    grid-template-columns: 1fr;
  }

  .bs-stat-block {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .bl-card--featured {
    padding: 24px;
  }

  .bl-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bs-header {
    padding: 60px 0 40px;
  }

  .bs-stat-block {
    grid-template-columns: 1fr;
  }

  .bs-stat__num {
    font-size: 28px;
  }

  .bs-workflow__step {
    flex-direction: column;
    gap: 8px;
  }

  .bs-mistake,
  .bs-plan__week {
    flex-direction: column;
    gap: 10px;
  }

  .bs-cta-block {
    padding: 28px 20px;
  }
}

/* ---- DYNAMIC ADDITIONS ---- */

/* Card regular (non-featured) */
.bl-card--regular {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.bl-card--regular:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-2px);
}

.bl-card__cover {
  display: block;
  overflow: hidden;
  height: 200px;
}

.bl-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bl-card--regular:hover .bl-card__cover img {
  transform: scale(1.03);
}

.bl-card__body {
  padding: 24px;
}

.bl-card--featured .bl-card__body {
  padding: 0;
}

/* Grid 3-col for regular cards */
.bl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bl-grid .bl-card--featured ~ .bl-card--regular {
  /* after featured card, switch to 3-col */
}

/* Pagination */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.bl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.15s;
}

.bl-page-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.bl-page-btn--active { background: #f59e0b; border-color: #f59e0b; color: #000; font-weight: 700; }

/* Cover image on single post */
.bs-cover {
  padding: 0 0 40px;
}

.bs-cover__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

/* TOC sub-links */
.bs-toc__link--sub {
  padding-left: 20px;
  font-size: 12px;
}

/* Post footer */
.bs-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bs-post-footer__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-post-footer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bs-post-footer__author strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.bs-post-footer__author span {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.bs-post-footer__share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.bs-post-footer__share a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 500;
}

/* Related posts */
.bs-related {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bs-related__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.bs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bs-related__card {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s;
}

.bs-related__card:hover { border-color: rgba(245,158,11,0.3); }

.bs-related__card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.bs-related__body {
  padding: 16px;
}

.bs-related__body strong {
  display: block;
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.bs-related__body span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .bs-related__grid { grid-template-columns: 1fr; }
  .bs-post-footer { flex-direction: column; align-items: flex-start; }
}

/* ---- DYNAMIC ADDITIONS ---- */

/* Regular (non-featured) cards */
.bl-card--regular {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px 32px;
  transition: border-color 0.2s;
}
.bl-card--regular:hover { border-color: rgba(245,158,11,0.3); }
.bl-card--regular .bl-card__title { font-size: clamp(17px, 2vw, 21px); }

/* Cover image on featured card */
.bl-card__cover { margin: -40px -40px 28px; overflow: hidden; border-radius: 12px 12px 0 0; max-height: 320px; }
.bl-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TOC sub-links (h3) */
.bs-toc__link--sub { padding-left: 18px; font-size: 12px; }

/* Cover image on single post */
.bs-cover { padding: 32px 0 0; }
.bs-cover__img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; display: block; }

/* Related posts */
.bs-related { margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.07); }
.bs-related__title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.bs-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bs-related__card { background: #151515; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.bs-related__card:hover { border-color: rgba(245,158,11,0.3); }
.bs-related__img { height: 140px; overflow: hidden; }
.bs-related__img img { width: 100%; height: 100%; object-fit: cover; }
.bs-related__body { padding: 16px; }
.bs-related__cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f59e0b; }
.bs-related__name { font-size: 14px; font-weight: 600; color: #fff; margin: 8px 0 6px; line-height: 1.4; }
.bs-related__date { font-size: 12px; color: rgba(255,255,255,0.3); }

@media (max-width: 760px) {
  .bs-related__grid { grid-template-columns: 1fr; }
  .bl-card__cover { margin: -24px -24px 24px; }
}