/* ==========================================
   VẺ ĐẸP ĐÍCH THỰC — SINGLE POST STYLES
   css/single.css
   ========================================== */

/* ─── Single Layout Base ───────────────────────────────── */
.vddt-single {
  padding-bottom: 80px;
}

.vddt-single-wrap {
  display: grid;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.vddt-single-wrap--with-toc {
  grid-template-columns: 1fr 280px;
  align-items: start;
}

.vddt-single-main {
  min-width: 0;
}

/* ─── Single Hero ──────────────────────────────────────── */
.vddt-single-hero {
  padding: 52px 0 36px;
}

.vddt-single-hero .container {
  max-width: 860px;
}

.vddt-single-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.vddt-single-cat-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}

.vddt-single-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 20px;
}

.vddt-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #8b8494;
  font-weight: 600;
  flex-wrap: wrap;
}

.vddt-single-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: #ccc4d4;
  flex-shrink: 0;
}

/* ─── Featured Image ───────────────────────────────────── */
.vddt-single-thumb {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: 24px;
  overflow: hidden;
}

.vddt-single-thumb img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ─── Table of Contents ─────────────────────────────────── */
.vddt-toc {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  overflow: hidden;
}

.vddt-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.vddt-toc-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.1px;
  margin: 0;
}

.vddt-toc-toggle {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .2s ease;
}

.vddt-toc-toggle:hover {
  background: var(--soft);
}

.vddt-toc-body {
  padding: 16px 20px 20px;
}

.vddt-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vddt-toc-list li {
  font-size: 13px;
  line-height: 1.5;
}

.vddt-toc-list a {
  color: var(--text);
  font-weight: 600;
  transition: color .2s ease;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vddt-toc-list a::before {
  content: attr(data-num);
  color: var(--hot);
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
}

.vddt-toc-list a:hover,
.vddt-toc-list a.is-active {
  color: var(--hot);
}

.vddt-toc-list li.vddt-toc-h3 {
  padding-left: 18px;
}

.vddt-toc-list li.vddt-toc-h3 a {
  font-size: 12px;
}

/* Sticky TOC sidebar */
.vddt-toc-sidebar {
  position: sticky;
  top: 100px;
}

/* Inline TOC (mobile / inside article) */
.vddt-toc-inline {
  display: none;
  margin: 28px 0;
}

.vddt-toc-inline .vddt-toc {
  border-radius: 16px;
}

/* ─── Entry Content ─────────────────────────────────────── */
.vddt-entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}

.vddt-entry-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: -.5px;
  scroll-margin-top: 100px;
}

.vddt-entry-content h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -.3px;
  scroll-margin-top: 100px;
}

.vddt-entry-content p {
  margin: 0 0 20px;
}

.vddt-entry-content ul,
.vddt-entry-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
  line-height: 1.85;
}

.vddt-entry-content li {
  margin-bottom: 6px;
}

