/* =========================
   Overlay
   ========================= */

#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* =========================
   Popup – Desktop Center
   ========================= */

#social-follow-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  max-width: 300px;
  width: calc(100% - 40px);
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: fadeInCenter 0.4s ease;
}

/* =========================
   Popup Content
   ========================= */

.popup-content h3 {
  margin-top: 0;
  color: #111;
}

.popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* =========================
   Social Buttons
   ========================= */

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.social-buttons a {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.social-buttons a.telegram { background: #2AABEE; }
.social-buttons a.x        { background: #000000; }
.social-buttons a.youtube  { background: #FF0000; }
.social-buttons a.rumble   { background: #1A9F29; }
.social-buttons a.facebook { background: #1877F2; }

/* =========================
   Mobile: Bottom Sheet
   ========================= */

@media (max-width: 768px) {
  #social-follow-popup {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 12px 12px;
    animation: slideUp 0.4s ease;
  }
}

/* =========================
   Animations
   ========================= */

@keyframes fadeInCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}