/* yt-dlpc.github.io — global stylesheet
   YouTube-palette: dark background, red accent, white content sections
   All pages link this file with:
     root pages:      <link rel="stylesheet" href="style.css">
     sub-dirs (/de/): <link rel="stylesheet" href="../style.css">
*/

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff0000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --red:          #ff0000;
  --red-dark:     #cc0000;
  --red-muted:    #ff4444;

  --dark:         #0f0f0f;  /* page bg */
  --dark-2:       #111111;  /* section bg */
  --dark-3:       #1a1a1a;  /* card bg */
  --dark-4:       #222222;  /* input / code bg */
  --border-dark:  #2a2a2a;

  --white:        #ffffff;
  --off-white:    #f9f9f9;
  --border-light: #e5e7eb;

  --text:         #0f0f0f;
  --muted:        #606060;
  --muted-light:  #888888;
  --hint:         #aaaaaa;

  --code-bg:      #0d0d0d;
  --code-text:    #e5e7eb;
  --code-accent:  #ff6b6b;

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.12);
  --shadow-md:    0 4px 16px rgba(0,0,0,.18);

  --container:    1080px;
  --gap:          24px;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-logo svg { width: 14px; height: 14px; fill: #fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-links a {
  color: var(--hint);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: var(--dark-3); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--red-dark); text-decoration: none; color: #fff; }

/* ── HERO (homepage) ──────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  color: var(--hint);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-tag-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  color: var(--muted-light);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-meta { color: #555; font-size: 12px; }
.hero-meta a { color: #555; text-decoration: underline; }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border-dark);
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px;
}
.page-hero h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.page-hero .lead {
  color: var(--muted-light);
  font-size: 16px;
  max-width: 680px;
  line-height: 1.65;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #333; font-size: 14px; font-weight: 600; }
.btn-ghost:hover { background: var(--dark-3); color: #fff; }
.btn svg { flex-shrink: 0; }

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 0;
}
.trust-items {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.trust-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section-light { background: var(--white); padding: 56px 0; }
.section-dark  { background: var(--dark-2); padding: 56px 0; border-top: 1px solid var(--border-dark); }
.section-dark + .section-dark { border-top: none; padding-top: 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.section-light .section-title { color: var(--text); }
.section-dark  .section-title { color: #fff; }
.section-sub { font-size: 15px; margin-bottom: 28px; line-height: 1.6; }
.section-light .section-sub { color: var(--muted); }
.section-dark  .section-sub  { color: var(--muted-light); }

/* ── CARDS ────────────────────────────────────────────────── */
.card-light {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-dark {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-white {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── FEATURE GRID ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.feat-icon {
  width: 38px;
  height: 38px;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feat-card p  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── STEPS GRID ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.step-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-card p  { font-size: 13px; color: #777; line-height: 1.55; }

/* ── DOWNLOAD CARD ────────────────────────────────────────── */
.dl-card {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}
.dl-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0d2d1a;
  border: 1px solid #1a4d2e;
  color: #4ade80;
}
.dl-badge svg {
  width: 11px;
  height: 11px;
  stroke: #4ade80;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dl-note { margin-top: 12px; font-size: 13px; color: #555; text-align: center; }
.dl-note a { color: #555; text-decoration: underline; }

/* ── COMMANDS ─────────────────────────────────────────────── */
.cmd-list { display: grid; gap: 12px; }
.cmd-block {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.cmd-label { font-size: 12px; color: var(--muted-light); margin-bottom: 8px; font-weight: 500; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--code-text);
  background: var(--code-bg);
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow-x: auto;
  white-space: pre;
  display: block;
}
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--dark-4);
  color: var(--code-text);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── GUIDES GRID ──────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color .15s;
  color: var(--text);
}
.guide-link:hover { border-color: var(--red); text-decoration: none; }
.guide-link-l { display: flex; align-items: center; gap: 12px; }
.guide-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.guide-link h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.guide-link p  { font-size: 12px; color: var(--muted); }
.guide-arr { color: #bbb; font-size: 20px; font-weight: 300; }

/* ── FAQ / DETAILS ────────────────────────────────────────── */
.faq-list { display: grid; gap: 8px; }
details {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}
summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: #555; font-size: 18px; font-weight: 300; line-height: 1; }
details[open] summary::after { content: "−"; }
.faq-body { padding: 0 16px 14px; font-size: 13px; color: #888; line-height: 1.65; }
.faq-body a { color: var(--red); }
.faq-body code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: var(--dark-4);
  color: var(--code-accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── INLINE CODE ──────────────────────────────────────────── */
p code, li code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--dark-4);
  color: var(--code-accent);
  padding: 2px 6px;
  border-radius: 4px;
}
/* on light sections */
.section-light p code, .section-light li code {
  background: #f0f0f0;
  color: #c0392b;
}

/* ── CONTENT PROSE (inner pages) ──────────────────────────── */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: #fff;
}
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: #ddd;
}
.prose p  { font-size: 15px; color: #aaa; margin-bottom: 14px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 14px; color: #aaa; font-size: 15px; }
.prose li { margin-bottom: 6px; line-height: 1.6; }
.prose a  { color: var(--red); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 36px 0 52px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.footer-logo {
  width: 26px;
  height: 26px;
  background: var(--red);
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.footer-logo svg { width: 11px; height: 11px; fill: #fff; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: #555; font-size: 13px; }
.footer-links a:hover { color: #aaa; text-decoration: none; }
.footer-note {
  color: #444;
  font-size: 12px;
  max-width: 520px;
  line-height: 1.55;
}
.footer-note a { color: #555; text-decoration: underline; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero h1       { font-size: 30px; letter-spacing: -.5px; }
  .hero-sub      { font-size: 15px; }
  .page-hero h1  { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .guides-grid   { grid-template-columns: 1fr; }
  .nav-links     { display: none; }
  .section-title { font-size: 21px; }
  .dl-card       { padding: 20px 16px; }
}
