/* Social Share Buttons */

.social-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: none;
  border-bottom: none;
  margin: 0;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', system-ui, sans-serif;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
  flex-shrink: 0;
}

/* LinkedIn */
.share-linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
}

/* Twitter/X */
.share-twitter:hover {
  background: #000000;
  border-color: #000000;
  color: white;
}

/* Facebook */
.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

/* Instagram */
.share-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  color: white;
}

/* Email */
.share-email:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

/* Copy Link */
.share-copy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Compact Share Buttons (for smaller spaces) */
.social-share-buttons.compact {
  padding: 1rem 0;
  margin: 1rem 0;
}

.social-share-buttons.compact .share-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.social-share-buttons.compact .share-btn span {
  display: none;
}

.social-share-buttons.compact .share-label {
  font-size: 0.8rem;
}

/* Inline Share Buttons (horizontal, no borders) */
.social-share-buttons.inline {
  border: none;
  padding: 0;
  margin: 0;
}

.social-share-buttons.inline .share-btn {
  border: none;
  padding: 0.5rem;
  background: transparent;
}

.social-share-buttons.inline .share-btn:hover {
  background: var(--surface);
  transform: none;
  box-shadow: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .share-btn {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
  }

  .share-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .social-share-buttons {
    gap: 0.5rem;
  }

  .share-btn span {
    display: none;
  }

  .share-btn {
    padding: 0.6rem;
    width: 42px;
    height: 42px;
    justify-content: center;
  }

  .share-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .copy-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

/* Share Stats Badge (optional - shows share count) */
.share-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.share-stats-icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.share-stats-count {
  font-weight: 600;
  color: var(--text-secondary);
}

/* "Share Your Win" Modal */
.share-win-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-win-modal.show {
  opacity: 1;
}

.share-win-modal.show .share-win-card {
  transform: scale(1);
}

.share-win-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.share-win-card {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.share-win-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-win-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.share-win-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: celebrate 0.6s ease;
}

@keyframes celebrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

.share-win-card h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: white !important;
  line-height: 1.2;
}

.share-win-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.share-win-contract-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.share-win-agency {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.share-win-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 0.75rem;
}

.share-win-message {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.share-win-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', system-ui, sans-serif;
}

.share-win-btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.share-win-btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.share-win-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.share-win-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Share options screen */
.share-win-options {
  padding: 1rem 0;
}

.share-win-options-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.share-win-back {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.share-win-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.share-win-options h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.share-win-platform-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-win-platform {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-win-platform:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.share-win-platform svg {
  flex-shrink: 0;
}

/* Success screen */
.share-win-success {
  padding: 2rem 0;
  text-align: center;
}

.share-win-success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.share-win-success h3 {
  margin-bottom: 1rem;
}

.share-win-success p {
  margin-bottom: 2rem;
}

/* Notification */
.share-win-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10001;
}

.share-win-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .share-win-card {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .share-win-card h3 {
    font-size: 1.4rem;
  }

  .share-win-icon {
    font-size: 3rem;
  }

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

  .share-win-amount {
    font-size: 1.25rem;
  }

  .share-win-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}
