/* assets/css/guias.css
   Clean, readable guide/article styling consistent with LSM theme variables.
   Uses your :root color tokens (main, light, lighter, superLight, text, border, muted, shadows, radii).
*/

/* =========================
   Page base
   ========================= */
.guias-page,
.guia {
  padding-bottom: 60px;
}

/* Constrain content for readability (article width) */
.guia {
  max-width: 920px;
  margin: 0 auto;
}

/* For the guides index (cards), we can go a bit wider */
.guias-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Breadcrumb
   ========================= */
.guia-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 18px;
}

.guia-breadcrumb a {
  color: var(--main);
  text-decoration: none;
  border-bottom: 1px dashed rgba(106, 13, 173, 0.35);
}

.guia-breadcrumb a:hover {
  color: var(--hover);
  border-bottom-color: rgba(90, 10, 154, 0.5);
}

.guia-breadcrumb .sep {
  opacity: 0.7;
}

/* =========================
   Headers
   ========================= */
.guias-header,
.guia-header {

}

.guias-header h1, .guia-header h1 {
	color: var(--main);
	margin-bottom: auto;
}
.guia-header h1 {
  letter-spacing: -0.02em;
}

.guias-subtitle,
.guia-lead {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.guia-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(106, 13, 173, 0.10);
  color: var(--main);
  border: 1px solid rgba(106, 13, 173, 0.22);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   Article sections
   ========================= */
.guia-section {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.03);
}

.guia-section h2 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.guia-section h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 8px;
}

.guia-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-top: 10px;
  max-width: 80ch;
}

.guia-section p:first-child {
  margin-top: 0;
}

/* Links inside guide */
.guia a {
  color: var(--main);
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 13, 173, 0.25);
}

.guia a:hover {
  color: var(--hover);
  border-bottom-color: rgba(90, 10, 154, 0.5);
}

/* =========================
   Lists
   ========================= */
.bullets,
.steps {
  margin: 10px 0 0 0;
  padding-left: 22px;
  max-width: 82ch;
}

.bullets li,
.steps li {
  margin: 8px 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 16px;
}

.steps {
  list-style: decimal;
}

.bullets {
  list-style: disc;
}

/* =========================
   Checklist (nice checkboxes)
   ========================= */
.checklist {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--superLight);
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.checklist label:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 13, 173, 0.25);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--main); /* modern browsers */
  flex: 0 0 18px;
}

/* =========================
   Callouts: tip / warning
   ========================= */
.tip,
.warning {
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.10);
  line-height: 1.65;
}

.tip {
  background: rgba(106, 13, 173, 0.06);
  border-color: rgba(106, 13, 173, 0.20);
  color: var(--text);
}

.warning {
  background: var(--warning-bg);
  border-color: var(--warning-bd);
  color: var(--warning);
}

.tip strong,
.warning strong {
  font-weight: 800;
}

/* =========================
   Template block (example text)
   ========================= */
.template {
  margin-top: 12px;
  background: #0b0b0f;
  color: #f4f4f5;
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.template p {
  color: #f4f4f5;
  margin-top: 8px;
  max-width: none;
	white-space: pre-line;
}

.template p strong {
  color: #ffffff;
}

/* =========================
   CTA section
   ========================= */
.guia-cta {
  background: linear-gradient(
    180deg,
    rgba(106, 13, 173, 0.10),
    rgba(226, 203, 238, 0.18)
  );
  border-color: rgba(106, 13, 173, 0.18);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.guia-cta .btn-primary{
	color: var(--white);
}

.cta-row .btn-primary,
.cta-row .btn-outline {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

/* =========================
   Guides index cards
   ========================= */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-card {
  display: flex;
	flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--background);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
	padding: 10px;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 13, 173, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.guides-img {
  height: 160px;
  width: 160px;
	align-self: center;
}

.guide-card h3 {
  font-size: 18px;
  margin: 14px 14px 6px;
  color: var(--text);
  letter-spacing: -0.01em;
	text-align: start;
}

.guide-card p {
  margin: 0 14px 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.guide-cta {
  display: flex;
  margin: 0 14px 16px;
  color: var(--main);
  font-weight: 800;
  font-size: 14px;
	margin-top: auto;
}

/* =========================
   Extra box on index
   ========================= */
.guias-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(106, 13, 173, 0.18);
  background: rgba(106, 13, 173, 0.06);
}

.guias-note h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.guias-note p {
  color: var(--text);
  line-height: 1.7;
}

/* =========================
   Mobile adjustments
   ========================= */
@media (max-width: 800px) {
  .guia,
  .guias-page {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .guias-header,
  .guia-header,
  .guia-section {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .guias-header h1,
  .guia-header h1 {
    font-size: 26px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guides-img {
    height: 170px;
  }

  .cta-row .btn-primary,
  .cta-row .btn-outline {
    width: 100%;
    min-width: 0;
  }
}
