/* ==========================================================================
   FLOATING SOCIAL MEDIA BUTTONS - EXTRACTED CSS
   ========================================================================== */

/* ========= FLOATING SOCIAL MEDIA BUTTONS ========= */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 90px; /* Positioned above the scroll-to-top button */
  z-index: 999; /* Lower than header (1000) to avoid overlap */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-float__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-float__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.social-float__btn:hover::before {
  left: 100%;
}

.social-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Facebook */
.social-float__facebook {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-float__facebook:hover {
  background: linear-gradient(135deg, #166fe5, #1877f2);
}

/* Instagram */
.social-float__instagram {
  background: linear-gradient(135deg, #e4405f, #fd1d1d, #fccc63);
}

.social-float__instagram:hover {
  background: linear-gradient(135deg, #d6336c, #e4405f, #fd1d1d);
}

/* YouTube */
.social-float__youtube {
  background: linear-gradient(135deg, #ff0000, #ff4444);
}

.social-float__youtube:hover {
  background: linear-gradient(135deg, #cc0000, #ff0000);
}

/* WhatsApp */
.social-float__whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-float__whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a, #25d366);
}

/* LinkedIn */
.social-float__linkedin {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-float__linkedin:hover {
  background: linear-gradient(135deg, #005885, #0077b5);
}

/* Responsive adjustments for social float and gift certificate button */
@media (max-width: 768px) {
  .social-float {
    right: 15px;
    bottom: 120px;
    gap: 12px;
  }
  
  .social-float__btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .gift-certificate-btn {
    right: calc(6% + 15px);
    bottom: 108px;
    padding: 10px 16px;
    font-size: var(--fs-xs);
  }

  .gift-certificate-btn .material-icons {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .social-float {
      right: 10px;
      bottom: 160px;
      gap: 10px;
    }
  
    .social-float__btn {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  
    .gift-certificate-btn {
      left: 10px;
      right: auto;
      bottom: 118px;
      width: auto !important;
      max-width: 230px !important;
      min-width: 0 !important;
      height: auto;
      padding: 9px 12px !important;
      font-size: 11px;
      flex-direction: row;
      gap: 8px;
      white-space: normal;
      line-height: 1.15;
      text-align: left;
      overflow: hidden;
      box-sizing: border-box;
    }

    .gift-certificate-btn .material-icons {
      font-size: 16px;
      flex-shrink: 0;
    }

    .gift-certificate-btn__text {
      display: block;
      word-break: break-word;
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
    }
}
 
/* Adjustments for mobile landscape to avoid header overlap */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .social-float {
    right: 8px;
    bottom: 80px;
    gap: 8px;
    z-index: 999; /* Lower than header z-index */
  }
  
  .social-float__btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Additional adjustments for very small screens in landscape */
@media screen and (max-height: 400px) and (orientation: landscape) {
  .social-float {
    right: 5px;
    bottom: 60px;
    gap: 6px;
  }
  
  .social-float__btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
