/* =========================================================
   CSS bài viết ẩm thực - scoped cho .ldr-food-article
   Không ảnh hưởng tới các phần khác của website
   ========================================================= */

.ldr-food-article {
  --ldr-green-dark: #174b37;
  --ldr-green: #22734f;
  --ldr-green-soft: #eaf5ef;
  --ldr-green-mint: #f4fbf7;

  --ldr-gold: #f2b84b;
  --ldr-orange: #f28c38;
  --ldr-cream: #fff8ec;

  --ldr-text: #1f2933;
  --ldr-muted: #667085;
  --ldr-border: #e5e7eb;
  --ldr-white: #ffffff;

  --ldr-radius-sm: 10px;
  --ldr-radius-md: 16px;
  --ldr-radius-lg: 24px;

  --ldr-shadow-sm: 0 6px 18px rgba(23, 75, 55, 0.08);
  --ldr-shadow-md: 0 14px 36px rgba(23, 75, 55, 0.12);

  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--ldr-text);
  line-height: 1.75;
  font-size: 17px;
  background: var(--ldr-white);
}

.ldr-food-article header {
  position: relative;
  padding: 34px 28px 28px;
  margin-bottom: 32px;
  border-radius: var(--ldr-radius-lg);
  background:
    radial-gradient(
      circle at top right,
      rgba(242, 184, 75, 0.22),
      transparent 34%
    ),
    linear-gradient(135deg, var(--ldr-green-mint), var(--ldr-cream));
  border: 1px solid rgba(34, 115, 79, 0.12);
  box-shadow: var(--ldr-shadow-sm);
  overflow: hidden;
}

.ldr-food-article header::before {
  content: "Lâm Đồng Reviews";
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ldr-green-dark);
  color: var(--ldr-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ldr-food-article h1 {
  margin: 0 0 16px;
  color: var(--ldr-green-dark);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.ldr-food-article header > p {
  margin: 8px 0;
  color: var(--ldr-muted);
  font-size: 15px;
}

.ldr-food-article header > p strong {
  color: var(--ldr-green-dark);
}

.ldr-food-article > section:first-of-type {
  padding: 24px 26px;
  margin-bottom: 28px;
  border-left: 5px solid var(--ldr-gold);
  border-radius: var(--ldr-radius-md);
  background: var(--ldr-cream);
  box-shadow: var(--ldr-shadow-sm);
}

.ldr-food-article > section:first-of-type p:first-child {
  margin-top: 0;
}

.ldr-food-article > section:first-of-type p:last-child {
  margin-bottom: 0;
}

.ldr-food-article section {
  margin: 34px 0;
}

.ldr-food-article h2 {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 12px 18px;
  color: var(--ldr-green-dark);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.35px;
  width: 100%;
}

.ldr-food-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ldr-green), var(--ldr-gold));
}

.ldr-food-article h2::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: var(--ldr-gold);
}

.ldr-food-article h3 {
  margin: 24px 0 10px;
  color: var(--ldr-green);
  font-size: 20px;
  line-height: 1.35;
}

.ldr-food-article p {
  margin: 0 0 16px;
  width: 100%;
}

.ldr-food-article strong {
  color: var(--ldr-green-dark);
  font-weight: 800;
}

.ldr-food-article figure {
  margin: 22px 0 24px;
  border-radius: var(--ldr-radius-lg);
  background: var(--ldr-white);
  box-shadow: var(--ldr-shadow-md);
  overflow: hidden;
  border: 1px solid rgba(34, 115, 79, 0.1);
}

.ldr-food-article figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(34, 115, 79, 0.12), rgba(242, 184, 75, 0.18)),
    #f3f4f6;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.ldr-food-article figure:hover img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.ldr-food-article figcaption {
  padding: 12px 16px;
  color: var(--ldr-muted);
  font-size: 14px;
  line-height: 1.55;
  background: linear-gradient(90deg, var(--ldr-green-mint), var(--ldr-white));
  border-top: 1px solid var(--ldr-border);
}

.ldr-food-article section:has(figure) {
  padding: 24px;
  border-radius: var(--ldr-radius-lg);
  background: var(--ldr-white);
  border: 1px solid rgba(34, 115, 79, 0.1);
  box-shadow: var(--ldr-shadow-sm);
}

.ldr-food-article section:has(figure):hover {
  border-color: rgba(34, 115, 79, 0.22);
  box-shadow: var(--ldr-shadow-md);
}

.ldr-food-article table {
  width: 100%;
  margin: 24px 0 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 115, 79, 0.16);
  border-radius: var(--ldr-radius-md);
  box-shadow: var(--ldr-shadow-sm);
  background: var(--ldr-white);
  font-size: 15.5px;
}

.ldr-food-article thead th {
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--ldr-green-dark), var(--ldr-green));
  color: var(--ldr-white);
  text-align: left;
  font-weight: 800;
  border: none;
}

.ldr-food-article tbody td {
  padding: 14px;
  border-top: 1px solid var(--ldr-border);
  border-right: 1px solid var(--ldr-border);
  vertical-align: top;
}

.ldr-food-article tbody td:last-child {
  border-right: none;
}

.ldr-food-article tbody tr:nth-child(even) {
  background: var(--ldr-green-mint);
}

.ldr-food-article tbody tr:hover {
  background: var(--ldr-cream);
}

.ldr-food-article section:has(h3) {
  padding: 26px;
  border-radius: var(--ldr-radius-lg);
  background: linear-gradient(
    180deg,
    rgba(234, 245, 239, 0.8),
    rgba(255, 255, 255, 1)
  );
  border: 1px solid rgba(34, 115, 79, 0.12);
}

.ldr-food-article section:has(h3) h3 {
  padding: 14px 16px;
  margin-top: 18px;
  border-radius: var(--ldr-radius-sm);
  background: var(--ldr-white);
  border-left: 4px solid var(--ldr-orange);
  box-shadow: 0 4px 14px rgba(23, 75, 55, 0.06);
}

.ldr-food-article section:has(h3) h3 + p {
  padding: 0 16px 6px;
}

.ldr-food-article section:last-of-type {
  padding: 28px;
  border-radius: var(--ldr-radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 75, 55, 0.96), rgba(34, 115, 79, 0.92)),
    var(--ldr-green-dark);
  color: var(--ldr-white);
  box-shadow: var(--ldr-shadow-md);
}

.ldr-food-article section:last-of-type h2,
.ldr-food-article section:last-of-type p,
.ldr-food-article section:last-of-type strong {
  color: var(--ldr-white);
}

.ldr-food-article section:last-of-type h2::before,
.ldr-food-article section:last-of-type h2::after {
  background: var(--ldr-gold);
}

.ldr-food-article a {
  color: var(--ldr-green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 115, 79, 0.28);
}

.ldr-food-article a:hover {
  color: var(--ldr-orange);
  border-bottom-color: var(--ldr-orange);
}

@media (max-width: 768px) {
  .ldr-food-article {
    padding: 18px 14px 42px;
    font-size: 16px;
  }

  .ldr-food-article header {
    padding: 26px 18px 22px;
  }

  .ldr-food-article section:has(figure),
  .ldr-food-article > section:first-of-type,
  .ldr-food-article section:has(h3),
  .ldr-food-article section:last-of-type {
    padding: 20px 16px;
  }

  .ldr-food-article table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ldr-food-article h2 {
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .ldr-food-article h1 {
    font-size: 30px;
  }

  .ldr-food-article h2 {
    font-size: 23px;
  }

  .ldr-food-article h3 {
    font-size: 18px;
  }

  .ldr-food-article figcaption {
    font-size: 13px;
  }
}
