/* Social Share Component - CSP Compliant */
/* No inline styles - all styling via CSS classes */

/* X (Twitter) Icon - from Socicon font */
@font-face {
    font-family: 'Socicon';
    src: url('../fonts/socicon.eot');
    src: url('../fonts/socicon.eot?#iefix') format('embedded-opentype'),
         url('../fonts/socicon.woff2') format('woff2'),
         url('../fonts/socicon.woff') format('woff'),
         url('../fonts/socicon.ttf') format('truetype'),
         url('../fonts/socicon.svg#socicon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.socicon-twitter:before {
    font-family: 'Socicon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e08d";
}

.socicon-facebook:before {
    font-family: 'Socicon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e028";
}

.socicon-instagram:before {
    font-family: 'Socicon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e044";
}

.socicon-linkedin:before {
    font-family: 'Socicon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e04c";
}

.social-share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color:var(--bg-light-gray);
    padding: 1em 0;
    margin: 1.5rem 0;
    border: 1px solid #fff;
    border-radius: 12px;
    box-shadow: inset rgba(14, 189, 243, 1) 4px 0px 0px 0px,
               inset rgba(14, 189, 243, 1) -4px 0px 0px 0px;
}

.social-share-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-right: 0.5rem;
}

.social-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: #f3f4f6;
    color: #374151;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share-btn:focus {
    outline: 2px solid #0ebdf3;
    outline-offset: 2px;
}

/* Facebook */
.social-share-btn.facebook:hover {
    background-color: #1877f2;
    color: #ffffff;
}

/* X (Twitter) */
.social-share-btn.twitter:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Instagram - uses copy link since IG doesn't support URL sharing */
.social-share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

/* LinkedIn */
.social-share-btn.linkedin:hover {
    background-color: #0a66c2;
    color: #ffffff;
}

/* Copy Link */
.social-share-btn.copy {
    background-color: #f3f4f6;
    color: #374151;
}

.social-share-btn.copy:hover {
    background-color: #6b7280;
    color: #ffffff;
}

.social-share-btn.copy svg {
    width: 18px;
    height: 18px;
}

/* Copy link button state */
.social-share-btn.copied {
    background-color: #10b981;
    color: #ffffff;
}

/* Icon sizing */
.social-share-btn .socicon {
    font-size: 1.1rem;
}

/* Position variants */
.social-share-container.top {
    margin-top: 0;
    margin-bottom: 2rem;
}

.social-share-container.bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Toast notification for copy feedback */
.social-share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1f2937;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.social-share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}



/* CSS */
.button-64 {
  align-items: center;
  background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
}

.button-64:active,
.button-64:hover {
  outline: 0;
}

.button-64 span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 20px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.button-64:hover span {
  background: none;
}

@media (min-width: 768px) {
  .button-64 {
    font-size: 24px;
    min-width: 196px;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .social-share-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-share-label {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .social-share-btn {
        width: 44px;
        height: 44px;
    }
}

/* CSP Compliant Utility - Off-screen element for clipboard fallback */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
