/* =============================================
   Lesson 11 — Carbon Credits Tokenization
   Unique component styles + forest/lime theme
   ============================================= */

/* ---- Forest/lime accent variables ---- */
:root {
  --forest:      #16a34a;
  --forest-dim:  rgba(22,163,74,0.12);
  --forest-mid:  rgba(22,163,74,0.22);
  --lime:        #84cc16;
  --lime-dim:    rgba(132,204,22,0.10);
}

/* Override shared blue-based styles with forest green for this lesson */
[data-lesson="11"] .hero-grid { background-image:linear-gradient(rgba(22,163,74,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(22,163,74,.04) 1px,transparent 1px); }
[data-lesson="11"] .hero-glow { background:radial-gradient(ellipse 75% 55% at 50% 0%,rgba(22,163,74,.16) 0%,rgba(132,204,22,.06) 40%,transparent 70%); }
[data-lesson="11"] .ghost-num { color:rgba(22,163,74,.04); }
[data-lesson="11"] .series-badge { background:var(--forest-dim); border-color:rgba(22,163,74,.35); color:var(--green); }
[data-lesson="11"] .series-badge::before { background:var(--green); }
[data-lesson="11"] .hero h1 .accent { color:var(--green); }
[data-lesson="11"] .scroll-line { background:linear-gradient(to bottom,var(--forest),transparent); }
[data-lesson="11"] .section-label { color:var(--green); }
[data-lesson="11"] .highlight-box { background:var(--forest-dim); border-color:rgba(22,163,74,.25); border-left-color:var(--forest); }
[data-lesson="11"] .divider { background:linear-gradient(to right,transparent,rgba(22,163,74,.2),transparent); }
[data-lesson="11"] .stat-num { color:var(--green); }
[data-lesson="11"] .cta-section::before { background:radial-gradient(ellipse 70% 60% at 50% 50%,rgba(22,163,74,.08) 0%,transparent 70%); }
[data-lesson="11"] .cta-btn { background:linear-gradient(135deg,var(--forest),var(--lime)); }
[data-lesson="11"] .cta-btn:hover { box-shadow:0 16px 40px rgba(22,163,74,.3); }
[data-lesson="11"] .cta-btn.secondary { background:transparent; border-color:rgba(22,163,74,.4); color:var(--green); }
[data-lesson="11"] .cta-btn.secondary:hover { background:var(--forest-dim); border-color:var(--forest); }
[data-lesson="11"] .series-pill.active { background:var(--forest-dim); border-color:rgba(22,163,74,.5); color:var(--green); }

/* ---- CARBON CREDIT VISUAL (hero) ---- */
.carbon-visual { margin-top:52px; opacity:0; animation:fadeUp .8s ease .8s forwards; display:flex; gap:16px; align-items:center; justify-content:center; flex-wrap:wrap; }
.credit-card { background:var(--navy-light); border:1px solid rgba(22,163,74,.25); border-radius:14px; padding:20px 22px; min-width:140px; text-align:center; position:relative; overflow:hidden; }
.credit-card.verified { border-color:rgba(22,163,74,.55); background:rgba(22,163,74,.07); }
.credit-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--forest),var(--lime)); }
.credit-card .cc-type { font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.18em; color:rgba(22,163,74,.7); text-transform:uppercase; margin-bottom:6px; }
.credit-card .cc-amount { font-family:"Lora",serif; font-size:1.4rem; font-weight:800; color:var(--green); line-height:1; }
.credit-card .cc-unit { font-size:.72rem; color:var(--white-dim); margin-top:2px; }
.credit-card .cc-status { margin-top:10px; font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.3); }
.credit-card.verified .cc-status { color:var(--green); }
.credit-arrow { color:rgba(22,163,74,.4); font-size:1.2rem; }
.token-row { display:flex; gap:8px; margin-top:16px; justify-content:center; flex-wrap:wrap; }
.t-chip { background:var(--forest-dim); border:1px solid rgba(22,163,74,.3); border-radius:20px; padding:4px 12px; font-family:"DM Mono",monospace; font-size:9px; color:var(--green); }

