/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================
   DO NOT EDIT COLORS HERE!
   Edit /static/css/site-theme.css instead.

   CSS Audit (Feb 2026): DEAD CODE — candidate for archival.
   The macro macros/social_share.html defines these classes,
   but NO template imports or calls the macro. The macro also
   contains duplicate inline <style> blocks. Both this CSS file
   and the macro are unused in production.
   ============================================ */

.social-share-buttons {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-bg-tertiary);
  border-radius: 8px;
}

/* Button styling */
.social-share-btn {
  transition: all 0.2s ease-in-out;
  min-width: 40px;
  border-color: var(--ds-color-bg-tertiary) !important;
  color: var(--ds-color-text-secondary) !important;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-accent, var(--ds-color-accent)) !important;
  color: var(--ds-color-text-primary) !important;
  background: var(--ds-color-bg-secondary) !important;
}

.social-share-btn:active {
  transform: translateY(0);
}

.social-share-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--ds-accent-rgb), 0.2);
}

/* Colored theme buttons */
.btn-facebook {
  background-color: var(--ds-color-info);
  color: white !important;
  border: 1px solid var(--ds-color-info);
}

.btn-facebook:hover {
  background-color: var(--ds-color-info);
  border-color: var(--ds-color-info);
  color: white !important;
}

.btn-twitter {
  background-color: var(--ds-color-text-primary);
  color: white !important;
  border: 1px solid var(--ds-color-text-primary);
}

.btn-twitter:hover {
  background-color: var(--ds-color-text-primary);
  border-color: var(--ds-color-text-secondary);
  color: white !important;
}

.btn-linkedin {
  background-color: var(--ds-color-info);
  color: white !important;
  border: 1px solid var(--ds-color-info);
}

.btn-linkedin:hover {
  background-color: var(--ds-color-info);
  border-color: var(--ds-color-info);
  color: white !important;
}

.btn-email {
  background-color: var(--ds-color-error);
  color: white !important;
  border: 1px solid var(--ds-color-error);
}

.btn-email:hover {
  background-color: var(--ds-color-error);
  border-color: var(--ds-color-error);
  color: white !important;
}

.btn-copy {
  background-color: var(--ds-color-text-tertiary);
  color: white !important;
  border: 1px solid var(--ds-color-text-tertiary);
}

.btn-copy:hover {
  background-color: var(--ds-color-text-secondary);
  border-color: var(--ds-color-text-secondary);
  color: white !important;
}

/* Inline share buttons */
.social-share-inline {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-share-inline .btn-link {
  color: var(--ds-color-text-tertiary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease-in-out;
}

.social-share-inline .btn-link:hover {
  color: var(--ds-color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .social-share-buttons {
    padding: 0.75rem;
  }

  .social-share-buttons .d-flex {
    justify-content: center;
  }

  .social-share-btn {
    flex: 0 0 auto;
    min-width: 36px;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }

  .social-share-btn .d-none.d-sm-inline {
    display: none !important;
  }

  /* Stack buttons vertically on very small screens */
  @media (max-width: 380px) {
    .social-share-buttons .d-flex {
      flex-direction: column;
      align-items: stretch;
    }

    .social-share-btn {
      width: 100%;
    }

    .social-share-btn .d-none.d-sm-inline {
      display: inline !important;
    }
  }
}

/* Toast notification styling */
#copyLinkToast {
  min-width: 250px;
}

#copyLinkToast .toast-body {
  display: flex;
  align-items: center;
  padding: 0.75rem;
}

/* Animation for share button click */
@keyframes shareClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.social-share-btn:active {
  animation: shareClick 0.2s ease-in-out;
}

/* Icon sizing */
.social-share-btn i {
  font-size: inherit;
  vertical-align: middle;
}

.social-share-btn.btn-sm i {
  font-size: 0.875rem;
}

.social-share-btn.btn-lg i {
  font-size: 1.25rem;
}

/* Accessibility improvements */
.social-share-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Print styles - hide share buttons when printing */
@media print {
  .social-share-buttons,
  .social-share-inline {
    display: none !important;
  }
}

/* Dark mode specific overrides - Disabled in favor of site-theme.css light theme */

/* Success state for copy button */
.social-share-btn.copied {
  background-color: var(--ds-color-success) !important;
  border-color: var(--ds-color-success) !important;
  color: white !important;
}

.social-share-btn.copied i::before {
  content: '\f00c'; /* Font Awesome check icon */
}
