/* Social Share Buttons Styling */
/* GR8LOCI.ONLINE - Social Media Sharing Component */

.social-share-container {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.social-share-label {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0;
  margin-right: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.social-share-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e8f0f7;
  color: #2c3e50;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans', sans-serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.share-btn span.icon-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.08);
  background: #d6e5f3;
}

.share-btn:active {
  transform: scale(0.98);
}

/* LinkedIn specific - smaller font for two characters */
.share-btn.linkedin .icon-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* All buttons use the same light background */
.share-btn.facebook,
.share-btn.twitter,
.share-btn.linkedin,
.share-btn.pinterest,
.share-btn.email,
.share-btn.copy {
  background: #e8f0f7;
  color: #2c3e50;
}

.share-btn.facebook:hover,
.share-btn.twitter:hover,
.share-btn.linkedin:hover,
.share-btn.pinterest:hover,
.share-btn.email:hover,
.share-btn.copy:hover {
  background: #d6e5f3;
}

/* Copy button when copied */
.share-btn.copy.copied {
  background: #28a745;
  color: white;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Focus States for Accessibility */
.share-btn:focus {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
}

.share-btn:focus:not(:focus-visible) {
  outline: none;
}

.share-btn:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .social-share-container {
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .social-share-label {
    font-size: 0.85rem;
    margin-right: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .social-share-buttons {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .share-btn span {
    display: none; /* Hide text labels on mobile */
  }

  .share-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .share-btn i {
    margin: 0;
    font-size: 1.2rem;
  }

  .social-share-buttons {
    gap: 0.5rem;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .share-btn {
    padding: 0.1875rem 0.6875rem;
    font-size: 0.85rem;
  }

  .social-share-buttons {
    gap: 0.6rem;
  }
}

/* Position-specific styling */
.social-share-container[data-position="top"] {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-share-container[data-position="bottom"] {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-share-container[data-position="bottom"] .social-share-label {
  font-size: 1rem;
  font-weight: 600;
  color: #163759;
}

/* Loading/Disabled State */
.share-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.share-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Print Styles */
@media print {
  .social-share-container {
    display: none !important;
  }
}

/* Dark Mode Support (if implemented later) */
@media (prefers-color-scheme: dark) {
  .social-share-container {
    background: #2d3748;
    border-color: #4a5568;
  }

  .social-share-label {
    color: #e2e8f0;
  }

  .share-btn {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
  }
}

/* Share Counter Badge */
.share-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #163759;
  color: white;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* For blog post icons (circular buttons) */
.post-share-icon {
  position: relative;
}

.post-share-icon .share-count {
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

/* Tooltip for share buttons (optional enhancement) */
.share-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