/* ---- MARKET TYPE PANELS ---- */
.problem-split { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:52px; }
.problem-panel { border-radius:16px; padding:32px; }
.problem-panel.voluntary { background:rgba(3,136,166,.06); border:1px solid rgba(3,136,166,.2); }
.problem-panel.compliance { background:rgba(22,163,74,.06); border:1px solid rgba(22,163,74,.2); }
.pp-label { font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.2em; text-transform:uppercase; margin-bottom:12px; }
.problem-panel.voluntary .pp-label { color:var(--blue-light); }
.problem-panel.compliance .pp-label { color:var(--green); }
.problem-panel h3 { font-family:"Lora",serif; font-size:1.1rem; margin-bottom:14px; }
.problem-panel p { font-size:.875rem; color:var(--white-dim); line-height:1.75; margin:0; }

/* ---- PAIN CARDS ---- */
.pain-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:52px; }
.pain-card { background:rgba(255,154,60,.05); border:1px solid rgba(255,154,60,.2); border-radius:14px; padding:28px; transition:transform .3s; }
.pain-card:hover { transform:translateY(-4px); }
.pain-card .icon { width:44px; height:44px; border-radius:10px; background:rgba(255,154,60,.1); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.pain-card h3 { font-family:"Lora",serif; font-size:1rem; margin-bottom:8px; color:var(--orange); }
.pain-card p { font-size:.875rem; color:var(--white-dim); margin:0; line-height:1.7; }

/* ---- CREDIT TYPE CARDS ---- */
.type-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; margin-top:52px; }
.type-card { background:var(--navy-light); border:1px solid rgba(22,163,74,.18); border-radius:16px; padding:32px; position:relative; overflow:hidden; transition:transform .3s,box-shadow .3s; }
.type-card::before { content:""; position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,var(--forest),var(--lime)); }
.type-card:hover { transform:translateY(-5px); box-shadow:0 20px 50px rgba(0,0,0,.4); }
.type-card .tc-label { font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.2em; color:var(--green); text-transform:uppercase; margin-bottom:10px; }
.type-card h3 { font-family:"Lora",serif; font-size:1.05rem; margin-bottom:10px; }
.type-card p { font-size:.875rem; color:var(--white-dim); margin:0; line-height:1.7; }
.type-card .example { margin-top:12px; background:var(--forest-dim); border-radius:8px; padding:10px 14px; font-size:.8rem; color:rgba(255,255,255,.75); line-height:1.6; }

/* ---- LIFECYCLE VISUAL ---- */
.lifecycle { display:flex; align-items:center; gap:0; margin-top:52px; overflow-x:auto; padding-bottom:8px; }
.lc-stage { background:var(--navy-light); border:1px solid rgba(22,163,74,.2); border-radius:12px; padding:18px 16px; min-width:120px; text-align:center; flex-shrink:0; }
.lc-stage.active { background:rgba(22,163,74,.08); border-color:rgba(22,163,74,.5); }
.lc-stage .lc-icon { display:flex; justify-content:center; margin-bottom:8px; }
.lc-stage .lc-label { font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.15em; color:rgba(255,255,255,.35); text-transform:uppercase; margin-bottom:3px; }
.lc-stage.active .lc-label { color:var(--green); }
.lc-stage .lc-name { font-family:"Lora",serif; font-size:.78rem; font-weight:700; color:var(--white-dim); }
.lc-stage.active .lc-name { color:rgba(94,219,160,.9); }
.lc-arrow { color:rgba(22,163,74,.35); padding:0 6px; font-size:.9rem; flex-shrink:0; }

