/* ============================================================
   BLOG + ARTICLE PAGES — blog.css
   ============================================================ */


/* ============================================================
   BLOG PAGE
   ============================================================ */

/* ── Blog Hero ────────────────────────────────────────────── */
.blog-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(36px, 4.5vw, 60px);
  text-align: center;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.blog-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 108px);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--c-white);
  margin-bottom: 18px;
}

.blog-hero__sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, .45);
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.55;
}


/* ── Category Tabs ────────────────────────────────────────── */
.blog-cats {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.blog-cats__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-cats__inner::-webkit-scrollbar { display: none; }

.blog-cats__btn {
  flex-shrink: 0;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(255, 255, 255, .45);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
  margin-bottom: -1px;
  white-space: nowrap;
}

.blog-cats__btn:hover {
  color: var(--c-white);
}

.blog-cats__btn.is-active {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
}


/* ── Featured Article ─────────────────────────────────────── */
.blog-featured {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.blog-featured__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.blog-featured__link:hover {
  border-color: rgba(153, 238, 45, .28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}

.blog-featured__img-wrap {
  position: relative;
  overflow: hidden;
}

.blog-featured__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(17, 17, 17, .6) 100%);
  pointer-events: none;
}

.blog-featured__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.blog-featured__link:hover .blog-featured__img {
  transform: scale(1.04);
}

.blog-featured__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--c-green);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 14px;
  clip-path: var(--clip-sm);
}

.blog-featured__content {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.blog-featured__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  color: var(--c-white);
  transition: color .2s;
}

.blog-featured__link:hover .blog-featured__title {
  color: var(--c-green-light);
}

.blog-featured__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  flex-wrap: wrap;
}

.blog-featured__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .04em;
  margin-top: 4px;
  transition: gap .2s ease;
}

.blog-featured__link:hover .blog-featured__cta {
  gap: 14px;
}


/* ── Articles Section ─────────────────────────────────────── */
.blog-list {
  margin-bottom: var(--section-gap);
}

.blog-list__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}

.blog-list__heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  color: rgba(255, 255, 255, .3);
  letter-spacing: .06em;
}

.blog-list__count {
  font-size: 12px;
  color: rgba(255, 255, 255, .25);
  letter-spacing: .04em;
}

.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

/* No results message */
.blog-list__empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, .3);
  font-size: 15px;
}

.blog-list__empty.is-visible {
  display: block;
}


/* ── Blog Card ─────────────────────────────────────────────── */
.blog-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(153, 238, 45, .22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.blog-card[style*="display: none"] { display: none !important; }

.blog-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
}

.blog-card__cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 17, .82);
  color: var(--c-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.15;
  color: var(--c-white);
  transition: color .2s;
}

.blog-card:hover .blog-card__title {
  color: var(--c-green-light);
}

.blog-card__text {
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.blog-card__date {
  font-size: 11px;
  color: rgba(255, 255, 255, .28);
  letter-spacing: .04em;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  transition: gap .2s ease;
}

.blog-card:hover .blog-card__cta {
  gap: 10px;
}


/* ── Responsive: Blog page ────────────────────────────────── */
@media (max-width: 920px) {
  .blog-featured__link {
    grid-template-columns: 1fr;
  }
  .blog-featured__img-wrap::after {
    background: linear-gradient(0deg, rgba(17, 17, 17, .7) 0%, transparent 60%);
  }
  .blog-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .blog-list__grid {
    grid-template-columns: 1fr;
  }
  .blog-hero__title {
    font-size: clamp(44px, 11vw, 80px);
  }
}


/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* ── Article Hero ─────────────────────────────────────────── */
.article-hero {
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px));
  padding-bottom: clamp(32px, 4vw, 56px);
}

.article-hero__inner {
  max-width: 840px;
}

.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.article-hero__breadcrumb a {
  color: rgba(255, 255, 255, .32);
  text-decoration: none;
  transition: color .2s;
}

.article-hero__breadcrumb a:hover {
  color: var(--c-green);
}

.article-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, .2);
  line-height: 1;
}

.article-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  color: var(--c-white);
  margin-bottom: 22px;
}

