/**
 * Enhanced social share bar for trend articles.
 * Premium-styled share buttons with brand colours and refined interactions.
 */

.trend-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border, #334155);
}

.trend-share-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  opacity: 0.9;
}

/* Share buttons container */
.trend-share-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.625rem;
  align-items: center;
}

.trend-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* Base transitions */
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.320, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.320, 1),
    filter 0.3s ease;

  /* Subtle depth */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hover state - enhanced elevation and glow */
.trend-share-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(255, 79, 0, 0.15);
  filter: brightness(1.15);
}

/* Active/focus state */
.trend-share-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trend-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.trend-share-btn:hover .trend-share-icon {
  transform: scale(1.1);
}

.trend-share-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  display: block;
  flex-shrink: 0;
}

.trend-share-icon i {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .trend-share {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .trend-share-buttons {
    gap: 0.75rem;
  }
}

/* Brand background colours with gradients for depth */
.trend-share-x {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f26 100%);
}

.trend-share-x:hover {
  background: linear-gradient(135deg, #1a1f26 0%, #252d38 100%);
}

.trend-share-linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #0d5aa7 100%);
}

.trend-share-linkedin:hover {
  background: linear-gradient(135deg, #0d5aa7 0%, #094ba0 100%);
}

.trend-share-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0a5ff8 100%);
}

.trend-share-facebook:hover {
  background: linear-gradient(135deg, #0a5ff8 0%, #0147d5 100%);
}

.trend-share-bluesky {
  background: linear-gradient(135deg, #1185fe 0%, #0f7ae5 100%);
}

.trend-share-bluesky:hover {
  background: linear-gradient(135deg, #0f7ae5 0%, #0b5fc1 100%);
}

.trend-share-reddit {
  background: linear-gradient(135deg, #ff4500 0%, #e63f00 100%);
}

.trend-share-reddit:hover {
  background: linear-gradient(135deg, #e63f00 0%, #cc3800 100%);
}

.trend-share-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20c158 100%);
}

.trend-share-whatsapp:hover {
  background: linear-gradient(135deg, #20c158 0%, #1ab94b 100%);
}

.trend-share-email {
  background: linear-gradient(135deg, #475569 0%, #3a4556 100%);
}

.trend-share-email:hover {
  background: linear-gradient(135deg, #3a4556 0%, #2f3a47 100%);
}
