/* ===========================
   SHARE BUILD MODAL STYLES
   =========================== */

/* Share Button on Build Cards */
.share-build-btn {
  background: linear-gradient(135deg, #00ffff 0%, #00d4d4 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-build-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

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

.share-build-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Share Modal Overlay */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.share-modal-overlay.active {
  opacity: 1;
}

/* Share Modal Content */
.share-modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #00ffff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid #333;
}

.share-modal-header h2 {
  color: #00ffff;
  font-size: 24px;
  margin: 0;
}

.share-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

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

/* Modal Body */
.share-modal-body {
  padding: 25px;
}

.share-description {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* Share URL Container */
.share-url-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.share-url-input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 15px;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.share-url-input:focus {
  outline: none;
  border-color: #00ffff;
}

.copy-link-btn {
  background: linear-gradient(135deg, #ff6b00 0%, #ff8534 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.copy-link-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.copy-link-btn:active {
  transform: scale(0.95);
}

/* Social Sharing */
.share-social {
  margin-bottom: 20px;
}

.share-social h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .social-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.twitter-btn {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  color: #fff;
}

.facebook-btn {
  background: linear-gradient(135deg, #4267B2 0%, #365899 100%);
  color: #fff;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #20bd5a 100%);
  color: #fff;
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  color: #fff;
}

.reddit-btn {
  background: linear-gradient(135deg, #FF4500 0%, #e63e00 100%);
  color: #fff;
}

/* Share Stats */
.share-stats {
  padding-top: 20px;
  border-top: 1px solid #333;
}

.share-note {
  color: #666;
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .share-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .share-modal-header {
    padding: 20px;
  }
  
  .share-modal-header h2 {
    font-size: 20px;
  }
  
  .share-modal-body {
    padding: 20px;
  }
  
  .share-url-container {
    flex-direction: column;
  }
  
  .copy-link-btn {
    width: 100%;
  }
  
  .social-buttons {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar Styling for Modal */
.share-modal-content::-webkit-scrollbar {
  width: 8px;
}

.share-modal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.share-modal-content::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 4px;
}

.share-modal-content::-webkit-scrollbar-thumb:hover {
  background: #00d4d4;
}
