/* ===== SHARE MODAL - PLAYFUL GEOMETRIC ===== */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

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

.share-modal-content {
  background: var(--card, #FFFFFF);
  border-radius: var(--radius-lg, 24px);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  border: 3px solid var(--foreground, #1E293B);
  box-shadow: 8px 8px 0px var(--foreground, #1E293B);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border, #E2E8F0);
  background: var(--muted, #F1F5F9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: var(--muted-foreground, #64748B);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-close:hover {
  background: var(--secondary, #F472B6);
  border-color: var(--foreground, #1E293B);
  color: var(--foreground, #1E293B);
  transform: rotate(90deg);
}

.share-modal-content h3 {
  font-family: var(--font-heading, "Outfit", system-ui);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-right: 44px;
  color: var(--foreground, #1E293B);
}

.share-modal-content p {
  color: var(--muted-foreground, #64748B);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-preview {
  width: 100%;
  border-radius: var(--radius-md, 16px);
  margin-bottom: 24px;
  border: 2px solid var(--border, #E2E8F0);
  box-shadow: 4px 4px 0px var(--muted, #F1F5F9);
}

.share-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-modal-actions .btn {
  text-align: center;
}

.share-modal-actions .btn-secondary {
  background: var(--muted, #F1F5F9);
  color: var(--foreground, #1E293B);
  border-color: var(--border, #E2E8F0);
  box-shadow: 4px 4px 0px var(--border, #E2E8F0);
}

.share-modal-actions .btn-secondary:hover {
  background: var(--tertiary, #FBBF24);
  border-color: var(--foreground, #1E293B);
  box-shadow: 6px 6px 0px var(--foreground, #1E293B);
}

/* ===== LOADING STATE ===== */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--foreground, #1E293B);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full, 9999px);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading, "Outfit", system-ui);
  z-index: 1001;
  animation: toastPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.3s ease 2.7s forwards;
  border: 2px solid var(--foreground, #1E293B);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

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

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

.toast.success {
  background: var(--quaternary, #34D399);
  color: var(--foreground, #1E293B);
  border-color: var(--foreground, #1E293B);
}

.toast.error {
  background: #FCA5A5;
  color: #7F1D1D;
  border-color: #B91C1C;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 480px) {
  .share-modal-content {
    padding: 28px 24px;
    margin: 12px;
    border-width: 2px;
    box-shadow: 6px 6px 0px var(--foreground, #1E293B);
  }
  
  .share-modal-content h3 {
    font-size: 20px;
  }
  
  .share-modal-actions {
    gap: 10px;
  }
  
  .toast {
    left: 20px;
    right: 20px;
    transform: none;
    text-align: center;
  }
  
  @keyframes toastPop {
    from {
      opacity: 0;
      transform: scale(0.9) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  @keyframes toastOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(20px);
    }
  }
}

/* ===== PLATFORM-SPECIFIC MODAL ACCENTS ===== */
.share-modal[data-platform="twitter"] .share-modal-content {
  border-color: #1DA1F2;
  box-shadow: 8px 8px 0px #1DA1F2;
}

.share-modal[data-platform="linkedin"] .share-modal-content {
  border-color: #0A66C2;
  box-shadow: 8px 8px 0px #0A66C2;
}

.share-modal[data-platform="instagram"] .share-modal-content {
  border-color: #E4405F;
  box-shadow: 8px 8px 0px #E4405F;
}