/* ============================================
   OPERIX — Resource / Guide Page Styles
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */

.resource-hero {
  padding-top: 9.5rem;
  padding-bottom: var(--section-py);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.resource-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.resource-hero .hero-content {
  position: relative;
  z-index: 1;
}

.resource-hero .resource-hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  max-width: 700px;
  margin: 0 auto 1.25rem;
}

.resource-hero .resource-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   PROMPT COMPARISON CARDS
   ============================================ */

.prompt-compare-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}

.section-light .prompt-compare-card {
  background-color: var(--surface-2);
}

.prompt-compare-card.compare-bad {
  border-top: 3px solid var(--danger);
}

.prompt-compare-card.compare-good {
  border-top: 3px solid var(--accent);
}

.prompt-compare-card .compare-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.prompt-compare-card.compare-bad .compare-label {
  color: var(--danger);
}

.prompt-compare-card.compare-good .compare-label {
  color: var(--accent);
}

.prompt-compare-card .compare-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.625rem;
}

.prompt-compare-card .prompt-code {
  font-family: var(--font-code);
  font-size: var(--text-sm);
  color: var(--muted);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  line-height: var(--lh-normal);
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-light .prompt-compare-card .prompt-code {
  background-color: var(--surface);
}

.prompt-compare-card .compare-result {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

.prompt-compare-card .compare-result strong {
  color: var(--text);
}

/* ============================================
   TOOL CARDS
   ============================================ */

.tool-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  text-align: center;
  transition: border-color var(--transition-base);
}

.section-light .tool-card {
  background-color: var(--surface-2);
}

.tool-card:hover {
  border-color: var(--border-hover);
}

.tool-card .tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

.tool-card .tool-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tool-card .tool-url {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.tool-card .tool-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2.5rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-mid), transparent);
}

.process-step:last-child::before {
  display: none;
}

.process-step .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background-color: var(--accent-dim);
  border: 2px solid var(--accent-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--accent);
}

.process-step .step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.375rem;
}

.process-step .step-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
  max-width: 600px;
}

.process-step .step-tip {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--accent);
  background-color: var(--accent-dim);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-top: 0.5rem;
}

/* ============================================
   RULES LIST
   ============================================ */

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-item .rule-number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--accent);
  background-color: var(--accent-dim);
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rule-item .rule-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.rule-item .rule-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* ============================================
   WALKTHROUGH SECTION
   ============================================ */

.walkthrough-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.section-light .walkthrough-card {
  background-color: var(--surface-2);
}

.walkthrough-card .walkthrough-step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.walkthrough-card .walkthrough-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.walkthrough-card .wt-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  background-color: var(--accent-dim);
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.walkthrough-card .wt-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.125rem;
}

.walkthrough-card .wt-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

.walkthrough-card .wt-code {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--muted);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: var(--lh-normal);
}

.section-light .walkthrough-card .wt-code {
  background-color: var(--surface);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  .resource-hero .resource-hero-title {
    font-size: var(--text-3xl);
  }

  .process-step {
    padding-left: 3.5rem;
  }
}

@media (max-width: 575.98px) {
  .resource-hero .resource-hero-title {
    font-size: var(--text-2xl);
  }

  .process-step {
    padding-left: 3rem;
  }

  .process-step .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
  }
}
