/* ===========================================
   ARTICLE PAGES — EasyCoco
   =========================================== */

/* ── Hero ── */
.article-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 6, 0.20) 0%,
    rgba(10, 20, 6, 0.55) 50%,
    rgba(10, 20, 6, 0.82) 100%
  );
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 52px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.article-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover { color: rgba(255,255,255,0.9); }

.article-breadcrumb svg { flex-shrink: 0; }

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,175,86,0.95);
  background: rgba(181,154,58,0.18);
  border: 1px solid rgba(181,154,58,0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.article-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 780px;
}

.article-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
}

/* ── Article layout ── */
.article-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  max-width: 1100px;
  margin-inline: auto;
  padding: 56px 32px 80px;
  align-items: start;
}

/* ── TOC sidebar ── */
.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.article-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-text-soft);
  margin-bottom: 14px;
}

.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-toc a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ec-text-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-left: 2px solid var(--ec-line);
  border-radius: 0 6px 6px 0;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.article-toc a:hover,
.article-toc a.active {
  color: var(--ec-olive-900);
  border-left-color: var(--ec-green-700);
  background: rgba(110,139,61,0.06);
}

.article-toc-cta {
  margin-top: 28px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(85,107,47,0.08), rgba(110,139,61,0.05));
  border: 1px solid rgba(110,139,61,0.15);
  border-radius: 12px;
}

.article-toc-cta p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ec-text-soft);
  margin-bottom: 10px;
}

/* ── Article content ── */
.article-content {
  min-width: 0;
}

.article-lead {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ec-text);
  font-weight: 400;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ec-line);
}

.article-section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.article-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ec-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ec-line);
}

.article-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--ec-green-700), var(--ec-gold-500));
  flex-shrink: 0;
}

.article-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ec-olive-900);
  margin: 22px 0 8px;
}

.article-section p {
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ec-text);
  margin-bottom: 16px;
}

.article-section p:last-child { margin-bottom: 0; }

/* Lists */
.article-section ul,
.article-section ol {
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  counter-reset: article-counter;
}

.article-section ul li,
.article-section ol li {
  padding: 13px 16px 13px 48px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ec-text);
  border-bottom: 1px solid var(--ec-line);
}

.article-section ul li:first-child,
.article-section ol li:first-child {
  border-top: 1px solid var(--ec-line);
}

.article-section ul li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-green-700), var(--ec-gold-500));
}

.article-section ol li {
  counter-increment: article-counter;
}

.article-section ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-olive-900), var(--ec-green-700));
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 24px;
}

/* Callout boxes */
.article-callout {
  background: rgba(110,139,61,0.07);
  border-left: 3px solid var(--ec-green-700);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ec-text);
}

.article-callout strong {
  display: block;
  color: var(--ec-olive-900);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-callout--gold {
  background: rgba(181,154,58,0.07);
  border-left-color: var(--ec-gold-500);
}

/* Pull quote */
.article-pull {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(85,107,47,0.06), rgba(181,154,58,0.04));
  border: 1px solid rgba(110,139,61,0.12);
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ec-charcoal);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}

.article-pull::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(110,139,61,0.12);
  line-height: 1;
  font-style: normal;
  pointer-events: none;
}

/* Highlight data card */
.article-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.article-data-card {
  background: var(--ec-bg);
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.article-data-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ec-olive-900), var(--ec-green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.article-data-card span {
  font-size: 12px;
  color: var(--ec-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Feeding table */
.article-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--ec-line);
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th {
  background: var(--ec-olive-900);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.article-table th:first-child { border-radius: 14px 0 0 0; }
.article-table th:last-child  { border-radius: 0 14px 0 0; }

.article-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ec-line);
  color: var(--ec-text);
  vertical-align: middle;
}

.article-table tr:last-child td { border-bottom: none; }

.article-table tr:nth-child(even) td {
  background: rgba(245,242,232,0.5);
}

.article-table td:first-child {
  font-weight: 700;
  color: var(--ec-charcoal);
}

.article-table .td-value {
  font-weight: 700;
  color: var(--ec-olive-900);
  text-align: center;
}

.table-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.table-badge--veg  { background: rgba(110,139,61,0.12); color: var(--ec-olive-900); }
.table-badge--flo  { background: rgba(181,154,58,0.12); color: #7a6010; }
.table-badge--wash { background: rgba(120,120,120,0.1); color: var(--ec-text-soft); }

/* Article CTA section */
.article-cta {
  background: linear-gradient(-45deg, #2a3d14, var(--ec-olive-900), #3d6b2a, var(--ec-green-700));
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin: 56px 0 0;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.article-cta-inner { position: relative; z-index: 1; }

.article-cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.65;
}

.article-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Related cards at bottom */
.article-related {
  padding: 56px 32px 80px;
  max-width: 1100px;
  margin-inline: auto;
  border-top: 1px solid var(--ec-line);
}

.article-related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ec-charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

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

.article-related-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.article-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-related-media {
  height: 140px;
  overflow: hidden;
  position: relative;
}

.article-related-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-related-card:hover .article-related-media img {
  transform: scale(1.05);
}

.article-related-body {
  padding: 16px;
}

.article-related-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ec-gold-500);
  display: block;
  margin-bottom: 6px;
}

.article-related-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-charcoal);
  line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 60px;
  }

  .article-toc { display: none; }
  .article-hero { height: 380px; }

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

@media (max-width: 600px) {
  .article-hero { height: 300px; }
  .article-hero h1 { font-size: 28px; }
  .article-wrapper { padding: 28px 16px 48px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .article-related { padding: 40px 16px 60px; }
  .article-cta { padding: 32px 20px; }
  .article-data-grid { grid-template-columns: repeat(2, 1fr); }
}
