/* ==========================================
   VẺ ĐẸP ĐÍCH THỰC — CATEGORY STYLES
   css/category.css
   ========================================== */

/* ─── Shared Category Hero ─────────────────────────────── */
.vddt-category-hero {
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
}

.vddt-cat-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.vddt-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  width: fit-content;
}

.vddt-cat-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
}

.vddt-cat-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  max-width: 580px;
  margin: 0;
}

/* ─── Shared Card Base ─────────────────────────────────── */
.vddt-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}

.vddt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(22, 20, 31, .12);
}

.vddt-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.vddt-card-body {
  padding: 22px 24px 24px;
}

.vddt-card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.vddt-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.3px;
}

.vddt-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}

.vddt-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8b8494;
  font-weight: 600;
}

.vddt-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 14px;
  transition: gap .2s ease;
}

.vddt-card-cta:hover {
  gap: 10px;
}

/* ─── Featured Card (Ngang) ───────────────────────────── */
.vddt-featured-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(22, 20, 31, .08);
  margin-bottom: 32px;
}

.vddt-featured-card-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.vddt-featured-card-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.vddt-featured-card-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 0;
}

/* ─── Grid Posts ───────────────────────────────────────── */
.vddt-posts-grid {
  display: grid;
  gap: 22px;
}

.vddt-posts-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vddt-posts-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Sidebar ──────────────────────────────────────────── */
.vddt-cat-layout {
  display: grid;
  gap: 32px;
}

.vddt-cat-layout--has-sidebar {
  grid-template-columns: 1fr 310px;
}

.vddt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vddt-sidebar-widget {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.vddt-sidebar-widget h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -.2px;
}

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

.vddt-sidebar-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.vddt-sidebar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hot);
  font-weight: 900;
}

/* ─── Filter Pills ─────────────────────────────────────── */
.vddt-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.vddt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: white;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
}

.vddt-pill:hover,
.vddt-pill.is-active {
  border-color: var(--hot);
  color: var(--hot);
  background: rgba(255, 47, 134, .06);
}

/* ─── Section Divider Heading ──────────────────────────── */
.vddt-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.vddt-section-label h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -.4px;
}

.vddt-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─── Quote Block ──────────────────────────────────────── */
.vddt-cat-quote {
  background: linear-gradient(135deg, var(--soft), #fff0f8);
  border-radius: 28px;
  padding: 36px 40px;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -.3px;
  margin: 40px 0;
  position: relative;
}

.vddt-cat-quote::before {
  content: "\201C";
  font-size: 72px;
  color: var(--hot);
  opacity: .2;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
  font-family: Georgia, serif;
}

/* ─── Trend Chips ──────────────────────────────────────── */
.vddt-trend-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, #fff0f7, #f0edff);
  border-radius: 22px;
  margin-bottom: 32px;
}

.vddt-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
  border: 1px solid rgba(140, 108, 255, .2);
  text-decoration: none;
  transition: .2s ease;
}

.vddt-chip:hover {
  background: var(--purple);
  color: white;
}

/* ─── Timeline Routine ─────────────────────────────────── */
.vddt-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.vddt-timeline-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  position: relative;
}

.vddt-timeline-time {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vddt-timeline-item h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.2px;
}

.vddt-timeline-item p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ─── Glow Days Grid ───────────────────────────────────── */
.vddt-glow-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.vddt-day-card {
  background: white;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--line);
  transition: .2s ease;
}

.vddt-day-card:hover {
  border-color: var(--hot);
  box-shadow: 0 10px 28px rgba(255, 47, 134, .12);
}

.vddt-day-num {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: var(--hot);
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.vddt-day-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

/* ─── Story Cards ──────────────────────────────────────── */
.vddt-story-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 340px 1fr;
  box-shadow: 0 14px 40px rgba(22, 20, 31, .07);
  transition: .25s ease;
}

.vddt-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(22, 20, 31, .12);
}

