/* File: css/voltwiki-share.css */
/* Path: electri-car.ro/css/voltwiki-share.css */
/* VoltWiki Social Share Buttons Styles */
/* Updated: Added Reddit support and X (formerly Twitter) branding */

/* ========== SHARE BUTTONS CONTAINER ========== */
.wiki-share-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #1f2937;
  border-radius: 8px;
  border: 1px solid #374151;
}

.wiki-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
}

.wiki-share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ========== INDIVIDUAL SHARE BUTTONS ========== */
.wiki-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.3s ease;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.wiki-share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wiki-share-btn:hover::before {
  opacity: 1;
}

.wiki-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* ========== PLATFORM-SPECIFIC COLORS ========== */
.wiki-share-btn.facebook {
  background: #1877f2;
}

.wiki-share-btn.facebook:hover {
  background: #145dbf;
}

/* X (formerly Twitter) - Using official X black/white branding */
.wiki-share-btn.x,
.wiki-share-btn.twitter {
  background: #000000;
}

.wiki-share-btn.x:hover,
.wiki-share-btn.twitter:hover {
  background: #14171a;
}

/* Reddit - Using official Reddit orange */
.wiki-share-btn.reddit {
  background: #ff4500;
}

.wiki-share-btn.reddit:hover {
  background: #cc3700;
}

.wiki-share-btn.linkedin {
  background: #0a66c2;
}

.wiki-share-btn.linkedin:hover {
  background: #004182;
}

.wiki-share-btn.whatsapp {
  background: #25d366;
}

.wiki-share-btn.whatsapp:hover {
  background: #1da851;
}

.wiki-share-btn.email {
  background: #6b7280;
}

.wiki-share-btn.email:hover {
  background: #4b5563;
}

.wiki-share-btn.copy {
  background: #374151;
}

.wiki-share-btn.copy:hover {
  background: #1f2937;
}

.wiki-share-btn.copy.copied {
  background: #10b981;
}

/* ========== SHARE BUTTON WITH TEXT (OPTIONAL VARIANT) ========== */
.wiki-share-btn-extended {
  width: auto;
  padding: 0 1rem;
  gap: 0.5rem;
}

.wiki-share-btn-extended .share-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ========== TOOLTIP ========== */
.wiki-share-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #e5e7eb;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  border: 1px solid #374151;
}

.wiki-share-btn[title]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 1001;
  pointer-events: none;
}

/* ========== COPY FEEDBACK ANIMATION ========== */
@keyframes copySuccess {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.wiki-share-btn.copy.copied {
  animation: copySuccess 0.3s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 640px) {
  .wiki-share-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .wiki-share-label {
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
  
  .wiki-share-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  
  .wiki-share-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .wiki-share-container {
    display: none !important;
  }
}

/* ========== STICKY SHARE BAR (OPTIONAL) ========== */
.wiki-share-sticky {
  position: sticky;
  top: 80px;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== FLOATING SHARE BUTTONS (OPTIONAL) ========== */
.wiki-share-floating {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.wiki-share-floating .wiki-share-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .wiki-share-floating {
    display: none;
  }
}

/* ========== ACCESSIBILITY ========== */
.wiki-share-btn:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

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

/* ========== DARK MODE ENHANCEMENTS ========== */
@media (prefers-color-scheme: dark) {
  .wiki-share-container {
    background: #111827;
    border-color: #1f2937;
  }
}

/* ========== PLATFORM ICON ADJUSTMENTS ========== */
/* Ensure Reddit icon is properly visible */
.wiki-share-btn.reddit i {
  font-size: 1.15rem;
}

/* X icon specific sizing (if using fa-x-twitter) */
.wiki-share-btn.x i,
.wiki-share-btn.twitter i {
  font-size: 0.95rem;
}

/* ========== HOVER EFFECTS FOR SPECIFIC PLATFORMS ========== */
/* Enhanced hover for X with subtle glow */
.wiki-share-btn.x:hover,
.wiki-share-btn.twitter:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Enhanced hover for Reddit with orange glow */
.wiki-share-btn.reddit:hover {
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

/* ========== ALTERNATIVE LIGHT THEME COLORS ========== */
/* If you prefer lighter backgrounds on light mode pages */
@media (prefers-color-scheme: light) {
  .wiki-share-container {
    background: #f9fafb;
    border-color: #e5e7eb;
  }
  
  .wiki-share-label {
    color: #6b7280;
  }
}
