/**
 * Styles for the Article Social Share block
 */

:root {
  --social-bg-light: #f8f9fa;
  --social-bg-dark: #2a2a2a;
  --social-text-light: #333;
  --social-text-dark: #f1f1f1;
  --social-shadow-light: rgba(0, 0, 0, 0.1);
  --social-shadow-dark: rgba(0, 0, 0, 0.3);
  --social-shadow-hover-light: rgba(0, 0, 0, 0.15);
  --social-shadow-hover-dark: rgba(0, 0, 0, 0.5);

  /* Social Media Brand Colors */
  --facebook-color: #1877f2;
  --facebook-hover: #0d6efd;
  --twitter-color: #1da1f2;
  --twitter-hover: #0c90e2;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #20c059;
  --viber-color: #7360f2;
  --viber-hover: #614bd0;
  --email-color: #ea4335;
  --email-hover: #d73125;
  --print-color: #6c757d;
  --print-hover: #5a6268;
  --linkedin-color: #0077b5;
  --linkedin-hover: #005582;
}

.article-social-share {
  margin-bottom: 1.5rem;
  padding: 1.2rem 2.4rem 1.2rem 0;
/*  padding: 1.2rem;
  background-color: var(--social-bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--social-shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;*/
}

.article-social-share .share-title {
  margin-top: 0;
  margin-bottom: 1.1rem!important;
  font-size: 1.25rem;
  /*color: var(--social-text-light);*/
  font-weight: 600;
  transition: color 0.3s ease;
}

.article-social-share .share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .article-social-share .share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .article-social-share .social-button {
    margin-bottom: 0;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }
}

.article-social-share .social-button {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 5px var(--social-shadow-light);
  font-size: 0.875rem;
  justify-content: center;
  width: 100%;
  /* margin-bottom: 10px; */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Dual icons container (Twitter + X) */
.article-social-share .dual-icons {
  display: flex;
  align-items: center;
  position: relative;
}

.article-social-share .dual-icons-container {
  display: flex;
  align-items: center;
}

.article-social-share .x-icon {
  margin-left: 5px;
}

.article-social-share .social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--social-shadow-hover-light);
}

.article-social-share .social-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.article-social-share .twitter-icon {
  margin-right: 0;
}

.article-social-share .social-text {
  font-size: 13px !important;
  line-height: 1;
  display: inline-block;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.article-social-share .social-icon svg,
.article-social-share .social-icon svg path,
.article-social-share .social-button svg,
.article-social-share .social-button svg path {
  fill: #fff !important;
  color: #fff !important;
  stroke: none !important;
}

/* Button specific styles */
.article-social-share .facebook-share {
  background-color: var(--facebook-color);
}

.article-social-share .facebook-share:hover {
  background-color: var(--facebook-hover);
}

.article-social-share .twitter-share {
  background-color: var(--twitter-color);
}

.article-social-share .twitter-share:hover {
  background-color: var(--twitter-hover);
}

.article-social-share .whatsapp-share {
  background-color: var(--whatsapp-color);
}

.article-social-share .whatsapp-share:hover {
  background-color: var(--whatsapp-hover);
}

.article-social-share .viber-share {
  background-color: var(--viber-color);
}

.article-social-share .viber-share:hover {
  background-color: var(--viber-hover);
}

.article-social-share .email-share {
  background-color: var(--email-color);
}

.article-social-share .email-share:hover {
  background-color: var(--email-hover);
}

.article-social-share .print-share {
  background-color: var(--print-color);
}

.article-social-share .print-share:hover {
  background-color: var(--print-hover);
}

.article-social-share .linkedin-share {
  background-color: var(--linkedin-color);
}

.article-social-share .linkedin-share:hover {
  background-color: var(--linkedin-hover);
}

/* Dark theme compatibility */
@media (prefers-color-scheme: light) {
  .article-social-share {
    background-color: var(--social-bg-dark);
    box-shadow: 0 2px 8px var(--social-shadow-dark);
  }

  .article-social-share .share-title {
    color: var(--social-text-dark);
  }

  .article-social-share .social-button:hover {
    box-shadow: 0 4px 8px var(--social-shadow-hover-dark);
  }
}

/* Support for common dark mode class implementations */
[data-theme="dark"] .article-social-share,
.dark-theme .article-social-share,
.dark-mode .article-social-share,
html.dark .article-social-share,
body.dark .article-social-share,
.theme-dark .article-social-share {
  background-color: var(--social-bg-dark);
  box-shadow: 0 2px 8px var(--social-shadow-dark);
}

[data-theme="dark"] .article-social-share .share-title,
.dark-theme .article-social-share .share-title,
.dark-mode .article-social-share .share-title,
html.dark .article-social-share .share-title,
body.dark .article-social-share .share-title,
.theme-dark .article-social-share .share-title {
  color: var(--social-text-dark);
}

[data-theme="dark"] .article-social-share .social-button:hover,
.dark-theme .article-social-share .social-button:hover,
.dark-mode .article-social-share .social-button:hover,
html.dark .article-social-share .social-button:hover,
body.dark .article-social-share .social-button:hover,
.theme-dark .article-social-share .social-button:hover {
  box-shadow: 0 4px 8px var(--social-shadow-hover-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-social-share .share-buttons {
    flex-direction: column;
  }

  .article-social-share .social-button {
    justify-content: center;
  }
}

/* Animation effects */
.article-social-share .social-button {
  position: relative;
  overflow: hidden;
}

.article-social-share .social-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.article-social-share .social-button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}
