/* Blog Share Section Styles */

.blog-share-section {
  margin: 30px 0 20px 0;
  padding: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  background-color: #D3D3D3;
}

body.light-theme .blog-share-section {
  border-color: #e0e0e0;
  background-color: #D3D3D3;
}

.share-title {
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 25px;
  text-align: center;
}

body.light-theme .share-title {
  color: #1a1a1a;
}

.post-author {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author i {
  font-size: 12px;
}

body.light-theme .post-author {
  color: #666;
}

.post-timestamp {
  color: #666;
}

body.light-theme .post-timestamp {
  color: #666;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.share-btn {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin: 0 2px;
  padding: 0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: none;
  background-color: #444;
  color: #aaa;
  text-align: center;
}

.share-btn i {
  font-size: 14px;
  line-height: 28px;
}

.share-btn:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: none;
  box-shadow: none;
}

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

/* Twitter */
body.light-theme .share-btn {
  background-color: #D3D3D3;
  color: var(--text-secondary);
}

body.light-theme .share-btn:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Copy success state */
.share-copy.copied,
body.light-theme .share-copy.copied {
  background-color: #27ae60 !important;
  color: #fff !important;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  .share-title {
    font-size: 18px;
  }
}

/* Notification for copy success */
.share-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
  pointer-events: none;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
