/* ZeroEPIC Social Sidebar — sidebar.css v3.0.0 */

:root {
  --ze-font      : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ze-wa-green  : #25D366;
  --ze-wa-dark   : #075E54;
  --ze-wa-mid    : #128C7E;
  --ze-surface   : rgba(12, 14, 20, 0.96);
  --ze-border    : rgba(255,255,255,0.10);
  --ze-text-main : #ffffff;
  --ze-text-muted: rgba(255,255,255,0.55);
  --ze-radius    : 16px;
  --ze-icon-size : 44px;
}

/* ── Sidebar wrapper ─────────────────────────────── */
.ze-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  animation: zeIn 0.65s cubic-bezier(0.23,1,0.32,1) both;
}
@keyframes zeIn {
  from { opacity:0; transform:translateY(-50%) translateX(110%); }
  to   { opacity:1; transform:translateY(-50%) translateX(0);    }
}

/* ═══════════════════════════════════════════════════
   WHATSAPP — Redesigned clean card
═══════════════════════════════════════════════════ */
.ze-wa-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.ze-wa-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 280px;
  background: var(--ze-surface);
  border: 1px solid rgba(37,211,102,.22);
  border-right: none;
  border-radius: var(--ze-radius) 0 0 var(--ze-radius);
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: -6px 0 32px rgba(0,0,0,.45), -2px 0 12px rgba(37,211,102,.12);
  /* collapsed: only avatar shows */
  transform: translateX(calc(100% - 60px));
  transition: transform .42s cubic-bezier(0.23,1,0.32,1),
              border-color .3s ease,
              box-shadow .3s ease;
}
.ze-wa-card:hover,
.ze-wa-card:focus-visible {
  transform: translateX(0) !important;
  border-color: rgba(37,211,102,.5);
  box-shadow: -10px 0 48px rgba(0,0,0,.5), -4px 0 20px rgba(37,211,102,.25);
  outline: none;
}

/* Avatar circle */
.ze-wa-avatar {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulse ring behind avatar */
.ze-wa-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ze-wa-green);
  animation: zePulse 2.6s ease-out infinite;
  transform: scale(0.85);
  opacity: 0;
}
@keyframes zePulse {
  0%  { transform: scale(0.85); opacity: .45; }
  60% { transform: scale(1.55); opacity: 0; }
  100%{ transform: scale(1.55); opacity: 0; }
}

.ze-wa-avatar-icon {
  position: relative;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25D366, #075E54);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(37,211,102,.35);
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1);
}
.ze-wa-card:hover .ze-wa-avatar-icon { transform: scale(1.1) rotate(-5deg); }
.ze-wa-avatar-icon svg {
  width: 22px; height: 22px;
  fill: #fff;
}

/* Text body */
.ze-wa-body {
  flex: 1;
  padding: 12px 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--ze-font);
  min-width: 0;
}
.ze-wa-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.ze-wa-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ze-wa-green);
  flex-shrink: 0;
  animation: zeBlink 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(37,211,102,.6);
}
@keyframes zeBlink { 0%,100%{opacity:1} 50%{opacity:.25} }
.ze-wa-online-txt {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ze-wa-green);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ze-wa-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  line-height: 1;
}
.ze-wa-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ze-text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ze-wa-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--ze-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA arrow */
.ze-wa-cta {
  flex-shrink: 0;
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,211,102,.08);
  border-left: 1px solid rgba(37,211,102,.12);
  color: var(--ze-wa-green);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .28s ease, transform .28s ease;
  align-self: stretch;
}
.ze-wa-card:hover .ze-wa-cta { opacity: 1; transform: translateX(0); }

/* Divider */
.ze-divider {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08));
  margin: 1px 0;
}

/* ═══════════════════════════════════════════════════
   SOCIAL ICON BUTTONS
═══════════════════════════════════════════════════ */
.ze-socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.ze-social-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ze-social-btn {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  opacity: 0;
  animation: zeItemIn .5s forwards;
}
.ze-social-btn:hover { text-decoration: none !important; }

.ze-socials .ze-social-wrap:nth-child(1)  .ze-social-btn { animation-delay:.08s }
.ze-socials .ze-social-wrap:nth-child(2)  .ze-social-btn { animation-delay:.14s }
.ze-socials .ze-social-wrap:nth-child(3)  .ze-social-btn { animation-delay:.20s }
.ze-socials .ze-social-wrap:nth-child(4)  .ze-social-btn { animation-delay:.26s }
.ze-socials .ze-social-wrap:nth-child(5)  .ze-social-btn { animation-delay:.32s }
.ze-socials .ze-social-wrap:nth-child(6)  .ze-social-btn { animation-delay:.38s }
.ze-socials .ze-social-wrap:nth-child(7)  .ze-social-btn { animation-delay:.44s }
.ze-socials .ze-social-wrap:nth-child(8)  .ze-social-btn { animation-delay:.50s }
.ze-socials .ze-social-wrap:nth-child(9)  .ze-social-btn { animation-delay:.56s }
.ze-socials .ze-social-wrap:nth-child(10) .ze-social-btn { animation-delay:.62s }

@keyframes zeItemIn {
  from { opacity:0; transform:translateX(22px); }
  to   { opacity:1; transform:translateX(0); }
}

