/* ============================================
   Social Share Buttons — CEC Moldova (popup)
   ============================================ */

.social-share {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 0px;
}

/* Butonul "Distribuie" */
.social-share__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 4px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  transition: background 0.2s, border-color 0.2s;
}

.social-share__toggle:hover {
  background: #f5f5f5;
  border-color: #999;
}

.social-share__toggle svg {
  color: #555;
}

/* Popup — ascuns implicit, aliniat dreapta */
.social-share__popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  left: auto;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

/* Săgeata de sub popup — dreapta */
.social-share__popup::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: auto;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  transform: rotate(45deg);
}

/* Popup deschis */
.social-share__popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Butoanele de share */
.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.social-share__btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

/* Culori per platformă */
.social-share__btn--facebook  { background-color: #1877F2; }
.social-share__btn--x         { background-color: #000;    }
.social-share__btn--linkedin  { background-color: #0A66C2; }
.social-share__btn--telegram  { background-color: #26A5E4; }
.social-share__btn--viber     { background-color: #7360F2; }
.social-share__btn--whatsapp  { background-color: #25D366; }

/* Responsive — pe mobil popup-ul se deschide sub buton */
@media (max-width: 576px) {
  .social-share__popup {
    bottom: auto;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    flex-wrap: wrap;
  }

  .social-share__popup::after {
    bottom: auto;
    top: -7px;
    left: auto;
    right: 24px;
    transform: rotate(-135deg);
  }

  .social-share__btn {
    width: 38px;
    height: 38px;
  }

  .social-share__btn svg {
    width: 18px;
    height: 18px;
  }
}