/**
 * Claude LinkedIn Prompts — Page Styles
 * ------------------------------------
 * /claude-linkedin-prompts/
 *
 * Design-Prinzipien:
 *  - Above the fold: Logos + Headline + Lead + Filter sind alle ohne Scroll sichtbar.
 *  - Kein BG-Image, kein Hero-Heaviness. Maximaler Funktions-Fokus.
 *  - Accordion-Cards via <details> — keine JS-Dependency für Open/Close.
 *  - Copy-Button mit visuellem 2-Sekunden-Feedback.
 *  - Mobile-first responsive, alle Tap-Targets ≥ 44px.
 */

/* ==========================================================================
   CONTAINER + RESET
   ========================================================================== */
.cb-lip {
  --cb-lip-fg: #0a0a0a;
  --cb-lip-bg: #ffffff;
  --cb-lip-muted: #5a5a5a;
  --cb-lip-line: #e6e6e6;
  --cb-lip-soft: #f6f6f4;
  --cb-lip-claude: #d97757;
  --cb-lip-linkedin: #0a66c2;
  --cb-lip-accent: #0a0a0a;
  --cb-lip-success: #137333;

  background: var(--cb-lip-bg);
  color: var(--cb-lip-fg);
  font-family: futura-pt, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cb-lip-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   HERO — kompakt, above the fold
   ========================================================================== */
.cb-lip-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--cb-lip-line);
}

.cb-lip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.cb-lip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.cb-lip-logo svg,
.cb-lip-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cb-lip-logo-plus {
  font-family: futura-pt, sans-serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--cb-lip-muted);
  line-height: 1;
}

.cb-lip-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-lip-muted);
  font-weight: 500;
  margin: 0 0 14px;
  text-align: center;
}

.cb-lip-title {
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-align: center;
  text-transform: lowercase;
}

.cb-lip-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--cb-lip-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

/* Filter row direkt im Hero, damit alles ATF bleibt */
.cb-lip-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.cb-lip-filter {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--cb-lip-line);
  background: #fff;
  color: var(--cb-lip-fg);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cb-lip-filter:hover {
  border-color: var(--cb-lip-fg);
}
.cb-lip-filter[data-active="true"] {
  background: var(--cb-lip-fg);
  color: #fff;
  border-color: var(--cb-lip-fg);
}
.cb-lip-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--cb-lip-soft);
  color: var(--cb-lip-muted);
  border-radius: 999px;
  line-height: 1;
}
.cb-lip-filter[data-active="true"] .cb-lip-filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ==========================================================================
   PROMPTS — Accordion
   ========================================================================== */
.cb-lip-prompts {
  padding: 40px 0 56px;
}

.cb-lip-cat-block {
  margin-bottom: 40px;
}
.cb-lip-cat-block:last-child {
  margin-bottom: 0;
}

.cb-lip-cat-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cb-lip-line);
}

.cb-lip-cat-title {
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.cb-lip-cat-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cb-lip-muted);
  margin: 0;
  max-width: 720px;
}

.cb-lip-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Accordion-Item */
.cb-lip-prompt {
  border: 1px solid var(--cb-lip-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-lip-prompt:hover {
  border-color: #c8c8c8;
}
.cb-lip-prompt[open] {
  border-color: var(--cb-lip-fg);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.02);
}

.cb-lip-prompt-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "tag title chevron"
    "tag use chevron";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}
.cb-lip-prompt-summary::-webkit-details-marker {
  display: none;
}

.cb-lip-prompt-cat-tag {
  grid-area: tag;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cb-lip-muted);
  background: var(--cb-lip-soft);
  padding: 5px 9px;
  border-radius: 4px;
  align-self: start;
  white-space: nowrap;
}

.cb-lip-prompt-title {
  grid-area: title;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--cb-lip-fg);
}

.cb-lip-prompt-use {
  grid-area: use;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cb-lip-muted);
}

