/* ==========================================================
   BrickPi3 – Installation FAQ Page Styles
   ========================================================== */

/* ---- Option badge pill ---- */
.faq-option-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 3rem;
  padding: .22rem .75rem;
  margin-bottom: .6rem;
}

/* ---- Option intro card ---- */
.option-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--red);
}

.option-card h2 {
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

/* ---- Decision table ---- */
.which-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: .95rem;
}

.which-table th {
  background: var(--dark);
  color: #fff;
  padding: .7rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

.which-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--light2);
  color: #444;
  vertical-align: top;
}

.which-table tr:last-child td { border-bottom: none; }
.which-table tr:nth-child(even) td { background: var(--light); }

/* ---- Callout / note boxes ---- */
.callout {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.4rem;
  color: #555;
  font-size: .93rem;
  line-height: 1.7;
}

.callout.warning {
  background: #fff3f3;
  border-color: var(--red);
}

.callout > strong {
  display: block;
  margin-bottom: .25rem;
  color: #333;
}

/* ---- FAQ items ---- */
.faq-item {
  border-bottom: 1px solid var(--light2);
  padding: 1.4rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  margin-top: 0 !important;
  color: var(--dark) !important;
}

/* ---- Table of contents ---- */
.toc {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
}

.toc p {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem !important;
}

.toc ol {
  margin: 0;
}

.toc li { padding: .2rem 0; }

.toc a {
  color: var(--red) !important;
  font-weight: 500;
}

/* ---- Copy-to-clipboard code blocks ---- */
.code-block {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #bbb;
  font-size: .78rem;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.copy-btn.copied {
  color: #4ade80;
  border-color: #4ade80;
}