/* Tooltip label */
.ze-social-label {
  font-family: var(--ze-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--ze-text-main);
  background: rgba(6,8,18,.97);
  border: 1px solid var(--ze-border);
  border-right: none;
  padding: 5px 10px 5px 12px;
  border-radius: 8px 0 0 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.ze-social-btn:hover .ze-social-label,
.ze-social-btn:focus-visible .ze-social-label {
  opacity: 1;
  transform: translateX(0);
}

/* Icon pill */
.ze-social-icon {
  width: var(--ze-icon-size);
  height: var(--ze-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0 0 10px;
  border: 1px solid var(--ze-border);
  border-right: none;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.ze-social-icon svg,
.ze-social-icon img,
.ze-social-icon .ze-custom-icon {
  width: 20px; height: 20px;
  position: relative; z-index: 1;
  object-fit: contain;
  transition: transform .30s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}
.ze-social-btn:hover .ze-social-icon svg,
.ze-social-btn:hover .ze-social-icon img { transform: scale(1.22); }

/* Per-platform hover colors — built-ins */
.ze-social-wrap[data-platform="behance"]   .ze-social-btn:hover .ze-social-icon { border-color:#1769FF; box-shadow:-4px 0 18px rgba(23,105,255,.40);  background:rgba(23,105,255,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="fiverr"]    .ze-social-btn:hover .ze-social-icon { border-color:#1DBF73; box-shadow:-4px 0 18px rgba(29,191,115,.40);  background:rgba(29,191,115,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="linkedin"]  .ze-social-btn:hover .ze-social-icon { border-color:#0A66C2; box-shadow:-4px 0 18px rgba(10,102,194,.40);  background:rgba(10,102,194,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="twitter"]   .ze-social-btn:hover .ze-social-icon { border-color:#aaa;    box-shadow:-4px 0 18px rgba(200,200,200,.18); background:rgba(200,200,200,.05); transform:translateX(-3px); }
.ze-social-wrap[data-platform="instagram"] .ze-social-btn:hover .ze-social-icon { border-color:#E1306C; box-shadow:-4px 0 18px rgba(225,48,108,.40);  background:rgba(225,48,108,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="youtube"]   .ze-social-btn:hover .ze-social-icon { border-color:#FF0000; box-shadow:-4px 0 18px rgba(255,0,0,.40);    background:rgba(255,0,0,.08);    transform:translateX(-3px); }
.ze-social-wrap[data-platform="facebook"]  .ze-social-btn:hover .ze-social-icon { border-color:#1877F2; box-shadow:-4px 0 18px rgba(24,119,242,.40);  background:rgba(24,119,242,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="tiktok"]    .ze-social-btn:hover .ze-social-icon { border-color:#ff0050; box-shadow:-4px 0 18px rgba(255,0,80,.35);    background:rgba(255,0,80,.06);    transform:translateX(-3px); }
.ze-social-wrap[data-platform="pinterest"] .ze-social-btn:hover .ze-social-icon { border-color:#E60023; box-shadow:-4px 0 18px rgba(230,0,35,.40);    background:rgba(230,0,35,.07);    transform:translateX(-3px); }
.ze-social-wrap[data-platform="snapchat"]  .ze-social-btn:hover .ze-social-icon { border-color:#FFFC00; box-shadow:-4px 0 18px rgba(255,252,0,.30);   background:rgba(255,252,0,.06);   transform:translateX(-3px); }
.ze-social-wrap[data-platform="github"]    .ze-social-btn:hover .ze-social-icon { border-color:#aaa;    box-shadow:-4px 0 18px rgba(200,200,200,.18); background:rgba(200,200,200,.05); transform:translateX(-3px); }
.ze-social-wrap[data-platform="discord"]   .ze-social-btn:hover .ze-social-icon { border-color:#5865F2; box-shadow:-4px 0 18px rgba(88,101,242,.40);  background:rgba(88,101,242,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="telegram"]  .ze-social-btn:hover .ze-social-icon { border-color:#26A5E4; box-shadow:-4px 0 18px rgba(38,165,228,.40);  background:rgba(38,165,228,.08);  transform:translateX(-3px); }
.ze-social-wrap[data-platform="dribbble"]  .ze-social-btn:hover .ze-social-icon { border-color:#EA4C89; box-shadow:-4px 0 18px rgba(234,76,137,.40);  background:rgba(234,76,137,.08);  transform:translateX(-3px); }

/* Custom platform fallback hover */
.ze-social-btn:hover .ze-social-icon {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════
   POPUP BUBBLE
═══════════════════════════════════════════════════ */
.ze-popup {
  position: absolute;
  right: calc(var(--ze-icon-size) + 8px);
  bottom: 50%;
  transform: translateY(50%) translateX(8px) scale(0.92);
  transform-origin: right center;
  background: rgba(10,12,22,.97);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px 10px 0 10px;
  padding: 9px 30px 9px 13px;
  min-width: 160px;
  max-width: 210px;
  box-shadow: -4px 4px 24px rgba(0,0,0,.50);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(0.23,1,0.32,1);
  z-index: 100000;
}
.ze-popup.ze-popup--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(50%) translateX(0) scale(1);
}
.ze-popup::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 0;
  border-width: 8px 0 0 8px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(10,12,22,.97);
}
.ze-popup-text {
  font-family: var(--ze-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ze-text-main);
  line-height: 1.45;
  display: block;
}
.ze-popup-close {
  position: absolute;
  top: 4px; right: 6px;
  background: none;
  border: none;
  color: var(--ze-text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 3px;
  transition: color .2s ease;
}
.ze-popup-close:hover { color: #fff; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .ze-wa-card  { width: 255px; transform: translateX(calc(100% - 52px)); }
  .ze-wa-avatar { width: 52px; height: 52px; }
  .ze-wa-avatar-icon { width: 34px; height: 34px; }
  .ze-wa-avatar-icon svg { width: 18px; height: 18px; }
  .ze-wa-headline { font-size: 12.5px; }
  .ze-wa-sub { font-size: 10.5px; }
  :root { --ze-icon-size: 40px; }
  .ze-popup { max-width: 175px; }
}
