/* icons.css — how the v2 full-color icons (assets/icons.js) sit in the UI, the SING/SCREAM hero icon, and the
   notification bell + panel (assets/notify.js). Loaded after style.css on index.html and admin.html. */

/* ---------- rich icons everywhere ---------- */
/* The stickers carry their own colors; a soft shadow lifts them off the purple panels. */
.i { filter: drop-shadow(0 1px 1px rgba(10, 2, 24, .45)); }
.navlink .i { width: 1.35em; height: 1.35em; transition: transform .18s ease; }
.navlink:hover .i, .iconbtn:hover .i { transform: translateY(-1px) rotate(-8deg) scale(1.08); }
.iconbtn .i { width: 1.55em; height: 1.55em; transition: transform .18s ease; }
.user-chip .i { width: 1.3em; height: 1.3em; }
.btn .i { width: 1.25em; height: 1.25em; }
.btn.small .i { width: 1.3em; height: 1.3em; }

/* Mode switch: the inactive mode's sticker is dimmed, the active one pops. */
.mode .i { width: 2.1em; height: 2.1em; filter: grayscale(.8) brightness(.8) drop-shadow(0 1px 1px rgba(10, 2, 24, .45)); opacity: .75;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.mode:hover .i { opacity: .95; filter: grayscale(.3) drop-shadow(0 1px 1px rgba(10, 2, 24, .45)); }
.mode.active .i { opacity: 1; filter: drop-shadow(0 0 8px rgba(39, 232, 255, .55)); transform: rotate(-8deg) scale(1.06); }
.mode.active[data-mode="worst"] .i { filter: drop-shadow(0 0 8px rgba(255, 45, 149, .65)); transform: rotate(6deg) scale(1.06); }

/* Home cards + feature grid: bigger stickers on a soft glow tile. */
.card-ic { width: 52px; height: 52px; border-radius: 16px; }
.card-ic .i { width: 2em; height: 2em; }
.feature > .i { width: 2.1em; height: 2.1em; margin-top: 0; padding: 7px; box-sizing: content-box; border-radius: 14px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 70%); border: 1px solid var(--line); }
.feature:hover > .i { transform: rotate(-6deg) scale(1.06); }
.feature > .i { transition: transform .2s ease; }
.title-ic > .i { width: 1.2em; height: 1.2em; }
.tut-emoji .i { width: 4rem; height: 4rem; }
.tile-ph .i { opacity: 1; }

/* ---------- SING / SCREAM: the big button's hero icon (Icon.hero) ---------- */
.ic-hero { position: relative; display: inline-grid; place-items: center; width: 2em; height: 1.3em; margin: -.2em 0 -.2em .1em; }
.btn.big .ic-hero > .i { width: 1.6em; height: 1.6em; position: relative; z-index: 1; filter: drop-shadow(0 2px 0 rgba(26, 6, 48, .3));
  animation: heroBob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.ic-waves { position: absolute; left: 50%; top: 50%; width: 3.4em; height: 1.7em; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.ic-waves .wv { fill: none; stroke: #1a0630; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .2;
  animation: heroWave 1.6s ease-in-out infinite; }
.ic-waves .l2, .ic-waves .r2 { animation-delay: .25s; }
.ic-hero-scream .ic-waves .wv { animation: heroZap 1.1s steps(2, end) infinite; }
.ic-hero-scream > .i { animation-name: heroShake !important; animation-duration: 2.6s !important; }
@keyframes heroWave { 0%, 100% { opacity: .15; } 45% { opacity: .9; } }
@keyframes heroZap { 0% { opacity: .9; transform: translate(0, 0); } 50% { opacity: .35; transform: translate(.6px, -.6px); } }
@keyframes heroBob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-1px); } }
@keyframes heroShake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg) scale(1.1); } 88% { transform: rotate(10deg) scale(1.1); }
  92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
