/* ITET Learn — tutorial.css — shared styles for /tutorials/* */

.tut-page-hero { background: linear-gradient(135deg, #162447 0%, #1E3A6E 100%); color: #fff; padding: 50px 16px 60px; position: relative; overflow: hidden; }
.tut-page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(245,156,13,0.20), transparent 50%); pointer-events: none; }
.tut-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 0.78rem; opacity: 0.7; margin-bottom: 18px; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: #F59C0D; }
.tut-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mb-pill { font-size: 0.7rem; font-weight: 800; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.mb-topic { background: #F59C0D; color: #fff; }
.mb-diff { background: #dcfce7; color: #166534; }
.mb-diff.intermediate { background: #fef3c7; color: #92400e; }
.mb-diff.advanced { background: #fee2e2; color: #991b1b; }
.mb-time { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); }
.tut-page-hero h1 { font-size: 2.3rem; font-weight: 800; margin: 0 0 16px; line-height: 1.2; }
.tut-page-hero .tagline { font-size: 1rem; opacity: 0.88; line-height: 1.6; max-width: 700px; }
@media(max-width:520px){ .tut-page-hero h1 { font-size: 1.5rem; } }

.preview-box { max-width: 860px; margin: -28px auto 40px; padding: 0 16px; }
.preview-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.10); padding: 22px 26px; border: 1px solid #e2e8f0; }
html.dark .preview-card { background: #1e293b; border-color: #334155; }
.preview-card h3 { font-size: 0.78rem; font-weight: 800; color: #F59C0D; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.preview-card p { font-size: 0.92rem; color: #475569; margin: 0; line-height: 1.6; }
html.dark .preview-card p { color: #cbd5e1; }

.tut-content { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }

.req-box { background: #f8fafc; border-left: 4px solid #F59C0D; border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0 36px; }
html.dark .req-box { background: #1e293b; }
.req-box h3 { font-size: 1rem; font-weight: 800; color: #162447; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
html.dark .req-box h3 { color: #f1f5f9; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media(max-width:480px){ .req-list { grid-template-columns: 1fr; } }
.req-list li { font-size: 0.86rem; color: #475569; display: flex; align-items: center; gap: 8px; }
html.dark .req-list li { color: #cbd5e1; }
.req-list li::before { content: '✓'; color: #22c55e; font-weight: 800; flex-shrink: 0; }

.step-block { margin: 40px 0; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
html.dark .step-block { border-color: #334155; }
.step-header { background: #f8fafc; padding: 16px 22px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #e2e8f0; }
html.dark .step-header { background: #1e293b; border-bottom-color: #334155; }
.step-num-big { background: #F59C0D; color: #fff; min-width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem; flex-shrink: 0; }
.step-header h2 { font-size: 1.15rem; font-weight: 800; color: #162447; margin: 0; line-height: 1.3; }
html.dark .step-header h2 { color: #f1f5f9; }

/* Guest teaser gate — free tutorials only, see auth_check.php $itet_soft_gate */
.itet-gate-wrap { position: relative; margin-top: -40px; }
.itet-gate-fade {
  position: absolute; top: 0; left: 0; right: 0; height: 260px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 85%);
  pointer-events: none; z-index: 2;
}
html.dark .itet-gate-fade { background: linear-gradient(to bottom, rgba(11,18,32,0) 0%, #0b1220 85%); }
.itet-gate-hidden { filter: blur(5px); user-select: none; pointer-events: none; }
.itet-gate-card {
  position: relative; z-index: 3; margin: -60px auto 40px; max-width: 520px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 26px;
  text-align: center; box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
html.dark .itet-gate-card { background: #1e293b; border-color: #334155; }
.itet-gate-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; color: #162447; }
html.dark .itet-gate-card h3 { color: #f1f5f9; }
.itet-gate-card p { margin: 0 0 18px; color: #64748b; font-size: 0.92rem; }
.itet-gate-card a.itet-gate-cta {
  display: inline-block; background: #F59C0D; color: #fff; font-weight: 700;
  padding: 12px 28px; border-radius: 10px; text-decoration: none; font-size: 0.95rem;
}
.itet-gate-card .itet-gate-sub { margin-top: 10px; font-size: 0.78rem; color: #94a3b8; }
.step-body { padding: 22px 26px; }
.step-body p { font-size: 0.92rem; color: #475569; line-height: 1.7; margin: 0 0 14px; }
html.dark .step-body p { color: #cbd5e1; }
.step-body p:last-child { margin-bottom: 0; }
.step-body code { background: #fff4dc; color: #b87b00; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; font-family: 'Courier New', monospace; }
html.dark .step-body code { background: rgba(245,156,13,0.15); color: #F59C0D; }
.step-body ol, .step-body ul { color: #475569; }
html.dark .step-body ol, html.dark .step-body ul { color: #cbd5e1; }

.tcode { background: #1e1e2e; color: #cdd6f4; border-radius: 10px; padding: 18px 20px; font-family: 'Courier New', monospace; font-size: 0.85rem; margin: 14px 0; overflow-x: auto; line-height: 1.7; }
.tcode code { color: inherit; background: transparent; padding: 0; border-radius: 0; font-size: inherit; font-family: inherit; }
.tcode .kw { color: #89b4fa; font-weight: 700; }
.tcode .str { color: #a6e3a1; }
.tcode .num { color: #fab387; }
.tcode .cmt { color: #6c7086; font-style: italic; }
.tcode .fn { color: #f5c2e7; }
.code-filename { display: inline-block; background: #334155; color: #cbd5e1; font-size: 0.7rem; padding: 3px 10px; border-radius: 6px 6px 0 0; font-family: 'Courier New', monospace; margin: 14px 0 0; }
.code-filename + .tcode { margin-top: 0; border-top-left-radius: 0; }

.output-box { background: #0f172a; color: #4ade80; border-radius: 10px; padding: 14px 18px; font-family: 'Courier New', monospace; font-size: 0.85rem; margin: 12px 0; line-height: 1.7; border-left: 3px solid #22c55e; }
.output-label { font-size: 0.7rem; font-weight: 800; color: #22c55e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }

.tip-box { background: #fef3c7; border-left: 4px solid #F59C0D; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0; font-size: 0.86rem; color: #78350f; line-height: 1.6; }
.tip-box strong { color: #92400e; }
html.dark .tip-box { background: rgba(245,156,13,0.10); color: #fdba74; }
html.dark .tip-box strong { color: #fb923c; }

.final-result { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 1.5px solid #fed7aa; border-radius: 14px; padding: 26px 28px; margin: 50px 0 30px; text-align: center; }
html.dark .final-result { background: rgba(245,156,13,0.08); border-color: rgba(245,156,13,0.3); }
.final-result .icon { font-size: 2.5rem; margin-bottom: 8px; }
.final-result h3 { font-size: 1.3rem; font-weight: 800; color: #9a3412; margin: 0 0 8px; }
html.dark .final-result h3 { color: #fb923c; }
.final-result p { font-size: 0.9rem; color: #7c2d12; margin: 0 0 18px; line-height: 1.6; }
html.dark .final-result p { color: #fdba74; }
.final-result .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.final-result a { display: inline-block; background: #F59C0D; color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.final-result a:hover { background: #D4860A; }

.next-section h2 { font-size: 1.2rem; font-weight: 800; color: #162447; margin: 30px 0 16px; }
html.dark .next-section h2 { color: #f1f5f9; }
.next-list { list-style: none; padding: 0; margin: 0; }
.next-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #475569; }
html.dark .next-list li { border-bottom-color: #334155; color: #cbd5e1; }
.next-list li::before { content: '→'; color: #F59C0D; font-weight: 800; flex-shrink: 0; }
.next-list li:last-child { border-bottom: none; }
