/**
 * Share Module CSS
 * Standalone sharing functionality styles
 */

/* ===== SHARE SECTION STYLES ===== */
.share-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.share-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.share-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.share-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Twitter Button */
.share-btn.share-twitter {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.share-btn.share-twitter:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc4 100%);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

/* LinkedIn Button */
.share-btn.share-linkedin {
  background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.share-btn.share-linkedin:hover {
  background: linear-gradient(135deg, #005885 0%, #004a73 100%);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

/* Facebook Button */
.share-btn.share-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.share-btn.share-facebook:hover {
  background: linear-gradient(135deg, #166fe5 0%, #1462d1 100%);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Copy Link Button */
.share-btn.share-copy {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #475569;
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.1);
}

.share-btn.share-copy:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: #94a3b8;
  color: #334155;
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.15);
}

/* Success state for copy button */
.share-btn.share-copy.share-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border-color: #10B981;
}

.share-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.share-btn:hover i {
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .share-section {
    padding: var(--spacing-2xl) 0;
  }
  
  .share-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .share-btn {
    width: 200px;
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .share-btn {
    width: 180px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
  }
  
  .share-btn i {
    font-size: 1rem;
  }
}

/* Animation for share section */
@keyframes share-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-section.share-animate {
  animation: share-fadeInUp 0.6s ease-out;
}

/* Loading state */
.share-btn.share-loading {
  pointer-events: none;
  opacity: 0.7;
}

.share-btn.share-loading i {
  animation: share-spin 1s linear infinite;
}

@keyframes share-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