/* A slow breathing glow on SING (SCREAM already shakes). */
.btn.big:not(.scream):not(:disabled) { animation: singGlow 2.8s ease-in-out infinite; }
@keyframes singGlow { 0%, 100% { box-shadow: 0 6px 24px rgba(255, 45, 149, .35); } 50% { box-shadow: 0 6px 34px rgba(255, 45, 149, .6), 0 0 0 6px rgba(255, 233, 77, .08); } }
@media (prefers-reduced-motion: reduce) {
  .btn.big .ic-hero > .i, .ic-waves .wv, .btn.big:not(.scream):not(:disabled) { animation: none !important; }
  .ic-waves .wv { opacity: .7; }
}

/* ---------- notification bell ---------- */
.iconbtn.bell { position: relative; }
/* Phones: the bell is one more button on the top row, so tighten that row so it never runs over the logo. */
@media (max-width: 480px) {
  .nav-side { gap: 3px; }
  .nav-side .iconbtn { width: 31px; height: 31px; }
  .nav-side .iconbtn .i { width: 1.4em; height: 1.4em; }
  .nav-side .btn.small { padding: 7px 11px; }
}
@media (max-width: 400px) { .brand-logo { height: 20px; } }
.iconbtn.bell.has-unread .i { animation: bellRing 3.2s ease-in-out infinite; transform-origin: 50% 12%; }
@keyframes bellRing { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(16deg); } 88% { transform: rotate(-14deg); } 91% { transform: rotate(9deg); } 94% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .iconbtn.bell.has-unread .i { animation: none; } }
.bell-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  background: linear-gradient(180deg, #ff6fb0, var(--pink)); color: #fff; font: 800 .66rem/17px system-ui, sans-serif; text-align: center;
  box-shadow: 0 0 0 2px var(--bg), 0 2px 8px rgba(255, 45, 149, .5); pointer-events: none; }

.notify-panel { position: fixed; right: 14px; z-index: 60; width: min(380px, calc(100vw - 28px)); max-height: min(72vh, 620px);
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid #3a2a5c; border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; text-align: left;
  animation: ntIn .16s ease-out; }
@keyframes ntIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nt-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.nt-head h2 { font-size: 1.05rem; margin: 0 auto 0 0; display: inline-flex; align-items: center; gap: 8px; }
.nt-head .linkish { font-size: .8rem; color: var(--cyan); }
.nt-head .linkish:disabled { color: var(--muted); opacity: .5; cursor: default; }
.nt-head .iconbtn { width: 32px; height: 32px; }
.nt-head .iconbtn .i { width: 1.1em; height: 1.1em; }
.nt-list { list-style: none; margin: 0; padding: 6px; overflow: auto; min-height: 0; }
.nt-item { border-radius: 12px; }
.nt-item + .nt-item { margin-top: 2px; }
.nt-main { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: start;
  padding: 10px; border-radius: 12px; }
.nt-main:hover { background: rgba(255, 255, 255, .05); }
.nt-main:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.nt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.nt-ic .i { width: 26px; height: 26px; }
.nt-emoji { font-size: 1.35rem; line-height: 1; }
.nt-text { display: grid; gap: 2px; min-width: 0; }
.nt-text b { font-size: .92rem; line-height: 1.3; color: var(--ink); }
.nt-body { font-size: .84rem; line-height: 1.35; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nt-text small { font-size: .74rem; color: var(--muted); opacity: .85; }
.nt-text small u { text-decoration: none; color: var(--cyan); font-weight: 700; }
.nt-item.unread .nt-ic { border-color: rgba(255, 45, 149, .55); box-shadow: 0 0 12px rgba(255, 45, 149, .25); }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); margin-top: 6px; box-shadow: 0 0 8px var(--pink); }
.nt-item.open { background: rgba(255, 255, 255, .03); }
.nt-item.open .nt-body { display: none; }
.nt-more { padding: 0 10px 12px 60px; }
.nt-more .update { padding: 4px 12px 10px; }
.nt-more .update h4:first-child { margin-top: 8px; }
.nt-empty { display: flex; align-items: center; gap: 10px; padding: 22px 14px; color: var(--muted); font-size: .9rem; }
.nt-empty .i { width: 28px; height: 28px; opacity: .7; }
@media (max-width: 600px) {
  .notify-panel { left: 8px; right: 8px; width: auto; max-height: 76vh; }
  .nt-more { padding-left: 10px; }
}