/* ---- FLOW STEPS ---- */
.flow-steps { display:flex; flex-direction:column; gap:0; margin-top:52px; }
.flow-row { display:grid; grid-template-columns:72px 1fr; gap:24px; align-items:stretch; }
.flow-line { display:flex; flex-direction:column; align-items:center; }
.flow-circle { width:52px; height:52px; border-radius:50%; background:var(--forest-dim); border:2px solid rgba(22,163,74,.4); display:flex; align-items:center; justify-content:center; flex-shrink:0; z-index:1; }
.flow-connector { width:2px; flex:1; background:linear-gradient(to bottom,rgba(22,163,74,.4),rgba(3,136,166,.1)); margin:4px auto; }
.flow-row:last-child .flow-connector { display:none; }
.flow-content { padding-bottom:44px; }
.flow-content h4 { font-family:"Lora",serif; font-size:1.1rem; margin-bottom:8px; }
.flow-content p { font-size:.92rem; color:var(--white-dim); margin:0; max-width:600px; line-height:1.75; }
.flow-content .detail-box { margin-top:14px; background:var(--navy-mid); border-radius:10px; padding:16px 20px; font-size:.84rem; color:var(--white-dim); line-height:1.7; }

/* ---- BENEFIT CARDS ---- */
.benefit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; margin-top:52px; }
.benefit-card { background:var(--navy-light); border:1px solid rgba(22,163,74,.14); border-radius:16px; padding:30px; position:relative; overflow:hidden; transition:transform .3s,box-shadow .3s; }
.benefit-card::before { content:""; position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,var(--forest),var(--lime)); }
.benefit-card:hover { transform:translateY(-5px); box-shadow:0 20px 50px rgba(0,0,0,.4); }
.benefit-card .icon { width:46px; height:46px; border-radius:11px; background:var(--forest-dim); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.benefit-card h3 { font-family:"Lora",serif; font-size:1.05rem; margin-bottom:8px; }
.benefit-card p { font-size:.86rem; color:var(--white-dim); line-height:1.75; margin:0; }

/* ---- COMPARE TABLE ---- */
.compare-table { width:100%; border-collapse:collapse; margin-top:52px; }
.compare-table th { font-family:"DM Mono",monospace; font-size:10px; letter-spacing:.2em; text-transform:uppercase; padding:14px 20px; text-align:left; }
.compare-table th:first-child { color:var(--white-dim); }
.compare-table th.col-old { color:var(--orange); background:rgba(255,154,60,.06); border-radius:8px 8px 0 0; }
.compare-table th.col-new { color:var(--green); background:rgba(22,163,74,.06); border-radius:8px 8px 0 0; }
.compare-table td { padding:14px 20px; font-size:.9rem; border-bottom:1px solid rgba(255,255,255,.05); vertical-align:top; color:var(--white-dim); }
.compare-table td:nth-child(2) { background:rgba(255,154,60,.03); }
.compare-table td:nth-child(3) { background:rgba(22,163,74,.03); }
.compare-table td:first-child { font-weight:500; font-size:.82rem; font-family:"DM Mono",monospace; }
.tag-bad { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.78rem; background:rgba(255,154,60,.15); color:var(--orange); }
.tag-good { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.78rem; background:rgba(22,163,74,.15); color:var(--green); }

/* ---- STAKEHOLDER CARDS ---- */
.stake-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:52px; }
.stake-card { background:var(--navy-light); border:1px solid rgba(22,163,74,.14); border-radius:16px; padding:32px; transition:transform .3s; }
.stake-card:hover { transform:translateY(-4px); }
.stake-card .role { font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.2em; color:var(--green); text-transform:uppercase; margin-bottom:10px; }
.stake-card h3 { font-family:"Lora",serif; font-size:1.1rem; margin-bottom:14px; }
.win-list { display:flex; flex-direction:column; gap:10px; }
.win-item { display:flex; gap:12px; align-items:flex-start; font-size:.875rem; color:var(--white-dim); }
.win-item svg { flex-shrink:0; margin-top:2px; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px){
  .type-grid, .pain-grid, .benefit-grid, .stake-grid, .problem-split { grid-template-columns:1fr; }
  .stats-inner { grid-template-columns:1fr 1fr; }
  .lifecycle { gap:6px; }
  .lc-arrow { display:none; }
  .carbon-visual { gap:8px; }
  .credit-arrow { display:none; }
}
