/* RafaelLíngua · conta do estudante nos cursos: botão da conta no topo e post-its. Cores do curso (ou do árabe, pelos nomes antigos). */
:root {
  --s-acc: var(--acc, var(--gold, #d4a24c));
  --s-acc-l: var(--acc-l, var(--gold-l, #f6d58a));
  --s-on: var(--on-acc, #2a1606);
  --s-bg: var(--bg2, var(--night-2, #141a3a));
  --s-line: color-mix(in srgb, var(--s-acc) 24%, transparent);
}

/* ---------- Botão da conta ---------- */
.acct-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: .85rem;
  border: 1px solid var(--s-line); color: var(--ink, #f4ecdf); text-decoration: none; transition: .2s; white-space: nowrap;
}
.acct-chip:hover { border-color: var(--s-acc); }
.acct-chip b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; background: linear-gradient(135deg, var(--s-acc-l), var(--s-acc)); color: var(--s-on); }
@media (max-width: 760px) { .acct-chip span { display: none; } .acct-chip { padding: 3px; } }

/* ---------- Botão flutuante e "📌 Post-it" da seleção ---------- */
.pi-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.6rem; background: linear-gradient(135deg, #fff2a8, #ffd54a); box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 4px rgba(255, 213, 74, .18);
  transition: transform .25s;
}
.pi-fab:hover { transform: translateY(-3px) rotate(-6deg); }
.pi-fab.bump { animation: piBump .6s; }
.pi-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #ff5a4f; color: #fff; font: 700 .72rem/22px system-ui, sans-serif; }
.pi-pin {
  position: fixed; z-index: 95; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; font: 700 .85rem system-ui, sans-serif;
  background: #ffd54a; color: #2a2410; box-shadow: 0 8px 22px rgba(0,0,0,.35); animation: piPop .25s;
}

/* ---------- Painel ---------- */
.pi-shade { position: fixed; inset: 0; z-index: 110; background: rgba(5, 7, 20, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.pi-shade.open { opacity: 1; pointer-events: auto; }
.pi-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(440px, 100%); display: flex; flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 96%, #000), var(--s-bg)); border-left: 1px solid var(--s-line);
  box-shadow: -20px 0 60px rgba(0,0,0,.5); transform: translateX(105%); transition: transform .45s cubic-bezier(.3, 1.2, .5, 1);
  color: var(--ink, #f4ecdf); font-family: var(--f-ui, 'Outfit', system-ui, sans-serif); direction: ltr;
}
.pi-drawer.open { transform: none; }
.pi-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 12px; }
.pi-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--s-acc); font-weight: 600; }
.pi-head h3 { font-size: 1.4rem; }
.pi-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: inherit; font-size: 1.6rem; cursor: pointer; }
.pi-body { flex: 1; overflow-y: auto; padding: 4px 22px 24px; }
.pi-new { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--s-line); margin-bottom: 18px; }
.pi-new textarea { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--s-line); background: rgba(0,0,0,.25); color: inherit; font: inherit; outline: none; }
.pi-new textarea:focus { border-color: var(--s-acc); }
.pi-new-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pi-colors { display: flex; gap: 6px; }
.pi-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.pi-dot.on { border-color: #fff; transform: scale(1.15); }
.pi-btn { display: inline-flex; align-items: center; gap: 6px; padding: .55em 1.1em; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, var(--s-acc-l), var(--s-acc)); color: var(--s-on); }
.pi-tip { font-size: .8rem; color: var(--muted, #b9b1c9); margin-top: 8px; }
.pi-none { text-align: center; grid-column: 1 / -1; }
.pi-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pi-link { display: block; margin-top: 18px; font-size: .85rem; color: var(--s-acc-l); }
.pi-empty { text-align: center; padding: 30px 10px; color: var(--muted, #b9b1c9); }
.pi-empty .pi-big { font-size: 3rem; }
.pi-empty p { margin: 10px 0 18px; }

/* ---------- O post-it ---------- */
.pi-note {
  position: relative; padding: 18px 12px 8px; min-height: 150px; display: flex; flex-direction: column; color: #2a2410;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 18px rgba(0,0,0,.35); transition: transform .25s, opacity .3s;
  border-radius: 2px 2px 14px 2px;
}
.pi-note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(255,255,255,.45); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pi-note:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.pi-note.fresh { animation: piStick .55s cubic-bezier(.3, 1.6, .5, 1); }
.pi-note.gone { transform: scale(.6) rotate(12deg); opacity: 0; }
.pi-note textarea { flex: 1; width: 100%; border: 0; background: transparent; resize: none; outline: none; color: inherit; font: 500 .95rem/1.45 'Caveat', 'Comic Sans MS', 'Segoe Print', cursive, sans-serif; font-size: 1.15rem; }
.pi-note-foot { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; opacity: .7; font-family: system-ui, sans-serif; }
.pi-del { border: 0; background: none; cursor: pointer; font-size: .95rem; opacity: .6; }
.pi-del:hover { opacity: 1; }
.c-yellow { background: #ffe97f; } .c-pink { background: #ffb8cc; } .c-blue { background: #aedbff; }
.c-green { background: #bdf0b4; } .c-orange { background: #ffcf99; } .c-purple { background: #d9c6ff; }
.pi-dot.c-yellow { background: #ffe97f; } .pi-dot.c-pink { background: #ffb8cc; } .pi-dot.c-blue { background: #aedbff; }
.pi-dot.c-green { background: #bdf0b4; } .pi-dot.c-orange { background: #ffcf99; } .pi-dot.c-purple { background: #d9c6ff; }

@keyframes piBump { 30% { transform: scale(1.25) rotate(-10deg); } 60% { transform: scale(.95) rotate(6deg); } }
@keyframes piPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes piStick { from { transform: translateY(-30px) rotate(-12deg) scale(1.15); opacity: 0; } to { transform: rotate(var(--r, 0deg)); opacity: 1; } }
@media (max-width: 520px) { .pi-wall { grid-template-columns: 1fr 1fr; gap: 12px; } .pi-fab { right: 12px; bottom: 12px; } }
