/* ── AdGuard DNS Guide Page ── */
:root {
  --bg: #101012;
  --panel: #17171c;
  --text: #f7f7fa;
  --muted: #a8a8b8;
  --accent: #ff6a00;
  --accent-2: #ee0979;
  --code-bg: #1e1e24;
  --border: #2a2a35;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Back-to-catalog pill ── */
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.logo-pill:hover {
  background: var(--border);
  border-color: var(--accent);
}

.logo-pill-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ── Container ── */
.guide-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Hero ── */
.guide-hero {
  text-align: center;
  padding: 48px 16px 32px;
}

.guide-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.guide-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Table of Contents ── */
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.toc h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Section cards ── */
.guide-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
}

.guide-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-section h2 .icon {
  font-size: 1.5rem;
}

.guide-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent);
}

.guide-section p,
.guide-section li {
  color: var(--muted);
  font-size: 0.97rem;
}

.guide-section ul,
.guide-section ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.guide-section li {
  margin-bottom: 6px;
}

.guide-section a {
  color: var(--accent);
  text-decoration: none;
}

.guide-section a:hover {
  text-decoration: underline;
}

/* ── Steps ── */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Code blocks ── */
.dns-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  color: var(--accent);
  overflow-x: auto;
  user-select: all;
  word-break: break-all;
}

.dns-box .label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 4px;
  user-select: none;
}

/* ── Benefit cards ── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.benefit-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.benefit-card .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.benefit-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.benefit-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Tip/warning callouts ── */
.callout {
  border-left: 4px solid var(--accent);
  background: rgba(255, 106, 0, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.93rem;
  color: var(--muted);
}

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

.tip-box {
  border-left: 4px solid #3ab7ff;
  background: rgba(58, 183, 255, 0.07);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .guide-container {
    padding: 16px 14px 40px;
  }

  .guide-hero {
    padding: 32px 10px 20px;
  }

  .guide-section {
    padding: 20px 16px;
  }

  .toc {
    padding: 18px 16px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}
