/* CLL Courses 2.3 — celebrations */
.cllc-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100001; }
.cllc-ring-svg { display: block; } .cllc-ring-fill { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); } .cllc-ring-text { font: 800 1.1rem/1 Inter, system-ui, sans-serif; fill: var(--cllc-deep, #0A2A8A); }
/* toast */
.cllc-toast { position: fixed; right: 20px; bottom: 20px; z-index: 100000; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: min(440px, calc(100vw - 32px)); padding: 14px 14px 14px 16px; background: #fff; color: #0b1220; border-radius: 16px; border: 1px solid #e6e9f0; box-shadow: 0 24px 60px rgba(10,20,50,.25); transform: translateY(24px); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; font-family: Inter, system-ui, sans-serif; }
.cllc-toast.in { transform: none; opacity: 1; }
.cllc-toast .cllc-ring-text { font-size: .85rem; }
.cllc-toast-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .cllc-toast-body strong { font-size: 1rem; } .cllc-toast-body span { font-size: .82rem; color: #6b7280; } .cllc-toast-body .cllc-btn { margin-top: 6px; justify-content: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cllc-toast-x, .cllc-celebrate-x { background: none; border: 0; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; padding: 4px 8px; align-self: start; }
/* overlay */
.cllc-celebrate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(6, 14, 36, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; font-family: Inter, system-ui, sans-serif; }
.cllc-celebrate.in { opacity: 1; }
body.cllc-celebrating { overflow: hidden; }
.cllc-celebrate-box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: #0b1220; border-radius: 24px; padding: 40px 40px 32px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,.45); transform: translateY(24px) scale(.97); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cllc-celebrate.in .cllc-celebrate-box { transform: none; }
.cllc-celebrate-x { position: absolute; top: 12px; right: 14px; }
.cllc-cele-kicker { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--cllc-primary, #1E5BFF); margin-bottom: 10px; } .cllc-cele-kicker.gold { color: #b7791f; }
.cllc-celebrate-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; } .cllc-celebrate-box p { color: #3b4457; margin: 0 auto 20px; max-width: 46ch; }
.cllc-cele-badge { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cllc-deep, #0A2A8A), var(--cllc-primary, #1E5BFF)); box-shadow: 0 12px 30px rgba(30,91,255,.35); animation: cllc-pop .6s cubic-bezier(.2,.8,.2,1); }
.cllc-cele-ring { display: grid; place-items: center; margin: 6px 0 22px; } .cllc-cele-ring .cllc-ring-text { font-size: 1.5rem; }
.cllc-cele-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .cllc-cele-actions.wrap .cllc-btn { flex: 1 1 180px; } .cllc-cele-dash { flex-basis: 100% !important; margin-top: 6px; }
/* certificate preview */
.cllc-certpreview { margin: 6px auto 22px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, #0A2A8A, #1E5BFF); max-width: 480px; animation: cllc-pop .7s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 60px rgba(10,42,138,.35); }
.cllc-certpreview-inner { background: #fff; border-radius: 10px; padding: 24px 22px 18px; border: 3px double #F2B134; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.cllc-certpreview-inner small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; font-weight: 700; } .cllc-certpreview-inner strong { font-size: 1.4rem; letter-spacing: -.01em; margin-top: 8px; } .cllc-certpreview-inner span { font-size: .8rem; color: #6b7280; } .cllc-certpreview-inner em { font-style: normal; font-weight: 700; color: var(--cllc-deep, #0A2A8A); }
.cllc-certpreview-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid #e6e9f0; font-size: .75rem; color: #6b7280; } .cllc-certpreview-foot code { background: #f3f5f9; padding: 2px 8px; border-radius: 6px; color: #0A2A8A; }
.cllc-copy.done { color: #15803d !important; }
@keyframes cllc-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* certificates on My learning */
.cllc-certs .cllc-certcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; overflow: hidden; }
.cllc-certcard-top { position: relative; aspect-ratio: 16/7; background: linear-gradient(135deg, var(--cllc-deep, #0A2A8A), var(--cllc-primary, #1E5BFF)); } .cllc-certcard-top img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.cllc-certseal { position: absolute; right: 14px; bottom: -18px; width: 44px; height: 44px; border-radius: 50%; background: #F2B134; color: #1a1200; display: grid; place-items: center; font-weight: 800; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.cllc-certcard-body { padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 6px; } .cllc-certcard-body small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; font-weight: 700; } .cllc-certcard-body h3 { margin: 0; font-size: 1.05rem; } .cllc-certcard-body code { align-self: flex-start; font-size: .8rem; background: #f3f5f9; padding: 3px 8px; border-radius: 6px; color: #0A2A8A; }
.cllc-certcard-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cllc-certempty { padding: 28px; border: 1px dashed #c4c9d4; border-radius: 16px; color: #3b4457; } .cllc-certempty strong { display: block; margin-bottom: 4px; color: #0b1220; }
@media (max-width: 640px) { .cllc-celebrate-box { padding: 28px 18px 22px; border-radius: 18px; } .cllc-toast { grid-template-columns: 52px 1fr auto; right: 12px; left: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cllc-toast, .cllc-celebrate, .cllc-celebrate-box, .cllc-ring-fill, .cllc-cele-badge, .cllc-certpreview { transition: none !important; animation: none !important; } }
