/* ─── examples.css — Sessemi examples layout ─── */

/* ─── INDEX PAGE ─── */
.examples-hero {
  max-width: 640px; margin: 0 auto;
  padding: 7rem 1.5rem 1rem;
}
.examples-hero .subtitle { margin-bottom: 1.5rem; }

.examples-grid {
  max-width: 720px; margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.example-card {
  display: block; text-decoration: none;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-surface);
  transition: border-color 0.2s, transform 0.15s;
}
.example-card:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.example-card.coming-soon {
  opacity: 0.45; pointer-events: none;
}

.card-badges {
  display: flex; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.badge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge-cf { color: #f48120; border-color: rgba(244, 129, 32, 0.3); }
.badge-dd { color: #00b4d8; border-color: rgba(0, 180, 216, 0.3); }
.badge-ak { color: #e040fb; border-color: rgba(224, 64, 251, 0.3); }
.badge-session { color: var(--green); border-color: rgba(0, 255, 136, 0.2); }

.card-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.35rem;
}
.card-desc {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 0;
}

/* ─── EXAMPLE DETAIL PAGE ─── */
.example-layout {
  max-width: 720px; margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.example-layout .back-link {
  display: inline-block; font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 2rem; transition: color 0.2s;
}
.example-layout .back-link:hover { color: var(--text-secondary); }

.example-layout h1 { margin-bottom: 0.5rem; }
.example-layout .meta {
  color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem;
}
.example-layout .meta a { color: var(--text-secondary); }

.step-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green); margin-bottom: 0.4rem;
}

.example-layout pre {
  position: relative;
}
.example-layout .lang-tag {
  position: absolute; top: 0.5rem; right: 0.75rem;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); opacity: 0.6;
}

/* response preview */
.response-preview {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem;
  margin-bottom: 1.5rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-secondary); line-height: 1.6;
}
.response-preview .json-key { color: var(--cyan); }
.response-preview .json-str { color: var(--green); }
.response-preview .json-num { color: var(--amber); }

/* tip callout (reuses blog callout) */
.callout {
  background: var(--bg-surface); border-left: 3px solid var(--green);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; font-size: 0.88rem; }

/* bottom CTA */
.example-cta {
  margin-top: 2.5rem; padding: 1.5rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; text-align: center;
}
.example-cta p { margin-bottom: 1rem; }
.cta-btn {
  display: inline-block; padding: 0.65rem 1.5rem;
  background: var(--green); color: var(--bg-deep);
  font-weight: 600; font-size: 0.88rem; border-radius: 6px;
  text-decoration: none; transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .examples-grid { grid-template-columns: 1fr; }
  .examples-hero { padding: 5rem 1.25rem 1rem; }
  .examples-grid { padding-left: 1.25rem; padding-right: 1.25rem; }
  .example-layout { padding: 5rem 1.25rem 3rem; }
  .example-layout pre { font-size: 0.75rem; padding: 0.75rem; }
}
