/* topic-holo.css — holographic glass layer for Learn topic pages (Sean, 2026-10-30).
   Presentation only: no content, wording, sizes or contrast of the text change.
   Loaded after the page's own styles so these rules win ties. */

/* --- page backdrop: deep space with soft holographic glows --- */
body{
  background:
    radial-gradient(720px 480px at 12% -6%, rgba(64,224,208,.14), transparent 60%),
    radial-gradient(820px 560px at 96% 8%, rgba(150,110,255,.13), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(64,140,255,.10), transparent 60%),
    linear-gradient(180deg,#081226 0%,#071630 55%,#081226 100%);
  background-attachment:fixed;
}

/* --- section panels: frosted glass with a holographic rim --- */
.holo-sec{
  position:relative;
  margin:26px 0 8px;
  padding:6px 14px 12px;
  border-radius:22px;
  background:linear-gradient(165deg, rgba(120,220,255,.055), rgba(170,130,255,.045) 55%, rgba(64,224,208,.05));
  border:1px solid rgba(125,240,226,.20);
  box-shadow:0 18px 40px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.holo-sec::before{
  content:"";position:absolute;inset:-1px;border-radius:22px;padding:1px;pointer-events:none;
  background:conic-gradient(from 210deg, rgba(64,224,208,.55), rgba(110,160,255,.28), rgba(190,120,255,.45), rgba(64,224,208,.12), rgba(64,224,208,.55));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.55;
}

/* --- section headers: holographic title + fold toggle --- */
.holo-sec h2{
  display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;
  margin:14px 2px 8px;padding:6px 4px;border-radius:12px;
  background:linear-gradient(92deg,#8ff5e6 10%,#a9c8ff 55%,#d3a6ff 95%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#a9c8ff;
}
.holo-sec h2 .n{
  -webkit-text-fill-color:#cfe6ee;color:#cfe6ee;
  background:rgba(10,30,52,.65);border:1px solid rgba(125,240,226,.45);
  border-radius:999px;padding:2px 11px;font-size:.92rem;
  box-shadow:0 0 14px rgba(64,224,208,.25);
}
.holo-sec h2 .chev{
  margin-left:auto;flex:0 0 auto;width:52px;height:52px;border-radius:50%;
  border:2px solid rgba(125,240,226,.85);display:grid;place-items:center;
  -webkit-text-fill-color:#7df0e2;color:#7df0e2;font-size:1.7rem;font-weight:900;line-height:1;
  background:rgba(8,24,44,.85);box-shadow:0 0 16px rgba(64,224,208,.45), inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .35s ease;transform:rotate(180deg);
}
.holo-sec.closed h2 .chev{transform:rotate(0deg)}
.holo-sec .sec-body{overflow:hidden;transition:max-height .5s ease, opacity .4s ease;opacity:1}
.holo-sec.closed .sec-body{opacity:0}

/* --- rows become holographic glass cards --- */
.holo-sec a.row, .wrap a.row{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(160deg, rgba(96,190,255,.10), rgba(20,44,74,.55) 45%, rgba(120,90,255,.08));
  border:1px solid rgba(125,240,226,.32);
  box-shadow:0 10px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 22px rgba(64,224,208,.05);
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  transition:transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.holo-sec a.row::before, .wrap a.row::before{ /* kind medallion */
  content:"";flex:0 0 auto;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  font-size:1.15rem;color:#bffcff;
  background:radial-gradient(circle at 32% 28%, rgba(160,240,255,.35), rgba(30,80,120,.35) 62%, rgba(90,60,180,.30));
  border:1px solid rgba(150,235,255,.45);
  box-shadow:0 0 16px rgba(64,224,208,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.wrap a.row[href*="/learn/assets/"]::before{content:"\25B6"}              /* video */
.wrap a.row[href*="/learn/chart-"]::before{content:"\25A6"}              /* chart */
.wrap a.row[href*="/learn/lesson-"]::before{content:"\2756"}             /* lesson */
.wrap a.row[href*="#guide-"]::before{content:"\2726"}                    /* paid guide */
.wrap a.row[href*="/learn/tips/"]::before{content:"\26A1"}               /* quick tip */
.wrap a.row[href*="glossary"]::before{content:"Aa"}                      /* glossary */
.holo-sec a.row::after, .wrap a.row::after{ /* sheen sweep */
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(115deg, transparent 30%, rgba(170,240,255,.16) 48%, rgba(210,170,255,.12) 55%, transparent 72%);
  transform:translateX(-110%);transition:transform .8s ease;
}
.holo-sec a.row:hover::after, .wrap a.row:hover::after{transform:translateX(110%)}
.holo-sec a.row:hover, .wrap a.row:hover{
  transform:translateY(-3px) scale(1.008);
  border-color:rgba(140,245,230,.75);
  box-shadow:0 16px 34px rgba(0,0,0,.38), 0 0 22px rgba(64,224,208,.30), inset 0 1px 0 rgba(255,255,255,.14);
}
.holo-sec a.row:active, .wrap a.row:active{transform:scale(.985)}
.holo-sec a.row:focus-visible, .wrap a.row:focus-visible{outline:3px solid #7df0e2;outline-offset:2px}
.holo-sec a.row .tag, .wrap a.row .tag{
  background:rgba(30,24,4,.45);box-shadow:0 0 12px rgba(255,215,106,.22);
}

/* --- glossary word tiles get the glass too --- */
.holo-sec .wrow, .wrap .wrow{
  background:linear-gradient(160deg, rgba(96,190,255,.09), rgba(16,38,64,.6));
  border:1px solid rgba(95,216,207,.35);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.holo-sec .wrow:hover, .wrap .wrow:hover{
  transform:translateY(-2px);border-color:rgba(140,245,230,.7);
  box-shadow:0 10px 20px rgba(0,0,0,.3), 0 0 16px rgba(64,224,208,.25);
}

/* --- hologram materialize-in (JS adds .rv, then .in as cards scroll into view) --- */
.rv{opacity:0;transform:translateY(16px) scale(.985);filter:blur(3px) saturate(1.3)}
.rv.in{opacity:1;transform:none;filter:none;transition:opacity .55s ease, transform .55s cubic-bezier(.2,.8,.25,1), filter .55s ease}

@media (max-width:560px){
  .holo-sec{padding:4px 10px 10px;border-radius:19px}
  .holo-sec a.row::before, .wrap a.row::before{width:38px;height:38px;border-radius:11px}
  .holo-sec h2 .chev{width:48px;height:48px;font-size:1.55rem}
}
@media (prefers-reduced-motion: reduce){
  .rv{opacity:1;transform:none;filter:none}
  .rv.in{transition:none}
  .holo-sec a.row::after, .wrap a.row::after{display:none}
  .holo-sec .sec-body{transition:none}
  .holo-sec h2 .chev{transition:none}
}

/* --- v2 polish (2026-10-30): hero pictogram tile, holo top strip, kind colors + chips --- */
.hero .ic:has(svg){
  width:76px;height:76px;border-radius:20px;display:grid;place-items:center;
  background:radial-gradient(circle at 32% 26%, rgba(160,240,255,.20), rgba(16,40,70,.35) 65%, rgba(90,60,180,.22));
  border:1px solid rgba(140,245,230,.45);
  box-shadow:0 0 26px rgba(64,224,208,.30), inset 0 1px 0 rgba(255,255,255,.25);
}
.hero .ic svg{width:58px;height:58px}
.holo-sec a.row, .wrap a.row{
  background:
    linear-gradient(90deg, transparent, rgba(140,245,230,.55), rgba(190,140,255,.55), transparent) top / 100% 2px no-repeat,
    linear-gradient(160deg, rgba(96,190,255,.10), rgba(20,44,74,.55) 45%, rgba(120,90,255,.08));
}
.wrap a.row[href*="/learn/assets/"]::before{color:#ffd76a;border-color:rgba(255,215,106,.55);box-shadow:0 0 16px rgba(255,190,60,.30), inset 0 1px 0 rgba(255,255,255,.35)}
.wrap a.row[href*="/learn/chart-"]::before{color:#d9b8ff;border-color:rgba(190,140,255,.55);box-shadow:0 0 16px rgba(170,110,255,.32), inset 0 1px 0 rgba(255,255,255,.35)}
.wrap a.row[href*="#guide-"]::before{color:#ffe9a8;border-color:rgba(255,220,130,.6);box-shadow:0 0 18px rgba(255,205,80,.35), inset 0 1px 0 rgba(255,255,255,.4)}
.wrap a.row[href*="/learn/tips/"]::before{color:#fff3a0;border-color:rgba(255,240,150,.5)}
.wrap a.row[href*="glossary"]::before{color:#bcd6ff;border-color:rgba(150,190,255,.5)}
.holo-sec a.row::before, .wrap a.row::before{font-size:1.28rem}
.kind{
  margin-left:auto;flex:0 0 auto;align-self:center;font-size:.76rem;font-weight:800;letter-spacing:.07em;
  border-radius:999px;padding:4px 10px;border:1px solid rgba(125,240,226,.4);color:#aef3ea;background:rgba(8,24,44,.5);
}
.kind.k-chart{border-color:rgba(190,140,255,.55);color:#e2ccff}
.kind.k-guide{border-color:rgba(255,220,130,.6);color:#ffe9a8}
.kind.k-tip{border-color:rgba(255,240,150,.5);color:#fff3a0}
