/* =========================================================
   BoomArena — Social Share Styles
   Share-to-earn overlay & platform buttons
   ========================================================= */

/* ── Share Overlay ── */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.share-overlay.visible {
  opacity: 1;
}

/* ── Share Modal ── */
.share-modal {
  position: relative;
  background: linear-gradient(145deg, rgba(13, 13, 43, 0.95), rgba(20, 20, 55, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  text-align: center;
  min-width: min(380px, calc(100vw - 2rem));
  max-width: 90vw;
  animation: shareModalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes shareModalPop {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Header ── */
.share-header {
  margin-bottom: 1.5rem;
}

.share-reward-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 224, 102, 0.4));
}

.share-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.share-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Platform Buttons ── */
.share-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.share-platform-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: rgba(20, 20, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.share-platform-btn:hover:not([disabled]) {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.06);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.share-platform-btn:active:not([disabled]) {
  transform: translateX(4px) scale(0.98);
}

.share-platform-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.share-platform-btn.shared-success {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.06);
  opacity: 1;
}

.share-platform-btn.sharing {
  border-color: rgba(255, 224, 102, 0.4);
  background: rgba(255, 224, 102, 0.06);
  animation: sharePulse 1.2s ease-in-out infinite;
}

@keyframes sharePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 224, 102, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 224, 102, 0.15); }
}

/* Platform Icon */
.share-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--platform-glow, rgba(255,255,255,0.1));
}

/* Platform Name */
.share-platform-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

/* Platform Status */
.share-platform-status {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shared-success .share-platform-status {
  color: #22c55e;
}

/* ── Daily Info ── */
.share-daily-info {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* ── Clipboard Hint ── */
.share-clipboard-hint {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 224, 102, 0.7);
  background: rgba(255, 224, 102, 0.06);
  border: 1px solid rgba(255, 224, 102, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* ── Close Button ── */
.share-close-btn {
  width: 100%;
}

/* ── Reward Burst Animation ── */
.share-reward-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  animation: rewardBurst 1.5s ease forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rewardBurst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ── Inline Share Buttons (used in overlays) ── */
.share-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffe066;
  background: rgba(255, 224, 102, 0.08);
  border: 1px solid rgba(255, 224, 102, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-inline-btn:hover {
  background: rgba(255, 224, 102, 0.15);
  border-color: rgba(255, 224, 102, 0.4);
  box-shadow: 0 0 15px rgba(255, 224, 102, 0.15);
  transform: translateY(-1px);
}

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

.share-inline-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.share-inline-btn .share-btn-icon {
  font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .share-modal {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }

  .share-title {
    font-size: 1rem;
  }

  .share-platform-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .share-platform-name {
    font-size: 0.82rem;
  }
}
