/* Styles for the generated pages (download, plugins, guides, FAQ).
 *
 * site.css is a copy of the locale pages' stylesheet, so the tokens, header,
 * footer, buttons and cards below are literally the same ones the rest of
 * ytmdesktop.com uses. This file only adds what those pages never needed:
 * breadcrumbs, long-form prose, numbered steps, FAQ disclosure, install
 * commands and tables. */

:root {
  --muted2: var(--muted);
  --content: 46rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---- header additions ---- */

.landing-nav {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .landing-nav {
    display: flex;
  }
}

.landing-nav a {
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.landing-nav a.is-active {
  color: var(--text);
  background: var(--surface);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.6rem;
}

/* ---- breadcrumb ---- */

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.4;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

/* ---- page header ---- */

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: var(--content);
  margin: 0 auto 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.eyebrow a {
  color: var(--muted);
  text-decoration: none;
}

.meta,
.hero-meta,
.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  vertical-align: middle;
}

/* ---- section scaffolding (mirrors .landing-section) ---- */

.section {
  padding: 3rem 1.25rem;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.container,
.container-sm {
  max-width: var(--max);
  margin: 0 auto;
}

.container-sm {
  max-width: var(--content);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: var(--content);
  margin: 0 auto 2rem;
}

.text-center {
  text-align: center;
}

/* ---- prose ---- */

.prose {
  max-width: var(--content);
  margin: 0 auto;
  font-size: 1.02rem;
}

.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.prose p,
.prose li {
  color: #d7dade;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--accent-hover);
}

code {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.checklist {
  list-style: none;
  padding-left: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.75rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.1rem;
}

/* ---- cards (same look as .feature-card) ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  background: var(--surface-hover);
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card a {
  color: var(--accent-hover);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ---- plugin grid ---- */

.plugin-category {
  margin-bottom: 3rem;
}

.plugin-category h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.plugin-card {
  display: block;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.plugin-card:hover {
  background: var(--surface-hover);
  border-color: hsla(0, 0%, 100%, 0.2);
  transform: translateY(-2px);
}

.plugin-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.plugin-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- FAQ ---- */

.faq-section h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 2rem;
}

.faq-list details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-card);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  font-size: 1rem;
}

.faq-list summary::marker {
  color: var(--accent);
}

.faq-answer p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.faq-answer a {
  color: var(--accent-hover);
}

/* ---- install commands ---- */

.install-method {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.install-method h3 {
  margin-top: 0;
}

.command {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

.command code {
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
}

.copy-button {
  margin-left: auto;
  flex: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.copy-button:hover {
  background: var(--accent-hover);
}

.copy-button[data-copied] {
  background: #16a34a;
}

/* ---- tables ---- */

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrap th {
  color: var(--text);
  font-weight: 600;
}

.table-wrap td {
  color: var(--muted);
}

/* ---- closing CTA ---- */

.cta-band {
  padding: 4rem 1.25rem;
  background: radial-gradient(120% 100% at 50% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  border-top: 1px solid var(--border-subtle);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.btn-primary + .btn-secondary,
.btn-secondary + .btn-primary,
.btn-primary + .btn-primary {
  margin-left: 0.75rem;
}

/* ---- footer columns ---- */

.landing-footer-inner {
  align-items: stretch;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  width: 100%;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--text);
}

.landing-footer-main {
  text-align: left;
}

@media (max-width: 640px) {
  .btn-primary + .btn-secondary,
  .btn-secondary + .btn-primary,
  .btn-primary + .btn-primary {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .page-header {
    padding-top: 2.5rem;
  }
}
