/* Share Your Story CTA Styles */
.share-story-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  max-width: 350px;
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.share-story-cta.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.share-story-cta.hide {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  pointer-events: none;
}

.share-story-content {
  background: linear-gradient(135deg, var(--bg-card), rgba(26, 35, 50, 0.95));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.share-story-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1rem 1rem 0 0;
}

.share-story-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.share-story-text {
  flex: 1;
}

.share-story-text strong {
  color: var(--text);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.share-story-text p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.share-story-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.share-story-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.share-story-btn:hover {
  background: #6b91e6;
  transform: translateY(-1px);
}

.share-story-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-story-close:hover {
  color: var(--text);
  background: var(--bg-input);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .share-story-cta {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .share-story-content {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .share-story-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .share-story-btn {
    flex: 1;
    margin-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .share-story-content {
    padding: 0.75rem;
  }

  .share-story-text strong {
    font-size: 0.9rem;
  }

  .share-story-text p {
    font-size: 0.8rem;
  }

  .share-story-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Animation for when CTA appears */
@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.share-story-cta.show {
  animation: slideInBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
