/*
 * AgentWay - SDK Integration Styles
 * Used across learn/docs pages for Claude Agent SDK code integration
 */

/* SDK Focus Bar - shown at top of each lesson page */
.sdk-focus {
  display: flex;
  align-items: center;
  gap: var(--zen-space-2);
  flex-wrap: wrap;
  padding: var(--zen-space-3) var(--zen-space-4);
  background: var(--zen-bg-subtle);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  margin-bottom: var(--zen-space-8);
  font-size: var(--zen-text-xs);
  color: var(--zen-fg-secondary);
}

.sdk-focus-label {
  font-weight: 600;
  color: var(--zen-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--zen-space-1);
  white-space: nowrap;
}

/* API Tag - inline SDK API references */
.api-tag {
  display: inline-block;
  font-family: var(--zen-font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: var(--zen-bg-muted);
  border-radius: var(--zen-radius-sm);
  color: var(--zen-fg-secondary);
  margin: 1px 2px;
  line-height: 1.6;
}

.api-tag.new {
  background: var(--zen-fg);
  color: var(--zen-bg);
}

/* SDK Code Block - enhanced styling for SDK examples */
.sdk-example {
  margin: var(--zen-space-6) 0;
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  overflow: hidden;
}

.sdk-example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--zen-space-2) var(--zen-space-4);
  background: var(--zen-bg-subtle);
  border-bottom: 1px solid var(--zen-border);
  font-size: var(--zen-text-xs);
}

.sdk-example-label {
  display: flex;
  align-items: center;
  gap: var(--zen-space-2);
  font-weight: 600;
  color: var(--zen-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sdk-example-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.sdk-example-file {
  font-family: var(--zen-font-mono);
  color: var(--zen-fg-muted);
}

.sdk-example pre {
  margin: 0;
  padding: var(--zen-space-4);
  background: var(--zen-bg-muted);
  font-family: var(--zen-font-mono);
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--zen-fg-secondary);
}

.sdk-example code {
  font-family: inherit;
}

/* SDK Callout - for SDK-specific tips */
.sdk-callout {
  padding: var(--zen-space-4) var(--zen-space-5);
  border-radius: var(--zen-radius-lg);
  border: 1px solid var(--zen-border);
  border-left: 3px solid var(--zen-fg-muted);
  background: var(--zen-bg-subtle);
  margin: var(--zen-space-6) 0;
}

.sdk-callout h4 {
  font-size: var(--zen-text-sm);
  margin-bottom: var(--zen-space-1);
  display: flex;
  align-items: center;
  gap: var(--zen-space-2);
}

.sdk-callout p {
  font-size: var(--zen-text-sm);
  color: var(--zen-fg-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Gate Check - shown at end of path */
.path-gate {
  display: flex;
  align-items: flex-start;
  gap: var(--zen-space-3);
  padding: var(--zen-space-4) var(--zen-space-5);
  background: var(--zen-bg-subtle);
  border: 1px dashed var(--zen-border);
  border-radius: var(--zen-radius-lg);
  margin-top: var(--zen-space-8);
  font-size: var(--zen-text-sm);
  color: var(--zen-fg-secondary);
}

.path-gate svg {
  flex-shrink: 0;
  color: var(--zen-fg-muted);
  margin-top: 2px;
}

.path-gate strong {
  color: var(--zen-fg);
}

/* Try It section */
.try-it {
  margin-top: var(--zen-space-8);
  padding: var(--zen-space-6);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-xl);
  background: var(--zen-bg);
}

.try-it h3 {
  font-size: var(--zen-text-lg);
  margin-bottom: var(--zen-space-2);
  display: flex;
  align-items: center;
  gap: var(--zen-space-2);
}

.try-it p {
  font-size: var(--zen-text-sm);
  color: var(--zen-fg-secondary);
  margin-bottom: var(--zen-space-4);
}

.try-it ol {
  padding-left: var(--zen-space-5);
  font-size: var(--zen-text-sm);
  color: var(--zen-fg-secondary);
}

.try-it ol li {
  margin-bottom: var(--zen-space-2);
  line-height: 1.6;
}

/* Dark mode */
.dark .api-tag.new {
  background: var(--zen-fg);
  color: var(--zen-bg);
}

.dark .sdk-example pre {
  background: #1a1a1e;
}

/* =========================================
 * Next Steps (Bottom of lesson pages)
 * ========================================= */
.next-steps {
  margin-top: var(--zen-space-12);
  padding: var(--zen-space-6);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-xl);
  background: var(--zen-bg-subtle);
}

.next-steps-header {
  font-size: var(--zen-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zen-fg-muted);
  margin-bottom: var(--zen-space-4);
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-3);
}

.next-steps-item {
  display: flex;
  align-items: center;
  gap: var(--zen-space-3);
  padding: var(--zen-space-3) var(--zen-space-4);
  background: var(--zen-bg);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.next-steps-item:hover {
  border-color: var(--zen-fg-muted);
  background: var(--zen-bg-muted);
}

.next-steps-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--zen-radius-md);
  background: var(--zen-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--zen-fg-muted);
}

.next-steps-item-icon.exercise {
  background: var(--zen-accent-subtle);
  color: var(--zen-accent);
}

.next-steps-item-icon.capstone {
  background: #fef3c7;
  color: #d97706;
}

.next-steps-item-icon.next {
  background: var(--zen-bg-muted);
  color: var(--zen-fg-secondary);
}

.next-steps-item-content {
  flex: 1;
  min-width: 0;
}

.next-steps-item-title {
  font-size: var(--zen-text-sm);
  font-weight: 500;
  margin-bottom: 1px;
}

.next-steps-item-desc {
  font-size: var(--zen-text-xs);
  color: var(--zen-fg-muted);
}

.next-steps-item-arrow {
  width: 16px;
  height: 16px;
  color: var(--zen-fg-muted);
  flex-shrink: 0;
}

/* Capstone variant */
.next-steps.capstone {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb, var(--zen-bg-subtle));
}

.next-steps.capstone .next-steps-header {
  color: #b45309;
}

/* Dark mode */
.dark .next-steps-item-icon.capstone {
  background: rgba(217, 119, 6, 0.2);
}

.dark .next-steps.capstone {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.1), var(--zen-bg-subtle));
  border-color: rgba(252, 211, 77, 0.3);
}
