/* TeleClaw Tutorial Page - minimal styles */

.is-active {
  color: #E55A47 !important;
}

/* Hero */
.tut-hero {
  padding: 100px 0 40px;
  text-align: center;
}

.tut-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(229, 90, 71, 0.12);
  border: 1px solid rgba(229, 90, 71, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: #E55A47;
  margin-bottom: 20px;
}

.tut-hero .title {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}

.tut-hero .grad {
  background: linear-gradient(135deg, #F08A7A, #E55A47, #C73E2C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tut-hero .subtitle {
  font-size: 17px;
  color: rgba(230, 233, 239, 0.75);
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.tut-hero .hint {
  font-size: 14px;
  color: rgba(230, 233, 239, 0.5);
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #E55A47;
  border-radius: 4px;
  text-align: left;
}

/* TOC */
.tut-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.tut-toc a {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(230, 233, 239, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.tut-toc a:hover {
  background: rgba(229, 90, 71, 0.12);
  border-color: #E55A47;
  color: #E55A47;
}

/* Section */
.tut-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.section-num {
  font-size: 14px;
  font-weight: 700;
  color: #E55A47;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: rgba(229, 90, 71, 0.1);
  border-radius: 6px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0;
}

.section-lead {
  font-size: 16px;
  color: rgba(230, 233, 239, 0.75);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 0 32px;
}

/* Step card */
.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
}

.step-card h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #ffffff;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: #E55A47;
  padding: 2px 8px;
  background: rgba(229, 90, 71, 0.1);
  border-radius: 4px;
}

.step-card p {
  color: rgba(230, 233, 239, 0.75);
  line-height: 1.7;
  margin: 8px 0;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.step-list > li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: rgba(230, 233, 239, 0.75);
  line-height: 1.6;
}

.step-list > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 6px;
  height: 6px;
  background: #E55A47;
  border-radius: 50%;
}

.step-list a {
  color: #E55A47;
  text-decoration: none;
}

.step-list a:hover {
  text-decoration: underline;
}

.sub-list {
  list-style: none;
  padding-left: 24px;
  margin: 4px 0;
}

.sub-list > li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: rgba(230, 233, 239, 0.75);
  line-height: 1.6;
  font-size: 15px;
}

.sub-list > li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: rgba(230, 233, 239, 0.5);
}

/* Step image - completely transparent, no filter, no backdrop */
.step-img img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  isolation: isolate !important;
  contain: layout style !important;
}

/* Override blob glow interference on all images in tutorial */
.bg-glow .blob {
  filter: none !important;
  background: transparent !important;
  display: none !important;
}

.step-img.single img {
  max-width: 320px;
}

/* Step gallery */
.step-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.step-img {
  margin: 0;
  text-align: center;
}

.step-img.single {
  display: flex;
  justify-content: center;
}

.step-img figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(230, 233, 239, 0.5);
}

/* Code block */
.code-block {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #E55A47;
}

.code-block code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  color: #F08A7A;
}

/* Hint box */
.hint-box {
  background: rgba(229, 90, 71, 0.05);
  border-left: 3px solid #E55A47;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0;
}

.hint-box p {
  margin: 6px 0;
}

.hint-box strong {
  color: #E55A47;
}

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 16px 0;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #ffffff;
}

.vendor-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
}

.vendor-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #E55A47;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.vendor-card p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* CTA */
.tut-cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tut-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
}

.tut-cta p {
  color: rgba(230, 233, 239, 0.75);
  margin: 0 0 24px;
  font-size: 16px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: rgba(230, 233, 239, 0.5);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .step-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-img img {
    max-width: 220px;
  }

  .tut-toc {
    flex-direction: column;
    align-items: stretch;
  }

  .tut-toc a {
    text-align: center;
  }
}