.vddt-entry-content a {
  color: var(--hot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vddt-entry-content strong {
  font-weight: 800;
  color: var(--ink);
}

.vddt-entry-content img {
  border-radius: 18px;
  margin: 20px 0;
  max-width: 100%;
}

.vddt-single-skin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.vddt-single-skin-badges span {
  border: 1px solid rgba(9, 168, 126, .22);
  border-radius: 999px;
  background: rgba(124, 243, 208, .12);
  color: #087f64;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
}

/* ─── Info Boxes ─────────────────────────────────────────── */
.vddt-box {
  border-radius: 20px;
  padding: 24px 28px;
  margin: 28px 0;
}

.vddt-box h4 {
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vddt-box ul, .vddt-box ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.vddt-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* Skincare boxes */
.vddt-box--note {
  background: rgba(124, 243, 208, .12);
  border: 1px solid rgba(124, 243, 208, .35);
}

.vddt-box--note h4 { color: #09a87e; }

.vddt-box--routine {
  background: linear-gradient(135deg, rgba(94, 220, 255, .08), rgba(124, 243, 208, .08));
  border: 1px solid rgba(94, 220, 255, .25);
}

.vddt-box--routine h4 { color: #0590a6; }

/* Makeup boxes */
.vddt-box--tips {
  background: rgba(255, 47, 134, .07);
  border: 1px solid rgba(255, 47, 134, .2);
}

.vddt-box--tips h4 { color: var(--hot); }

.vddt-box--products {
  background: rgba(140, 108, 255, .07);
  border: 1px solid rgba(140, 108, 255, .2);
}

.vddt-box--products h4 { color: var(--purple); }

/* Bodycare boxes */
.vddt-box--checklist {
  background: rgba(255, 230, 216, .5);
  border: 1px solid rgba(255, 122, 107, .2);
}

.vddt-box--checklist h4 { color: #c44d36; }

.vddt-box--habit {
  background: rgba(124, 243, 208, .1);
  border: 1px solid rgba(124, 243, 208, .3);
}

.vddt-box--habit h4 { color: #09a87e; }

/* Lifestyle boxes */
.vddt-box--try {
  background: rgba(140, 108, 255, .08);
  border: 1px solid rgba(140, 108, 255, .22);
}

.vddt-box--try h4 { color: var(--purple); }

.vddt-box--plan {
  background: linear-gradient(135deg, rgba(255, 47, 134, .07), rgba(140, 108, 255, .07));
  border: 1px solid rgba(140, 108, 255, .2);
}

.vddt-box--plan h4 { color: var(--hot); }

/* ─── FAQ Accordion ─────────────────────────────────────── */
.vddt-faq {
  margin: 36px 0;
}

.vddt-faq-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 20px;
  letter-spacing: -.4px;
}

.vddt-faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

.vddt-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: white;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  gap: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.vddt-faq-q:hover {
  background: var(--soft);
}

.vddt-faq-icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: var(--hot);
}

.vddt-faq-item.is-open .vddt-faq-icon {
  transform: rotate(45deg);
}

.vddt-faq-a {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  display: none;
}

.vddt-faq-item.is-open .vddt-faq-a {
  display: block;
}

/* ─── Single Quote ──────────────────────────────────────── */
.vddt-single-quote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  border-left: 4px solid var(--hot);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(255, 47, 134, .04);
  border-radius: 0 18px 18px 0;
  letter-spacing: -.3px;
}

/* ─── Post Navigation ───────────────────────────────────── */
.vddt-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.vddt-post-nav-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: .2s ease;
}

.vddt-post-nav-item:hover {
  border-color: var(--hot);
  box-shadow: 0 10px 28px rgba(255, 47, 134, .1);
}

.vddt-post-nav-dir {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 6px;
}

.vddt-post-nav-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

/* ─── Skincare single specifics ────────────────────────── */
.vddt-single-skincare .vddt-toc-title { color: #09a87e; }
.vddt-single-skincare .vddt-single-cat-tag {
  background: rgba(124, 243, 208, .18);
  color: #09a87e;
}

.vddt-single-skincare .vddt-single-wrap {
  gap: 56px;
}

.vddt-single-skincare .vddt-entry-content {
  max-width: 760px;
}

/* ─── Makeup single specifics ──────────────────────────── */
.vddt-single-makeup .vddt-toc-title { color: var(--hot); }
.vddt-single-makeup .vddt-single-cat-tag {
  background: rgba(255, 47, 134, .1);
  color: var(--hot);
}
.vddt-single-makeup .vddt-single-hero {
  background: linear-gradient(135deg, #fff0f7 0%, #f5f0ff 100%);
}

.vddt-single-makeup .vddt-single-thumb {
  max-width: 1120px;
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(255, 47, 134, .16);
}

.vddt-single-makeup .vddt-single-thumb img {
  height: 560px;
}

.vddt-single-makeup .vddt-toc {
  border-color: rgba(255, 47, 134, .18);
  box-shadow: 0 18px 45px rgba(255, 47, 134, .14);
  transform: translateY(12px);
}

/* ─── Bodycare single specifics ────────────────────────── */
.vddt-single-bodycare .vddt-toc-title { color: #c44d36; }
.vddt-single-bodycare .vddt-single-cat-tag {
  background: rgba(255, 230, 216, .7);
  color: #c44d36;
}
.vddt-single-bodycare .vddt-single-hero {
  background: linear-gradient(135deg, #fff6f0 0%, #f0fff8 100%);
}

.vddt-single-bodycare .vddt-toc,
.vddt-single-bodycare .vddt-box {
  border-radius: 28px;
}

.vddt-single-bodycare .vddt-entry-content {
  background: linear-gradient(180deg, rgba(255, 246, 240, .45), rgba(255, 255, 255, 0));
  border-radius: 28px;
  padding: 18px 22px;
}

/* ─── Lifestyle single specifics ───────────────────────── */
.vddt-single-lifestyle .vddt-toc-title { color: var(--purple); }
.vddt-single-lifestyle .vddt-single-cat-tag {
  background: rgba(140, 108, 255, .12);
  color: var(--purple);
}
.vddt-single-lifestyle .vddt-single-hero {
  background: linear-gradient(135deg, #f5f0ff 0%, #fff0f8 100%);
}

.vddt-single-lifestyle .vddt-toc-list {
  gap: 0;
  border-left: 2px solid rgba(140, 108, 255, .18);
  margin-left: 8px;
  padding-left: 14px;
}

.vddt-single-lifestyle .vddt-toc-list li {
  position: relative;
  padding: 0 0 12px;
}

.vddt-single-lifestyle .vddt-toc-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--hot));
}

.vddt-single-lifestyle .vddt-toc-list li.vddt-toc-h3 {
  padding-left: 0;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .vddt-single-wrap--with-toc {
    grid-template-columns: 1fr;
  }

  .vddt-toc-sidebar {
    display: none;
  }

  .vddt-toc-inline {
    display: block;
  }
}

@media (max-width: 768px) {
  .vddt-single-thumb img {
    height: 260px;
  }

  .vddt-single-hero {
    padding: 36px 0 24px;
  }

  .vddt-post-nav {
    grid-template-columns: 1fr;
  }

  .vddt-single-title {
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .vddt-single-wrap {
    padding: 0 14px;
  }

  .vddt-single-title {
    font-size: 26px;
    line-height: 1.18;
  }

  .vddt-single-meta,
  .vddt-single-eyebrow {
    gap: 8px;
  }

  .vddt-toc-header,
  .vddt-toc-body,
  .vddt-box {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vddt-entry-content {
    font-size: 16px;
  }
}

/* Professional article polish */
.vddt-single {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 47, 134, .08), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(94, 220, 255, .1), transparent 28%),
    linear-gradient(180deg, #fffafd 0%, #fff 42%, #fffafd 100%);
}

.vddt-single-hero {
  position: relative;
  padding: 58px 0 46px;
  text-align: center;
}

.vddt-single-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 47, 134, .18), transparent);
}

.vddt-single-hero .container {
  max-width: 940px;
}

.vddt-single-eyebrow,
.vddt-single-meta {
  justify-content: center;
}

.vddt-single-cat-tag {
  box-shadow: 0 10px 26px rgba(255, 47, 134, .08);
}

.vddt-single-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.vddt-single-summary {
  max-width: 740px;
  margin: -4px auto 24px;
  color: #6f6578;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.7;
  text-wrap: balance;
}

.vddt-single-meta {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 47, 134, .08);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(22, 20, 31, .05);
  display: inline-flex;
  padding: 10px 16px;
}

.vddt-single-thumb {
  position: relative;
  max-width: 1120px;
  margin-top: -10px;
  margin-bottom: 54px;
  border: 10px solid rgba(255, 255, 255, .84);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(22, 20, 31, .14);
}

.vddt-single-thumb img {
  height: min(520px, 48vw);
}

.vddt-single-wrap {
  max-width: 1260px;
  gap: 46px;
}

.vddt-single-wrap--with-toc {
  grid-template-columns: minmax(0, 820px) 300px;
  justify-content: center;
}

.vddt-single-main {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 47, 134, .08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(22, 20, 31, .08);
  padding: 34px clamp(22px, 4vw, 54px) 42px;
}

.vddt-entry-content {
  color: #5e5669;
  font-size: 18px;
  letter-spacing: 0;
}

.vddt-entry-content > p:first-child {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.8;
  margin-bottom: 28px;
}

.vddt-entry-content h2 {
  position: relative;
  margin-top: 54px;
  padding-top: 8px;
  padding-left: 18px;
}

.vddt-entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hot), var(--purple));
}

