/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Urbanist:wght@300;400;500;600&display=swap');

/* Social Popup Styles */
.social-popup-overlay {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: auto;
}

.social-popup-container {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-popup-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid rgba(201, 170, 92, 0.5);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 64px;
  height: 64px;
}

.social-popup-card.expanded {
  width: 220px;
  height: auto;
}

.social-popup-glow {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(201, 170, 92, 0.1);
  filter: blur(40px);
  z-index: -1;
  transform: scale(1.1);
  opacity: 0.6;
}

/* Close Button */
.social-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px;
  color: rgba(163, 163, 163, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  display: none;
}

.social-popup-card.expanded .social-popup-close {
  display: block;
}

.social-popup-close:hover {
  color: rgb(64, 64, 64);
}

.social-popup-close svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.social-popup-close:hover svg {
  transform: rotate(90deg);
}

/* Collapsed State */
.social-popup-collapsed {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.social-popup-collapsed.hidden {
  display: none;
}

.social-popup-icon-wrapper {
  position: relative;
}

.social-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #C9AA5C, #B39548);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.social-popup-collapsed:hover .social-popup-icon {
  transform: scale(1.1);
}

.social-popup-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.social-popup-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Expanded State */
.social-popup-content {
  padding: 20px;
  display: none;
}

.social-popup-card.expanded .social-popup-content {
  display: block;
}

.social-popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: rgb(23, 23, 23);
  margin: 0 0 4px 0;
  text-align: center;
  line-height: 1.2;
}

.social-popup-subtitle {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgb(82, 82, 82);
  margin: 0 0 16px 0;
  text-align: center;
  line-height: 1.5;
}

.social-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-popup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C9AA5C;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

a.social-popup-button,
a.social-popup-button:hover,
a.social-popup-button:focus,
a.social-popup-button:active,
a.social-popup-button:visited {
  color: #fff !important;
}

a.social-popup-button svg {
  stroke: #fff !important;
  color: #fff !important;
}

.social-popup-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-popup-button svg {
  width: 20px;
  height: 20px;
}

/* Animation classes */
.social-popup-overlay.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-popup-overlay.fade-out {
  animation: fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.95);
  }
}