.article-hero__intro {
  font-size: clamp(15px, 1.7vw, 17px);
  color: rgba(255, 255, 255, .56);
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 640px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.article-hero__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}


/* ── Cover Image ──────────────────────────────────────────── */
.article-cover {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.article-cover__img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
}


/* ── Two-column layout ────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 264px;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
  margin-bottom: var(--section-gap);
}


/* ── Article Body (rich text) ─────────────────────────────── */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--c-white);
  margin-top: clamp(36px, 4.5vw, 56px);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 16px;
}

.article-body strong {
  color: var(--c-white);
  font-weight: 600;
}

.article-body a {
  color: var(--c-green-light);
  text-decoration: underline;
  text-decoration-color: rgba(153, 238, 45, .3);
  transition: color .2s, text-decoration-color .2s;
}

.article-body a:hover {
  color: var(--c-green);
  text-decoration-color: var(--c-green);
}

.article-body ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 18px;
}

.article-body ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .65);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
}


/* ── Remove underline from article-skin anchor ───────────── */
/* .article-body a raises specificity to 11; override with 20 */
.article-body a.article-skin,
.article-body a.article-skin:hover {
  text-decoration: none;
  color: inherit;
}

/* ── Internal Link Block ──────────────────────────────────── */
.article-linkblock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(153, 238, 45, .06);
  border-left: 3px solid var(--c-green);
  margin: 28px 0;
  text-decoration: none !important;
  transition: background .2s;
}

.article-linkblock:hover {
  background: rgba(153, 238, 45, .11);
}

.article-linkblock__icon {
  color: var(--c-green);
  flex-shrink: 0;
}

.article-linkblock__label {
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.article-linkblock__text {
  font-size: 14px;
  color: var(--c-green-light);
  font-weight: 500;
  text-decoration: none;
}

.article-linkblock__arrow {
  margin-left: auto;
  color: var(--c-green);
  flex-shrink: 0;
  transition: transform .2s;
}

.article-linkblock:hover .article-linkblock__arrow {
  transform: translateX(4px);
}


/* ── Skin Purchase Card (inline) ──────────────────────────── */
.article-skin {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: clamp(16px, 2vw, 22px);
  margin: 28px 0;
  text-decoration: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.article-skin:hover {
  border-color: rgba(153, 238, 45, .25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.article-skin__img-wrap {
  flex-shrink: 0;
  width: clamp(88px, 12vw, 128px);
  height: clamp(60px, 8vw, 84px);
  background: rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-skin__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.article-skin:hover .article-skin__img {
  transform: scale(1.07);
}

.article-skin__info {
  flex: 1;
  min-width: 0;
}

.article-skin__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.article-skin__condition {
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  letter-spacing: .04em;
}

.article-skin__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.article-skin__price {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--c-green);
  line-height: 1;
}


/* ── Sidebar ──────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOC */
.article-toc {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 24px;
}

.article-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 16px;
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color .2s;
  line-height: 1.4;
}

.article-toc__link:last-child { border-bottom: none; }

.article-toc__link:hover,
.article-toc__link.is-active {
  color: var(--c-green);
}

.article-toc__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-green);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .6;
}

.article-toc__link.is-active .article-toc__num {
  opacity: 1;
}

/* Sidebar promo */
.article-promo {
  background: linear-gradient(140deg, rgba(153, 238, 45, .11) 0%, rgba(153, 238, 45, .04) 100%);
  border: 1px solid rgba(153, 238, 45, .22);
  padding: 24px;
  text-align: center;
}

.article-promo__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-white);
  margin-bottom: 8px;
}

.article-promo__text {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.55;
  margin-bottom: 20px;
}


/* ── Related Articles ─────────────────────────────────────── */
.article-related {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: var(--section-gap);
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.article-related__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 10px;
}

.article-related__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  color: var(--c-white);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}


/* ── Responsive: Article page ─────────────────────────────── */
@media (max-width: 1040px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 740px) {
  .article-cover__img {
    aspect-ratio: 16 / 9;
  }

  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-skin {
    flex-wrap: wrap;
  }

  .article-skin__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .article-related__grid {
    grid-template-columns: 1fr;
  }
}