.vddt-entry-content h3 {
  margin-top: 34px;
}

.vddt-entry-content p,
.vddt-entry-content li {
  text-wrap: pretty;
}

.vddt-entry-content a {
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.vddt-box {
  box-shadow: 0 16px 38px rgba(22, 20, 31, .05);
}

.vddt-toc {
  border-color: rgba(255, 47, 134, .1);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(22, 20, 31, .08);
}

.vddt-toc-header {
  background: linear-gradient(135deg, rgba(255, 240, 247, .86), rgba(245, 240, 255, .86));
}

.vddt-toc-list {
  gap: 8px;
}

.vddt-toc-list a {
  border-radius: 12px;
  padding: 8px 10px;
  text-decoration: none;
}

.vddt-toc-list a:hover,
.vddt-toc-list a.is-active {
  background: rgba(255, 47, 134, .08);
}

.vddt-cat-back {
  box-shadow: 0 12px 34px rgba(22, 20, 31, .05);
}

.vddt-post-nav-item {
  box-shadow: 0 16px 42px rgba(22, 20, 31, .05);
}

.vddt-single-skincare .vddt-entry-content h2::before {
  background: linear-gradient(180deg, #09a87e, var(--cyan));
}

.vddt-single-makeup .vddt-entry-content h2::before {
  background: linear-gradient(180deg, var(--hot), var(--purple));
}

.vddt-single-bodycare .vddt-entry-content h2::before {
  background: linear-gradient(180deg, #c44d36, #ffc3a5);
}

.vddt-single-lifestyle .vddt-entry-content h2::before {
  background: linear-gradient(180deg, var(--purple), var(--cyan));
}

@media (max-width: 1024px) {
  .vddt-single-main {
    padding: 28px clamp(18px, 4vw, 40px) 36px;
  }

  .vddt-single-thumb {
    margin-bottom: 34px;
  }
}

@media (max-width: 768px) {
  .vddt-single-hero {
    padding: 36px 0 28px;
  }

  .vddt-single-meta {
    border-radius: 18px;
    justify-content: center;
  }

  .vddt-single-thumb {
    border-width: 6px;
    border-radius: 22px;
  }

  .vddt-single-thumb img,
  .vddt-single-makeup .vddt-single-thumb img {
    height: 280px;
  }

  .vddt-single-main {
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(22, 20, 31, .06);
  }

  .vddt-entry-content {
    font-size: 17px;
  }
}

@media (max-width: 390px) {
  .vddt-single-main {
    padding: 22px 16px 30px;
  }

  .vddt-single-meta {
    width: 100%;
  }

  .vddt-entry-content h2 {
    padding-left: 14px;
  }
}
