/* GPT Marlon — guides section.
   Tokens come from theme.css (imported by site.css).
   Reading structure follows the long-form guide pattern: prominent PDF CTA,
   a table of contents, numbered sections, and copyable prompt blocks. */

.crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.guide-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ------------------------------------------------- guide detail page ---- */
.guide-page { max-width: 780px; }
.guide-page .page-sub { font-size: var(--fs-lg); color: var(--text2); }

/* table of contents */
.guide-toc {
  background: var(--bg3); border: 2px solid var(--border-strong); box-shadow: var(--hard-shadow);
  border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin: 2.4rem 0;
}
.guide-toc-label {
  font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .9rem;
}
.guide-toc ol { list-style: none; counter-reset: none; }
.guide-toc li + li { border-top: 1px solid rgba(3,3,3,.12); }
.guide-toc a {
  display: flex; gap: .8rem; align-items: baseline;
  padding: .6rem 0; color: var(--text2); text-decoration: none;
  font-size: var(--fs-sm); line-height: 1.45; transition: color .15s;
}
.guide-toc a:hover { color: var(--text); }
.toc-n { color: var(--lavender); font-weight: 700; font-size: var(--fs-3xs); min-width: 1.5rem; font-variant-numeric: tabular-nums; }

/* sections */
.guide-section { margin: 2.8rem 0; scroll-margin-top: 90px; }
.gs-num {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xs);
  letter-spacing: .1em; color: var(--btn-fg); background: var(--yellow);
  border: 2px solid var(--border-strong); border-radius: 999px;
  padding: .15rem .6rem; margin-bottom: .7rem;
}
.guide-section h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3);
  margin-bottom: .9rem; letter-spacing: -.02em; line-height: 1.25;
}
.guide-section p { color: var(--text2); line-height: 1.8; font-size: var(--fs-base); margin: .9rem 0; }
.guide-section li { color: var(--text2); line-height: 1.75; font-size: var(--fs-base); margin: .4rem 0 .4rem 1.2rem; }
.guide-section b, .guide-section strong { color: var(--text); font-weight: 600; }
.guide-section code {
  background: var(--ink); border: none; border-radius: var(--r-xs);
  padding: .14em .45em; font-size: .88em; color: var(--yellow);
}
.guide-section table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: var(--fs-xs); display: block; overflow-x: auto; }
.guide-section th, .guide-section td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); color: var(--text2); }
.guide-section th { color: var(--text); font-weight: 600; white-space: nowrap; }

.guide-note {
  background: var(--yellow); border: 2px solid var(--border-strong);
  box-shadow: var(--hard-shadow);
  border-radius: var(--r); padding: 1rem 1.2rem;
  font-size: var(--fs-sm); color: var(--btn-fg); line-height: 1.7; margin: 1.6rem 0;
}

/* ------------------------------------------------------ prompt blocks ---- */
.prompt-card {
  background: var(--ink2); border: 2px solid var(--border-strong); box-shadow: var(--hard-shadow);
  border-radius: var(--r-lg); margin: 1.2rem 0; overflow: hidden;
}
.prompt-head {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  flex-wrap: wrap; padding: .7rem 1rem; border-bottom: 2px solid rgba(255,255,255,.14);
  background: var(--ink3);
}
.prompt-label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xs); color: #fff; }
.prompt-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.pbtn {
  border: 2px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font-family: inherit; font-size: var(--fs-3xs); font-weight: 600;
  border-radius: var(--r-sm); padding: .4rem .7rem; cursor: pointer;
  transition: transform .12s, border-color .2s, background-color .2s;
}
.pbtn:hover { transform: translateY(-1px); border-color: #fff; background: rgba(255,255,255,.12); }
.pbtn-claude { background: var(--yellow); color: var(--btn-fg); border-color: var(--border-strong); }
.pbtn-claude:hover { background: var(--yellow-soft); }
.prompt-text {
  padding: 1rem 1.2rem; white-space: pre-wrap; word-break: break-word;
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
  font-size: var(--fs-2xs); line-height: 1.7; color: #e8e8e8;
  max-height: 380px; overflow: auto;
}

/* -------------------------------------------------------- guide CTAs ---- */
.guide-cta {
  margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; background: var(--bg3); border: 2px solid var(--border-strong); box-shadow: var(--hard-shadow);
  border-radius: var(--r-lg); padding: 1.4rem 1.5rem;
}
.guide-cta-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.guide-cta-sub { color: var(--muted); font-size: var(--fs-xs); margin-top: .25rem; }

/* end-of-guide PDF card — cream block, deliberately loud against the black page */
.guide-download {
  margin-top: 3rem; text-align: center; background: var(--lavender); color: var(--btn-fg);
  border: 2px solid var(--border-strong); box-shadow: var(--hard-shadow-lg);
  border-radius: var(--r-xl); padding: 2.2rem 1.5rem;
}
.guide-download-icon { font-size: 2rem; line-height: 1; margin-bottom: .7rem; }
.guide-download-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -.02em; }
.guide-download-sub { color: rgba(3,3,3,.68); font-size: var(--fs-sm); line-height: 1.65; margin: .6rem auto 1.4rem; max-width: 460px; }
.guide-download .btn-primary { display: inline-flex; background: var(--yellow); color: var(--btn-fg); }
.guide-download .btn-primary:hover { opacity: .88; }

