/* THE CHAIR — Share System Styles */

/* ─── SHARE BUTTONS ─────────────────────────────────────────────────────── */
.share-buttons {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  margin-bottom: 12px;
  text-align: center;
}

.share-btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.share-icon {
  font-size: 1.1rem;
}

.share-text {
  font-weight: 500;
}

/* Button variants */
.share-btn-copy:hover {
  border-color: var(--cyan, #00d4ff);
  color: var(--cyan, #00d4ff);
}

.share-btn-twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn-reddit:hover {
  border-color: #ff4500;
  color: #ff4500;
}

.share-btn-native:hover {
  border-color: var(--green, #00ff88);
  color: var(--green, #00ff88);
}

/* ─── TOAST NOTIFICATION ────────────────────────────────────────────────── */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-panel, #0a1628);
  border: 1px solid var(--cyan, #00d4ff);
  color: var(--text-primary, #fff);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── GAME OVER SHARE SECTION ───────────────────────────────────────────── */
.go-share-section {
  margin-top: 24px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
}

.go-share-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan, #00d4ff);
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.go-share-title::before,
.go-share-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

/* ─── SHARE PREVIEW ─────────────────────────────────────────────────────── */
.share-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

.share-preview::-webkit-scrollbar {
  width: 6px;
}

.share-preview::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .share-btn-row {
    gap: 8px;
  }
  
  .share-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .share-text {
    display: none;
  }
  
  .share-icon {
    font-size: 1.3rem;
  }
  
  .share-toast {
    width: 90%;
    text-align: center;
  }
}

/* ─── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes share-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

.share-btn-native {
  animation: share-pulse 2s ease-in-out infinite;
}

.share-btn-native:hover {
  animation: none;
}