.vddt-story-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.vddt-story-card-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.vddt-story-card-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 0;
}

/* ─── Occasion Grid (Makeup by occasion) ──────────────── */
.vddt-occasion-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.vddt-occasion-item {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  transition: .2s ease;
  text-decoration: none;
}

.vddt-occasion-item:hover {
  border-color: var(--hot);
  background: rgba(255, 47, 134, .04);
}

.vddt-occasion-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.vddt-occasion-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

/* ─── Bodycare Categories ──────────────────────────────── */
.vddt-bodycat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.vddt-bodycat-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
}

.vddt-bodycat-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.vddt-bodycat-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

/* ─── Glow Habits ──────────────────────────────────────── */
.vddt-habits-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.vddt-habit-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  transition: .2s ease;
}

.vddt-habit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(140, 108, 255, .14);
}

.vddt-habit-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.vddt-habit-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

/* ─── Skin Problem Filters ─────────────────────────────── */
.vddt-skin-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.vddt-skin-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
}

.vddt-skin-type-btn:hover {
  border-color: #7cf3d0;
  color: #09a87e;
  background: rgba(124, 243, 208, .08);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHĂM SÓC DA — Mint/Cyan theme
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.vddt-cat-skincare .vddt-category-hero {
  background: linear-gradient(135deg, #edfff8 0%, #e8f9ff 50%, #fff0f8 100%);
}

.vddt-cat-skincare .vddt-cat-badge {
  background: rgba(124, 243, 208, .2);
  color: #09a87e;
  border: 1px solid rgba(124, 243, 208, .4);
}

.vddt-cat-skincare .vddt-cat-title {
  color: var(--ink);
}

.vddt-cat-skincare .vddt-card-tag {
  background: rgba(124, 243, 208, .18);
  color: #09a87e;
}

.vddt-cat-skincare .vddt-card-cta {
  color: #09a87e;
}

.vddt-cat-skincare .vddt-skin-type-btn:hover {
  border-color: var(--mint);
  color: #09a87e;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAKEUP — Hot pink/Purple theme
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.vddt-cat-makeup .vddt-category-hero {
  background: linear-gradient(135deg, #fff0f7 0%, #f3f0ff 55%, #fff4e8 100%);
}

.vddt-cat-makeup .vddt-cat-badge {
  background: linear-gradient(135deg, var(--hot), var(--purple));
  color: white;
}

.vddt-cat-makeup .vddt-card-tag {
  background: rgba(255, 47, 134, .1);
  color: var(--hot);
}

.vddt-cat-makeup .vddt-card-cta {
  color: var(--hot);
}

.vddt-cat-makeup .vddt-occasion-item:hover {
  border-color: var(--hot);
  background: rgba(255, 47, 134, .05);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BODYCARE — Peach/Warm theme
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.vddt-cat-bodycare .vddt-category-hero {
  background: linear-gradient(135deg, #fff6f0 0%, #fff0f7 50%, #f0fff8 100%);
}

.vddt-cat-bodycare .vddt-cat-badge {
  background: rgba(255, 122, 107, .15);
  color: #d94f3a;
  border: 1px solid rgba(255, 122, 107, .3);
}

.vddt-cat-bodycare .vddt-card-tag {
  background: rgba(255, 230, 216, .7);
  color: #c44d36;
}

.vddt-cat-bodycare .vddt-card-cta {
  color: var(--coral);
}

.vddt-cat-bodycare .vddt-timeline-time {
  color: var(--coral);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GLOW LIFESTYLE — Purple/Pink/Cyan gradient
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.vddt-cat-lifestyle .vddt-category-hero {
  background: linear-gradient(135deg, #f5f0ff 0%, #fff0f8 45%, #e8f9ff 100%);
}

.vddt-cat-lifestyle .vddt-cat-badge {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
}

.vddt-cat-lifestyle .vddt-card-tag {
  background: rgba(140, 108, 255, .12);
  color: var(--purple);
}

.vddt-cat-lifestyle .vddt-card-cta {
  color: var(--purple);
}

.vddt-cat-lifestyle .vddt-day-num {
  color: var(--purple);
}

.vddt-cat-lifestyle .vddt-day-card:hover {
  border-color: var(--purple);
  box-shadow: 0 10px 28px rgba(140, 108, 255, .14);
}

/* ─── Newsletter inline ─────────────────────────────────── */
.vddt-cat-newsletter {
  background: linear-gradient(135deg, var(--hot), var(--purple));
  border-radius: 32px;
  padding: 40px;
  color: white;
  text-align: center;
  margin-top: 48px;
}

.vddt-cat-newsletter h2 {
  color: white;
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
}

.vddt-cat-newsletter p {
  color: rgba(255, 255, 255, .85);
  margin: 0 0 20px;
}

.vddt-cat-newsletter .form {
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Makeup Hero Inner ────────────────────────────────── */
.vddt-makeup-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.vddt-makeup-trends {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

/* ─── Magazine Grid ────────────────────────────────────── */
.vddt-magazine-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-bottom: 40px;
}

.vddt-magazine-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vddt-editorial-card {
  display: flex;
  gap: 14px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: .2s ease;
}

.vddt-editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(22, 20, 31, .1);
}

.vddt-editorial-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.vddt-editorial-card-body {
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

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

/* ─── Bodycare Hero Inner ──────────────────────────────── */
.vddt-bodycare-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.vddt-bodycare-checklist {
  background: white;
  border-radius: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(22, 20, 31, .07);
}

.vddt-bodycare-checklist-title {
  font-size: 14px;
  font-weight: 900;
  color: #c44d36;
  margin: 0 0 16px;
  letter-spacing: .02em;
}

.vddt-bodycare-checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vddt-bodycare-checklist-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vddt-checklist-icon {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  min-width: 90px;
}

.vddt-checklist-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Glow Hero Inner ──────────────────────────────────── */
.vddt-glow-hero-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.vddt-glow-habits-panel {
  /* No extra styling needed, children handle it */
}

.vddt-glow-habits-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--purple);
  margin: 0 0 16px;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .vddt-makeup-hero-inner,
  .vddt-bodycare-hero-inner,
  .vddt-glow-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vddt-makeup-trends {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vddt-magazine-grid {
    grid-template-columns: 1fr;
  }
  .vddt-cat-layout--has-sidebar {
    grid-template-columns: 1fr;
  }

  .vddt-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vddt-sidebar-widget {
    flex: 1;
    min-width: 240px;
  }

  .vddt-glow-days {
    grid-template-columns: repeat(4, 1fr);
  }

  .vddt-occasion-grid,
  .vddt-bodycat-grid,
  .vddt-habits-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .vddt-featured-card {
    grid-template-columns: 1fr;
  }

  .vddt-featured-card-img {
    height: 240px;
  }

  .vddt-posts-grid--2,
  .vddt-posts-grid--3 {
    grid-template-columns: 1fr;
  }

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

  .vddt-glow-days {
    grid-template-columns: repeat(3, 1fr);
  }

  .vddt-occasion-grid,
  .vddt-bodycat-grid,
  .vddt-habits-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .vddt-story-card {
    grid-template-columns: 1fr;
  }

  .vddt-story-card-img {
    height: 220px;
  }

  .vddt-category-hero {
    padding: 36px 0 32px;
  }

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

  .vddt-editorial-card img {
    width: 70px;
    height: 70px;
  }

  .vddt-cat-title {
    font-size: clamp(28px, 5vw, 42px);
  }
}

@media (max-width: 480px) {
  .vddt-glow-days {
    grid-template-columns: repeat(2, 1fr);
  }

  .vddt-occasion-grid,
  .vddt-bodycat-grid,
  .vddt-habits-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .vddt-cat-newsletter {
    padding: 28px 20px;
  }
}
