/* ============================================================================
   Little Learners bookshelf — static CSS, zero PHP/DB dependency.
   Matches the live /study-material/ncert-notes shelf structure EXACTLY (wood
   plaque, side class-label panel, standing book-spine design, plank + shadow
   dividers, same container width — no page-specific max-width), including
   the !important on every rule — the live page uses it because a sitewide
   base style also targets these same .ls- class names, and without
   !important that base style quietly wins (confirmed: this was the bug
   behind the missing class-label background). Two deliberate differences,
   per direct feedback:
     1. Per-subject colors are FIXED by subject name (Numbers/Maths always
        teal, Alphabets/English always gold, etc.) rather than cycling by
        shelf position — same subject, same color, on every shelf.
     2. The shelf background is a light pink tint (matching the Little
        Learners homepage card color) instead of NCERT's neutral tan.
   Everything else — plaque, class-label panel, book spines — is a straight
   copy of the NCERT page's own CSS.
   This file (and little-learners-shelf.js) can be copied to Cloudflare
   Pages unchanged in a future migration, same as the Brain games pages.
   Depends on Tabler Icons webfont (loaded by little-learners.php) and
   brand fonts Lexend + DM Sans (already loaded by sas-theme).
   ============================================================================ */

.ll-page .ls-shelf-wrap{background:linear-gradient(180deg,#faecf1,#f4dde7)!important;border-radius:14px!important;overflow:hidden!important;border:1px solid #ecd3de!important;position:relative!important}
.ll-page .ls-shelf-plaque,.ll-page .ls-shelf-sub,.ll-page #shelf-wrap{position:relative!important;z-index:1!important}

/* ---- Fun decorations (Option B: floating balloons + spine stickers) ---- */
.ll-page .ll-balloons{position:absolute!important;inset:0!important;z-index:0!important;pointer-events:none!important;overflow:hidden!important}
.ll-page .ll-balloon{position:absolute!important;opacity:.85!important;animation:llBalloonFloat 6s ease-in-out infinite!important}
.ll-page .ll-balloon-1{width:44px!important;top:34px!important;left:6%!important;animation-delay:0s!important}
.ll-page .ll-balloon-2{width:32px!important;top:78px!important;right:9%!important;animation-delay:1.2s!important}
.ll-page .ll-balloon-3{width:38px!important;top:24px!important;right:26%!important;animation-delay:2.4s!important}
@keyframes llBalloonFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.ll-page .ls-bk-sticker{position:absolute!important;top:-9px!important;right:-9px!important;width:22px!important;height:22px!important;z-index:2!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))!important}
@media(prefers-reduced-motion:reduce){.ll-page .ll-balloon{animation:none!important}}
@media(max-width:480px){.ll-page .ll-balloons{display:none!important}}
.ll-page .ls-shelf-plaque{display:flex!important;align-items:center!important;justify-content:center!important;padding:14px 32px!important;background:linear-gradient(180deg,#5a3a1a,#3d2810)!important;border-bottom:2px solid #2e1c0a!important;position:relative!important}
.ll-page .ls-shelf-plaque::after{content:''!important;position:absolute!important;top:4px!important;left:12px!important;right:12px!important;height:1px!important;background:rgba(255,255,255,.1)!important}
.ll-page .ls-shelf-plaque h1{margin:0!important;font-size:24px!important;font-weight:700!important;color:#F5E6C8!important;letter-spacing:3.5px!important;text-transform:uppercase!important}
.ll-page .ls-shelf-plaque i{margin-right:14px!important;font-size:26px!important;color:#F5E6C8!important}
.ll-page .ls-shelf-sub{text-align:center!important;font-size:15px!important;color:#5c5248!important;margin:10px 20px 2px!important;line-height:1.4!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.ll-page .ls-shelf-plank{height:14px!important;border-top:2px solid #6a4a2a!important;position:relative!important;background:linear-gradient(180deg,#5a3a1a,#3d2810 40%,#4a3218 70%,#2e1c0a)!important}
.ll-page .ls-shelf-plank::after{content:''!important;position:absolute!important;top:4px!important;left:0!important;right:0!important;height:1px!important;background:rgba(255,255,255,.15)!important}
.ll-page .ls-shelf-shadow{height:8px!important;background:linear-gradient(180deg,#e3c7d4,#f4dde7)!important}
.ll-page .ls-bk{cursor:pointer!important;transition:transform .25s!important;text-decoration:none!important;display:block!important}
.ll-page .ls-bk:hover{transform:translateY(-10px)!important}
.ll-page .ls-bk-pages{height:7px!important;margin-left:4px!important;margin-right:1px!important;background:#fff!important;border-radius:0 1px 0 0!important;border-top:1px solid #e0dcd4!important;border-right:1px solid #e0dcd4!important;position:relative!important;overflow:hidden!important}
.ll-page .ls-bk-pages::before{content:''!important;position:absolute!important;top:3px!important;left:0!important;right:0!important;height:1px!important;background:rgba(0,0,0,.04)!important}
.ll-page .ls-bk-spine{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:10px 5px!important;border-left:4px solid rgba(0,0,0,.18)!important;position:relative!important}
.ll-page .ls-bk-spine::after{content:''!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:6px!important;background:linear-gradient(90deg,rgba(0,0,0,.12),transparent)!important}
.ll-page .ls-bk-badge{width:36px!important;height:36px!important;border:1.5px solid rgba(255,255,255,.35)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-bottom:10px!important}
.ll-page .ls-bk-badge i{font-size:17px!important;color:#fff!important}
.ll-page .ls-bk-name{writing-mode:vertical-rl!important;text-orientation:mixed!important;transform:rotate(180deg)!important;font-size:16px!important;font-weight:700!important;color:#fff!important;letter-spacing:1.2px!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}
.ll-page .ls-ncert-shelf{display:flex!important;align-items:stretch!important}
.ll-page .ls-ncert-class-label{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:68px!important;min-width:68px!important;max-width:68px!important;flex:0 0 68px!important;padding:12px 4px!important;background:linear-gradient(180deg,#5a3a1a,#3d2810)!important;position:relative!important;box-sizing:border-box!important}
.ll-page .ls-ncert-class-label::after{content:''!important;position:absolute!important;right:0!important;top:8px!important;bottom:8px!important;width:1px!important;background:rgba(255,255,255,.12)!important}
.ll-page .ls-ncert-num{font-size:12px!important;font-weight:800!important;color:#fff!important;line-height:1.2!important;text-shadow:0 1px 3px rgba(0,0,0,.2)!important;text-align:center!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
.ll-page .ls-ncert-word{font-size:9px!important;font-weight:700!important;color:rgba(255,255,255,.8)!important;letter-spacing:1px!important;text-transform:uppercase!important;margin-top:3px!important}
.ll-page .ls-ncert-books{display:flex!important;align-items:flex-end!important;gap:9px!important;flex-wrap:wrap!important;flex:1!important;padding:10px 16px 0!important;min-height:80px!important}
.ll-page .ls-ncert-soon{font-size:13px!important;color:#9a9488!important;font-style:italic!important;padding:24px 0!important}

/* Our own addition, not from the NCERT page: a gentle fade-in per shelf. */
.ll-page .ls-ncert-shelf{animation:llShelfIn .5s ease both}
.ll-page .ls-ncert-shelf:nth-child(2){animation-delay:.05s}
@keyframes llShelfIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .ll-page .ls-ncert-shelf{animation:none!important}
  .ll-page .ls-bk{transition:none!important}
}

@media(max-width:768px){
  .ll-page .ls-bk-name{font-size:14px!important;letter-spacing:.8px!important}
  .ll-page .ls-bk-badge{width:30px!important;height:30px!important}
  .ll-page .ls-bk-badge i{font-size:14px!important}
  .ll-page .ls-shelf-plaque h1{font-size:20px!important;letter-spacing:2.5px!important}
  .ll-page .ls-shelf-plaque i{font-size:22px!important}
  .ll-page .ls-ncert-class-label{width:58px!important;min-width:58px!important;max-width:58px!important;flex:0 0 58px!important;padding:10px 3px!important}
  .ll-page .ls-ncert-num{font-size:10.5px!important}
  .ll-page .ls-ncert-books{gap:7px!important;padding:8px 12px 0!important}
}
@media(max-width:480px){
  .ll-page .ls-bk:hover{transform:translateY(-6px)!important}
  .ll-page .ls-bk-name{font-size:13px!important;letter-spacing:.6px!important}
  .ll-page .ls-bk-badge{width:24px!important;height:24px!important;margin-bottom:5px!important}
  .ll-page .ls-bk-badge i{font-size:11px!important}
  .ll-page .ls-bk-spine{padding:8px 3px!important}
  .ll-page .ls-bk>div{max-width:52px!important}
  .ll-page .ls-shelf-plaque h1{font-size:18px!important;letter-spacing:2px!important}
  .ll-page .ls-shelf-plaque i{font-size:20px!important}
  .ll-page .ls-shelf-plaque{padding:12px 16px!important}
  .ll-page .ls-shelf-sub{font-size:11px!important;margin:6px 12px 4px!important;white-space:normal!important}
  .ll-page .ls-ncert-shelf{flex-direction:column!important}
  .ll-page .ls-ncert-class-label{flex-direction:row!important;justify-content:center!important;width:100%!important;min-width:100%!important;max-width:100%!important;flex:none!important;padding:8px 16px!important;gap:8px!important;box-sizing:border-box!important}
  .ll-page .ls-ncert-class-label::after{right:16px!important;left:16px!important;top:auto!important;bottom:0!important;width:auto!important;height:1px!important}
  .ll-page .ls-ncert-num{font-size:15px!important}
  .ll-page .ls-ncert-word{font-size:11px!important;margin-top:0!important;font-weight:700!important;letter-spacing:1.5px!important}
  .ll-page .ls-ncert-books{gap:4px!important;padding:8px 8px 0!important;justify-content:center!important}
}