/* ------------------------------------------------- ressourcen index ---- */
.res-controls { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.2rem; }
.res-search { position: relative; flex: 1 1 320px; min-width: 220px; }
.res-search-icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.res-search input {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: var(--fs-sm);
  color: var(--text); background: #fff; border: 2px solid var(--border-strong);
  border-radius: var(--r-sm); padding: .75rem 1rem .75rem 2.8rem; outline: none;
  transition: box-shadow .12s;
}
.res-search input::placeholder { color: var(--faint); }
.res-search input:focus { box-shadow: var(--hard-shadow); }
.res-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.res-sort { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.res-sort label { font-size: var(--fs-3xs); font-weight: 600; color: var(--muted); }
.res-sort select {
  font-family: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--text);
  background-color: #fff; border: 2px solid var(--border-strong); border-radius: var(--r-sm);
  padding: .68rem 2.2rem .68rem .9rem; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23454545' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 15px;
}
.res-sort select:focus { border-color: var(--text); }
.res-empty { text-align: center; color: var(--muted); font-size: var(--fs-sm); padding: 2.5rem 1rem; }

.cat-filter { display: flex; gap: .45rem; flex-wrap: wrap; margin: 0 0 1.8rem; }
.cat-chip {
  border: 2px solid var(--border-strong); background: #fff; color: var(--muted);
  font-family: inherit; font-size: var(--fs-2xs); font-weight: 600;
  border-radius: var(--r); padding: .5rem .95rem; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.cat-chip:hover { color: var(--text); box-shadow: var(--hard-shadow); }
.cat-chip.active { background: var(--white); color: var(--btn-fg); border-color: transparent; }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
/* cream cards on the black page, matching the Framer guide grid */
.guide-card {
  display: flex; flex-direction: column; background: #fff; color: var(--btn-fg);
  border: 2px solid var(--btn-border); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.15rem; text-decoration: none;
  box-shadow: var(--hard-shadow);
  transition: transform .14s var(--ease), box-shadow .14s;
}
.guide-card:hover { transform: translate(-2px,-2px); box-shadow: var(--hard-shadow-lg); }
.guide-card p { color: rgba(3,3,3,.62); }
.guide-card-meta { color: rgba(3,3,3,.55); border-top-color: rgba(3,3,3,.15); }
.guide-card .gc-date { color: rgba(3,3,3,.45); }
.guide-card .chip-row { margin: 0 0 .9rem; }
.guide-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg);
  line-height: 1.32; margin-bottom: .5rem; letter-spacing: -.015em;
}
.guide-card p {
  color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card-meta {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  font-size: var(--fs-3xs); font-weight: 600; color: var(--muted);
}
.gc-date { color: var(--faint); font-weight: 500; }

/* copy toast */
.copy-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  border: 2px solid var(--border-strong); box-shadow: var(--hard-shadow);
  background: var(--yellow); color: var(--btn-fg); font-weight: 600; font-size: var(--fs-xs);
  padding: .7rem 1.3rem; border-radius: var(--r); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 300;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .guide-download { padding: 1.8rem 1.2rem; }
  .guide-cta { flex-direction: column; align-items: flex-start; }
}
