/* IAcademy AE Labs — Interactive coding exercises */
.lab-hero { padding: 100px 0 40px; text-align: center; background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, transparent 100%); }
.lab-hero h1 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.lab-hero h1 span { color: #8b5cf6; }
.lab-hero p { color: #888; font-size: 15px; }
.lab-badge-top { display: inline-block; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3); color: #8b5cf6; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 100px; letter-spacing: 0.08em; margin-bottom: 16px; }

.lab-container { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }

/* Steps */
.lab-step { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 28px; margin-bottom: 20px; position: relative; }
.lab-step.active { border-color: rgba(139,92,246,0.3); }
.lab-step-num { position: absolute; top: -12px; left: 20px; background: #8b5cf6; color: #fff; font-size: 12px; font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lab-step h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.lab-step p { font-size: 14px; color: #aaa; line-height: 1.6; margin-bottom: 12px; }
.lab-step .hint { font-size: 13px; color: #8b5cf6; background: rgba(139,92,246,0.06); padding: 10px 14px; border-radius: 8px; border-left: 3px solid #8b5cf6; margin-top: 12px; }

/* Code editor */
.lab-editor-wrap { position: relative; margin: 12px 0; }
.lab-editor { width: 100%; min-height: 200px; padding: 16px; background: #0d0d1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; color: #e0e0e0; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 13px; line-height: 1.6; resize: vertical; tab-size: 4; }
.lab-editor:focus { outline: none; border-color: rgba(139,92,246,0.4); box-shadow: 0 0 0 3px rgba(139,92,246,0.08); }
.lab-editor-lang { position: absolute; top: 8px; right: 12px; font-size: 10px; font-weight: 700; color: #8b5cf6; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-run-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; background: #8b5cf6; color: #fff; border: none; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.lab-run-btn:hover { background: #7c3aed; transform: translateY(-1px); }
.lab-output-box { margin-top: 12px; padding: 14px; background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #ccc; display: none; white-space: pre-wrap; }
.lab-output-box.visible { display: block; }
.lab-output-box.error { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2); }

/* Checklist */
.lab-checklist { margin: 16px 0; }
.lab-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; color: #ccc; }
.lab-check input[type="checkbox"] { accent-color: #8b5cf6; margin-top: 3px; }
.lab-check.done { color: #22c55e; text-decoration: line-through; opacity: 0.7; }

/* Nav */
.lab-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.lab-nav a { color: #8b5cf6; font-size: 14px; font-weight: 600; text-decoration: none; }
.lab-nav a:hover { text-decoration: underline; }

/* Download buttons */
.lab-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.lab-dl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: #ccc; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.lab-dl-btn:hover { border-color: rgba(139,92,246,0.3); color: #8b5cf6; }

@media (max-width: 768px) {
  .lab-hero h1 { font-size: 28px; }
  .lab-step { padding: 20px; }
  .lab-editor { font-size: 12px; min-height: 150px; }
}
