/* ═══════════════════════════════════════════
   docs-article.css — Fitcore Support: artikel pagina's
   ═══════════════════════════════════════════ */

/* ── BREADCRUMBS ── */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.breadcrumbs__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs__link {
  font-size: 13px;
  color: var(--text);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity var(--duration-fast);
}

.breadcrumbs__link:hover {
  opacity: 0.8;
}

.breadcrumbs__sep {
  width: 12px;
  height: 12px;
  opacity: 0.25;
  flex-shrink: 0;
}

.breadcrumbs__current {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
}

/* ── ARTICLE HEADER ── */
.article__header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.article__lead {
  font-size: 16px;
  opacity: 0.6;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 640px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.4;
  margin-top: 16px;
}

.article__meta-sep {
  font-size: 10px;
}

/* ── TABLE OF CONTENTS ── */
.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.article-toc[hidden] {
  display: none;
}

.article-toc__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-bottom: 12px;
}

.article-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-toc__list a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.6;
  padding: 4px 0 4px 12px;
  display: block;
  border-left: 2px solid transparent;
  transition: opacity var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.article-toc__list a:hover {
  opacity: 0.9;
}

.article-toc__list a.active {
  opacity: 1;
  color: var(--accent-strong);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* ── ARTICLE BODY TYPOGRAPHY ── */
.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.article-body > h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}

.article-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  scroll-margin-top: 100px;
}

.article-body p {
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 15px;
}

.article-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(107,74,53,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--duration-fast);
}

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

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 6px;
  line-height: 1.65;
  font-size: 15px;
}

.article-body strong {
  font-weight: 600;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── CODE ── */
.article-body code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-strong);
}

.article-body pre {
  margin-bottom: 24px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* ── CALLOUT BOXES ── */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid;
}

.callout__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.callout__content {
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  min-width: 0;
}

.callout__content p {
  font-size: 14px;
  margin-bottom: 8px;
}

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

.callout__content code {
  font-size: 12px;
}

.callout--tip {
  background: rgba(90,125,74,0.06);
  border-color: rgba(90,125,74,0.2);
}

.callout--tip .callout__icon {
  color: var(--success);
}

.callout--warning {
  background: rgba(184,66,51,0.05);
  border-color: rgba(184,66,51,0.2);
}

.callout--warning .callout__icon {
  color: var(--error);
}

.callout--info {
  background: rgba(139,93,66,0.05);
  border-color: rgba(139,93,66,0.15);
}

.callout--info .callout__icon {
  color: var(--accent);
}

/* ── TABLES ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.article-body thead {
  border-bottom: 2px solid var(--border);
}

.article-body th {
  text-align: left;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

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

/* ── STEPS COMPONENT ── */
.steps {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.steps__item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.steps__item:last-child {
  border-bottom: none;
}

.steps__number {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.steps__content {
  flex: 1;
  min-width: 0;
}

.steps__content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.steps__content p {
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 8px;
}

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

/* ── FIGURES / IMAGES ── */
.figure {
  margin: 24px 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
}

.figure__caption {
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0.5;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── FEEDBACK ── */
.article-feedback {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-feedback__question {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.article-feedback__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.article-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--easing), background var(--duration-base) var(--easing), color var(--duration-base) var(--easing);
}

.article-feedback__btn svg {
  width: 16px;
  height: 16px;
}

.article-feedback__btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.article-feedback__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-feedback__btn.selected {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(139,93,66,0.06);
}

.article-feedback__btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.article-feedback__btn:disabled:not(.selected) {
  opacity: 0.3;
}

.article-feedback__thanks {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.6;
}

.article-feedback__thanks[hidden] {
  display: none;
}

/* ── CROSS-LINKS ── */
.article-crosslinks {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-crosslinks__text {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
}

.article-crosslinks__links {
  display: flex;
  gap: 20px;
}

.article-crosslinks__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  transition: opacity var(--duration-fast);
}

.article-crosslinks__link:hover {
  opacity: 0.7;
}

/* ── PREV/NEXT PAGER ── */
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-pager__link {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing), border-color var(--duration-base) var(--easing);
}

.article-pager__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,93,66,0.18);
}

.article-pager__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-pager__link--prev {
  text-align: left;
}

.article-pager__link--next {
  text-align: right;
  grid-column: 2;
}

.article-pager__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.4;
  margin-bottom: 4px;
}

.article-pager__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
}

/* ── CHANGELOG TIMELINE ── */
.changelog-timeline {
  margin-bottom: 40px;
}

.changelog-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
}

.changelog-entry:first-child {
  padding-top: 0;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-entry__version {
  flex-shrink: 0;
}

.changelog-entry__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-warm);
  color: var(--bg-dark);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.changelog-entry__label {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.65;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.changelog-entry__date {
  font-size: 13px;
  opacity: 0.4;
  margin-top: 8px;
}

.changelog-entry__body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}

.changelog-entry__body > p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.6;
  margin-bottom: 20px;
}

.changelog-entry__body h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.changelog-entry__body ul {
  list-style: none;
  margin-bottom: 8px;
}

.changelog-entry__body li {
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
  opacity: 0.7;
}

.changelog-entry__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .breadcrumbs__inner {
    padding: 12px 16px;
  }

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

  .article-pager__link--next {
    grid-column: auto;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .breadcrumbs {
    margin-bottom: 20px;
  }

  .article__title {
    font-size: 26px;
  }

  .article-toc {
    padding: 16px;
  }

  .article-body pre {
    padding: 16px;
    font-size: 12px;
  }

  .callout {
    flex-direction: column;
    gap: 8px;
  }

  .article-body table {
    font-size: 13px;
  }

  .article-body th,
  .article-body td {
    padding: 8px 10px;
  }

  .article-feedback {
    padding: 20px 16px;
  }

  .article-pager__link {
    padding: 16px;
  }
}

/* ── PRINT ── */
@media print {
  .nav,
  .docs-nav,
  .breadcrumbs,
  .article-toc,
  .article-feedback,
  .article-pager,
  .footer {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 12pt;
  }

  .article-body pre {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
  }
}
