/* ===== Share Results Card ===== */
.share-results-wrapper {
  margin: 2rem 0;
  display: none;
}
.share-results-wrapper.visible {
  display: block;
}

/* ---------- Generate button ---------- */
.share-generate-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 auto 1.5rem;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.share-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, .45);
}
.share-generate-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Preview area ---------- */
.share-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.share-preview.visible {
  display: flex;
}
.share-preview canvas {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* ---------- Action buttons row ---------- */
.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .5rem;
}
.share-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: opacity .2s;
}
.share-action-btn:hover { opacity: .85; }

.share-action-btn.download    { background: #2e7d32; }
.share-action-btn.copy-img    { background: #5e35b1; }
.share-action-btn.twitter     { background: #1da1f2; }
.share-action-btn.facebook    { background: #1877f2; }
.share-action-btn.whatsapp    { background: #25d366; }
.share-action-btn.native-share { background: #ff6d00; }

.share-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Feedback toast */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #323232;
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-size: .95rem;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  z-index: 9999;
  pointer-events: none;
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .share-generate-btn {
    width: 100%;
    justify-content: center;
  }
  .share-actions {
    flex-direction: column;
  }
  .share-action-btn {
    width: 100%;
    justify-content: center;
  }
}
