.shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 10%,
    #f6f7f8 20%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation: shimmer 2s infinite;
  transform: translateZ(0);
  will-change: background-position;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.shimmer-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.shimmer-image {
  height: 250px;
  width: 100%;
}

.shimmer-title {
  height: 24px;
  margin: 15px;
  border-radius: 4px;
}

.shimmer-text {
  height: 16px;
  margin: 15px;
  border-radius: 4px;
}

.shimmer-badge {
  height: 20px;
  width: 80px;
  margin: 15px;
  border-radius: 4px;
}

.shimmer-wrapper {
  position: relative;
  overflow: visible;
}

.social-share-container .shimmer {
  position: relative;
  overflow: hidden;
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation: shimmer 1s linear infinite forwards;
}

.social-share-container .social-icon.shimmer {
  opacity: 0.7;
}

/* Instagram share modal styles */
.instagram-share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.instagram-share-modal .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}

.instagram-share-modal h4 {
  margin-bottom: 1rem;
  color: #333;
}

.instagram-share-modal ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.instagram-share-modal button {
  background: #7209d4;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.instagram-share-modal button:hover {
  background: #5f07af;
}

/* Dark mode styles */
body.dark-mode .instagram-share-modal .modal-content {
  background: #2d2d2d;
  color: #fff;
}

body.dark-mode .instagram-share-modal h4 {
  color: #fff;
}

.social-share-container {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  position: relative;
  margin-top: 20px;
}

.share-title {
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.social-share-icons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  padding:0px 0;
  position: relative;
  overflow: visible;
  margin-top: 10px;
}

.social-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.social-icon .tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 30%);
  font-size: 14px;
  background-color: #ffffff;
  color: #333;
  padding: 5px 12px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
  z-index: 1000;
}

.social-icon .tooltip::before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  background-color: inherit;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover .tooltip {
  top: -55px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.x-twitter:hover .tooltip,
.social-icon.x-twitter:hover .tooltip::before {
  background-color: #000000;
  color: #ffffff;
}

.social-icon.whatsapp:hover .tooltip,
.social-icon.whatsapp:hover .tooltip::before {
  background-color: #25D366;
  color: #ffffff;
}

.social-icon.facebook:hover .tooltip,
.social-icon.facebook:hover .tooltip::before {
  background-color: #1877f2;
  color: #ffffff;
}

.social-icon.copy:hover .tooltip,
.social-icon.copy:hover .tooltip::before {
  background-color: #6c757d;
  color: #ffffff;
}

/* Dark mode adjustments */
body.dark-mode .social-icon {
  background-color: #2d2d2d;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-icon .tooltip {
  background-color: #2d2d2d;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .social-icon .tooltip {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Animation for copy success */
@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.social-icon.copy.success svg {
  animation: checkmark 0.3s ease-in-out;
}

/* Default background colors for social icons */
.social-icon.x-twitter {
  background-color: #000000;
}

.social-icon.facebook {
  background-color: #1877f2;
}

.social-icon.whatsapp {
  background-color: #25D366;
}

.social-icon.copy {
  background-color: #6c757d;
}

/* Adjust icon sizes */
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff; /* Make all icons white */
}

/* Specific adjustments for X logo */
.social-icon.x-twitter svg {
  width: 18px; /* Slightly smaller for X logo */
  height: 18px;
}

/* Specific adjustments for Facebook logo */
.social-icon.facebook svg {
  width: 22px; /* Slightly larger for Facebook */
  height: 22px;
}

/* Specific adjustments for WhatsApp logo */
.social-icon.whatsapp svg {
  width: 24px;
  height: 24px;
}

/* Specific adjustments for copy icon */
.social-icon.copy svg {
  width: 20px;
  height: 20px;
}

/* Add these styles after the existing .shimmer class */
.shimmer-wrapper .blog-post-image-wrapper {
  position: relative;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.shimmer-wrapper .shimmer-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.shimmer-wrapper .shimmer-title {
  height: 24px;
  margin: 15px 0;
  width: 90%;
}

.shimmer-wrapper .shimmer-badge {
  height: 20px;
  width: 80px;
  margin: 15px 0;
}

.shimmer-wrapper .shimmer-text {
  height: 16px;
  margin: 10px 0;
  width: 100%;
}

.shimmer-wrapper .shimmer-text:last-child {
  width: 70%;
}

/* Enhance existing shimmer animation */
.shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 10%,
    #f6f7f8 20%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: ease;
}

/* Adjust dark mode shimmer for smoother transition */
body.dark-mode .shimmer {
  background: #2d2d2d;
  background-image: linear-gradient(
    to right,
    #2d2d2d 0%,
    #353535 10%,
    #2d2d2d 20%,
    #2d2d2d 100%
  );
}

/* Add these new styles for social icons shimmer */
.social-share-container.shimmer-loading {
  opacity: 0.7;
}

.social-share-container.shimmer-loading .social-icon {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 10%,
    #f6f7f8 20%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation: shimmer 2s infinite;
}

.social-share-container.shimmer-loading .social-icon svg {
  opacity: 0.3;
}

/* Dark mode adjustment for social icons shimmer */
body.dark-mode .social-share-container.shimmer-loading .social-icon {
  background: #2d2d2d;
  background-image: linear-gradient(
    to right,
    #2d2d2d 0%,
    #353535 10%,
    #2d2d2d 20%,
    #2d2d2d 100%
  );
}
  