/* Share system styles for TY VOLE .wtf */

/* Toast notifications */
.share-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #9dff00;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: bottom 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
  max-width: 90%;
  text-align: center;
}

.share-toast.show {
  bottom: 32px;
}

/* Share modal */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.share-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.share-modal-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.share-modal-content h3 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 800;
  color: #000;
  text-align: center;
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-close:hover {
  color: #000;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.share-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
}

.share-messenger:hover {
  background: #0084ff;
  border-color: #0084ff;
  color: #fff;
}

.share-twitter:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.share-copy:hover {
  background: #9dff00;
  border-color: #9dff00;
  color: #000;
}

/* Microcopy under CTA */
.cta-microcopy {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
  opacity: 0.8;
  animation: fadeInMicro 0.5s ease-out;
}

@keyframes fadeInMicro {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* Button improvements */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary-cta:hover::after {
  transform: translateX(100%);
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .share-modal-content {
    padding: 24px;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
  }
  
  .share-btn {
    padding: 14px;
  }
}

/* A/B test indicator (dev only) */
.ab-indicator {
  position: fixed;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #9dff00;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  z-index: 9998;
  opacity: 0.5;
}

/* Focus states for accessibility */
.share-btn:focus-visible,
.share-modal-close:focus-visible {
  outline: 3px solid #9dff00;
  outline-offset: 2px;
}

button:focus-visible {
  outline: 3px solid #9dff00;
  outline-offset: 2px;
}
