/* URBot Share Modal — share-modal.css */

#urbot-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.urbot-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.urbot-share-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #1a1f2e 0%, #0f1420 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 18px;
  padding: 32px;
  width: min(460px, 92vw);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.urbot-share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.07);
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.urbot-share-close:hover,
.urbot-share-close:focus-visible {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  outline: none;
}

.urbot-share-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #f1f5f9;
}
.urbot-share-title span {
  color: #818cf8;
}

.urbot-share-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

/* Share count */
.urbot-share-count {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #a5b4fc;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.urbot-share-count-icon {
  font-size: 15px;
}

/* URL row */
.urbot-share-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.urbot-share-url-input {
  flex: 1;
  background: #0d1117;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #94a3b8;
  font-family: monospace;
  font-size: 12px;
  padding: 8px 12px;
  min-width: 0;
}
.urbot-share-copy-url-btn {
  background: #334155;
  border: none;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.urbot-share-copy-url-btn:hover {
  background: #475569;
}

/* Referral code row */
.urbot-share-ref-row {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.urbot-share-ref-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.urbot-share-ref-code {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.08em;
  flex: 1;
}
.urbot-share-copy-code-btn {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.urbot-share-copy-code-btn:hover {
  background: rgba(251, 191, 36, 0.25);
}

/* Platform buttons */
.urbot-share-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.urbot-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, opacity 0.15s ease, filter 0.15s;
  color: #fff;
}
.urbot-share-btn:hover,
.urbot-share-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
  outline: none;
}
.urbot-share-btn:active {
  transform: translateY(0);
}

.urbot-share-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Platform brand colors */
.urbot-share-twitter {
  background: #000;
  border: 1px solid #333;
}
.urbot-share-facebook {
  background: #1877f2;
}
.urbot-share-copylink {
  background: #475569;
}
.urbot-share-team {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
}

/* Responsive */
@media (max-width: 420px) {
  .urbot-share-card {
    padding: 22px 16px;
  }
  .urbot-share-platforms {
    grid-template-columns: 1fr;
  }
  .urbot-share-btn {
    justify-content: flex-start;
    padding: 11px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #urbot-share-overlay,
  .urbot-share-btn {
    transition: none;
  }
  .urbot-share-btn:hover {
    transform: none;
  }
}
