/* =============================================================================
 * pp-shell.css — Global Navigation Drawer (auto-injected via pp-shell.js)
 * ========================================================================== */

/* HAMBURGER BUTTON (top-left fixed, always visible) */
.pp-shell-menu-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 20, 25, .85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.pp-shell-menu-btn:hover {
  border-color: #2DD4BF;
  background: rgba(45, 212, 191, .12);
}
.pp-shell-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #F0F4F8;
  border-radius: 2px;
  transition: all .25s;
}
.pp-shell-menu-btn.on span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: #2DD4BF;
}
.pp-shell-menu-btn.on span:nth-child(2) { opacity: 0; }
.pp-shell-menu-btn.on span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: #2DD4BF;
}
.pp-shell-menu-btn.has-notif::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FB923C;
  box-shadow: 0 0 0 2px rgba(15, 20, 25, .85);
  animation: ppShellPulse 2s infinite;
}
@keyframes ppShellPulse {
  50% { opacity: .5; }
}

/* BACKDROP */
.pp-shell-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all .35s;
}
.pp-shell-backdrop.on {
  opacity: 1;
  visibility: visible;
}

/* DRAWER */
.pp-shell-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 320px;
  max-width: 88vw;
  background: linear-gradient(180deg, #0F1419 0%, #1A2332 100%);
  border-left: 1px solid rgba(45, 212, 191, .15);
  box-shadow: -16px 0 60px -10px rgba(0, 0, 0, .6);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .9, .2, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #F0F4F8;
  overflow: hidden;
}
.pp-shell-drawer.on {
  transform: translateX(0);
}

/* HEADER */
.pp-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}
.pp-shell-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #F0F4F8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pp-shell-brand .dot { color: #2DD4BF; }
.pp-shell-brand .v {
  font-size: 11px;
  color: #2DD4BF;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: .15em;
}
.pp-shell-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #F0F4F8;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
}
.pp-shell-close:hover {
  border-color: #2DD4BF;
  color: #2DD4BF;
  transform: rotate(90deg);
}

/* USER */
.pp-shell-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(45, 212, 191, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  flex-shrink: 0;
}
.pp-shell-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2DD4BF, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #0F1419;
  flex-shrink: 0;
}
.pp-shell-user-info {
  flex: 1;
  min-width: 0;
}
.pp-shell-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #F0F4F8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-shell-user-email {
  font-size: 11px;
  color: rgba(240, 244, 248, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* MENU */
.pp-shell-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.pp-shell-menu::-webkit-scrollbar { width: 5px; }
.pp-shell-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border-radius: 5px;
}

.pp-shell-group {
  padding: 8px 0;
}
.pp-shell-group-title {
  padding: 6px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .25em;
  color: rgba(240, 244, 248, .35);
  text-transform: uppercase;
  font-weight: 600;
}

.pp-shell-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: rgba(240, 244, 248, .85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s;
  position: relative;
  border-left: 3px solid transparent;
}
.pp-shell-item:hover {
  background: rgba(255, 255, 255, .04);
  color: #2DD4BF;
}
.pp-shell-item-active {
  background: linear-gradient(90deg, rgba(45, 212, 191, .12), transparent);
  border-left-color: #2DD4BF;
  color: #2DD4BF;
  font-weight: 700;
}
.pp-shell-item-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.pp-shell-item-label {
  flex: 1;
}
.pp-shell-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(45, 212, 191, .14);
  color: #2DD4BF;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.pp-shell-live-badge {
  background: #FB923C;
  color: #0F1419;
  min-width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ACTIONS */
.pp-shell-actions {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-shell-logout, .pp-shell-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  border: 1px solid;
}
.pp-shell-logout {
  background: transparent;
  color: #F0F4F8;
  border-color: rgba(255, 255, 255, .12);
}
.pp-shell-logout:hover {
  border-color: rgba(239, 68, 68, .5);
  color: #FCA5A5;
}
.pp-shell-login {
  background: linear-gradient(135deg, #2DD4BF, #14B8A6);
  color: #0F1419;
  border-color: #2DD4BF;
}
.pp-shell-login:hover {
  background: linear-gradient(135deg, #5EEAD4, #2DD4BF);
}

/* FOOTER */
.pp-shell-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  flex-shrink: 0;
}
.pp-shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.pp-shell-footer-links a {
  font-size: 11px;
  color: rgba(240, 244, 248, .5);
  text-decoration: none;
  transition: .2s;
}
.pp-shell-footer-links a:hover { color: #2DD4BF; }
.pp-shell-footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
  color: rgba(240, 244, 248, .35);
  text-transform: uppercase;
}

/* MOBILE: drawer becomes wider */
@media (max-width: 600px) {
  .pp-shell-drawer {
    width: 88vw;
  }
  .pp-shell-menu-btn {
    top: 14px;
    left: 14px;
  }
}

/* RTL Support */
body.pp-rtl .pp-shell-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid rgba(45, 212, 191, .15);
  box-shadow: 16px 0 60px -10px rgba(0, 0, 0, .6);
}
body.pp-rtl .pp-shell-drawer.on {
  transform: translateX(0);
}
body.pp-rtl .pp-shell-menu-btn {
  left: auto;
  right: 16px;
}
body.pp-rtl .pp-shell-item {
  border-left: none;
  border-right: 3px solid transparent;
}
body.pp-rtl .pp-shell-item-active {
  background: linear-gradient(270deg, rgba(45, 212, 191, .12), transparent);
  border-right-color: #2DD4BF;
}