.cb-lip-prompt-chevron {
  grid-area: chevron;
  width: 24px;
  height: 24px;
  color: var(--cb-lip-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.15s ease;
}
.cb-lip-prompt-chevron svg {
  width: 18px;
  height: 18px;
}
.cb-lip-prompt[open] .cb-lip-prompt-chevron {
  transform: rotate(180deg);
  color: var(--cb-lip-fg);
}

/* Body (sichtbar wenn details[open]) */
.cb-lip-prompt-body {
  border-top: 1px solid var(--cb-lip-line);
  padding: 16px 18px 18px;
  background: var(--cb-lip-soft);
}

.cb-lip-prompt-text {
  margin: 0 0 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--cb-lip-line);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-height: 540px;
  overflow-y: auto;
}
.cb-lip-prompt-text code {
  font: inherit;
  background: transparent;
  padding: 0;
  color: inherit;
}

.cb-lip-prompt-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Copy-Button */
.cb-lip-copy-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid var(--cb-lip-fg);
  background: var(--cb-lip-fg);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.cb-lip-copy-btn:hover {
  background: #1c1c1c;
}
.cb-lip-copy-btn:active {
  transform: scale(0.98);
}
.cb-lip-copy-btn[data-copied="true"] {
  background: var(--cb-lip-success);
  border-color: var(--cb-lip-success);
  color: #fff;
}
.cb-lip-copy-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Empty State */
.cb-lip-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--cb-lip-muted);
  font-size: 15px;
}
.cb-lip-empty strong {
  display: block;
  color: var(--cb-lip-fg);
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cb-lip-cta {
  background: var(--cb-lip-fg);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cb-lip-cta-eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin: 0 0 18px;
}
.cb-lip-cta-title {
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  color: #fff;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cb-lip-cta-lead {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 28px;
}
.cb-lip-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cb-lip-cta-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}
.cb-lip-cta-primary {
  background: #fff;
  color: var(--cb-lip-fg);
  border: 1px solid #fff;
}
.cb-lip-cta-primary:hover {
  background: #f0f0f0;
}
.cb-lip-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cb-lip-cta-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .cb-lip-hero {
    padding: 40px 0 28px;
  }
  .cb-lip-logos {
    gap: 14px;
    margin-bottom: 18px;
  }
  .cb-lip-logo {
    width: 44px;
    height: 44px;
  }
  .cb-lip-logo-plus {
    font-size: 28px;
  }
  .cb-lip-title {
    font-size: clamp(34px, 9vw, 44px);
  }
  .cb-lip-lead {
    font-size: 15.5px;
    margin-bottom: 22px;
  }
  .cb-lip-filter {
    font-size: 13px;
    padding: 8px 14px;
  }

  .cb-lip-prompts {
    padding: 28px 0 40px;
  }
  .cb-lip-cat-title {
    font-size: 19px;
  }

  /* Mobile-Accordion: tag oben, dann Titel + Use-Case darunter */
  .cb-lip-prompt-summary {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "tag chevron"
      "title chevron"
      "use chevron";
    column-gap: 12px;
    row-gap: 6px;
    padding: 14px 16px;
  }
  .cb-lip-prompt-cat-tag {
    align-self: start;
    justify-self: start;
  }
  .cb-lip-prompt-title {
    font-size: 15.5px;
  }
  .cb-lip-prompt-use {
    font-size: 12.5px;
  }
  .cb-lip-prompt-body {
    padding: 14px 16px 16px;
  }
  .cb-lip-prompt-text {
    font-size: 12.5px;
    padding: 14px 14px;
    max-height: 420px;
  }
  .cb-lip-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .cb-lip-cta {
    padding: 48px 0;
  }
  .cb-lip-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cb-lip-prompt-chevron,
  .cb-lip-copy-btn,
  .cb-lip-filter {
    transition: none;
  }
}

/* Print: clean output */
@media print {
  .cb-lip-filter-row,
  .cb-lip-cta,
  .cb-lip-copy-btn,
  .cb-lip-prompt-chevron {
    display: none !important;
  }
  .cb-lip-prompt {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  .cb-lip-prompt[open] .cb-lip-prompt-text,
  .cb-lip-prompt:not([open]) .cb-lip-prompt-body {
    display: block;
  }
}
