/* --------------------------- */
/* Social Share Block          */
/* --------------------------- */
.social-share-block {
  position: relative;
  display: inline-block;
}

/* --------------------------- */
/* Share Button (Square Icon)  */
/* --------------------------- */
.open-share-modal {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #f5f5f5;
  color: #444;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 42px;

  transition: background 0.2s ease, transform 0.2s ease;
}


.open-share-modal:hover {
  background: #369ce0;
  transform: scale(1.05);
}

.open-share-modal svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* --------------------------- */
/* Arrow button hover effect   */
/* --------------------------- */

.open-share-modal:hover svg path {
  fill: #ffffff;
  stroke: #ffffff;
}

.open-share-modal:hover span {
  color: #ffffff;
}



/* --------------------------- */
/* Modal Container             */
/* --------------------------- */
.share-modal {
  position: absolute;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 6px 18px rgba(0,0,0,0.12);
  padding: 10px 12px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  min-width: auto;

  display: flex;
  flex-direction: row;
  gap: 10px;
}

.share-modal.hidden {
  display: none;
}

/* --------------------------- */
/* Modal Positioning           */
/* --------------------------- */
.share-modal.open-down {
  top: 45px;
}

.share-modal.open-up {
  bottom: 45px;
}

/* --------------------------- */
/* Social Buttons (Square)     */
/* --------------------------- */
.share-modal a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 42px;
  border-radius: 8px;
  background: #f5f5f5;        /* neutral light grey */
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover effect */
.share-modal a:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* Icon colors */
.share-modal a[data-network="facebook"] svg path {
  fill: #1877F2;   /* Facebook blue */
}

.share-modal a[data-network="linkedin"] svg path {
  fill: #0A66C2;   /* LinkedIn blue */
}

/* Remove brand colors */
.share-modal a[data-network="facebook"],
.share-modal a[data-network="linkedin"] {
  background: #f5f5f5;        /* override blue brand backgrounds */
}

/* SVG Icons inside modal */
.share-modal svg {
  width: 20px;
  height: 20px;
  opacity: 0.95;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.share-modal a:hover svg {
  opacity: 1;
  fill: white;
}

/* --------------------------- */
/* Fade-in Animation           */
/* --------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
