/**
 * Share Modal Component Styles
 * Reusable share modal component CSS
 * 
 * @package Arsla
 * @subpackage ShareModal
 */

/* Share Modal Styles */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.share-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  background: #2c2c2c;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #404040;
}

.share-modal-title {
  color: #fff;
  font-family: Raleway;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
}

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

.share-modal-close:hover {
  background: #011d5c;
  transform: scale(1.1);
}

.share-modal-content {
  padding: 24px;
}

.share-social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.share-social-btn {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.share-social-btn:hover {
  transform: translateY(-2px);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

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

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon.twitter {
  background: #000;
  color: #fff;
}

.social-icon.linkedin {
  background: #0077b5;
  color: #fff;
}

.social-icon.facebook {
  background: #1877f2;
  color: #fff;
}

.social-icon.pinterest {
  background: #e60023;
  color: #fff;
}

.social-icon.reddit {
  background: #ff4500;
  color: #fff;
}

.social-icon.email {
  background: #666;
  color: #fff;
}

.share-url-section {
  border-top: 1px solid #404040;
  padding-top: 20px;
}

.share-url-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-url-input {
  flex: 1;
  background: #404040;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  color: #ccc;
  font-family: Raleway;
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.share-url-input:focus {
  background: #4a4a4a;
}

.share-copy-btn {
  background: #022781;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  color: #fff;
  font-family: Raleway;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-copy-btn:hover {
  background: #011d5c;
}

.share-copy-btn.copied {
  background: #018a45;
}

.copy-text {
  display: inline;
}

.copied-text {
  display: none;
}

.share-copy-btn.copied .copy-text {
  display: none;
}

.share-copy-btn.copied .copied-text {
  display: inline;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .share-modal {
    max-width: 90%;
    margin: 20px;
  }

  .share-modal-header {
    padding: 16px 20px;
  }

  .share-modal-title {
    font-size: 16px;
    line-height: 22px;
  }

  .share-modal-close {
    width: 28px;
    height: 28px;
  }

  .share-modal-content {
    padding: 20px;
  }

  .share-social-icons {
    gap: 8px;
    margin-bottom: 20px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }

  .share-url-input-wrapper {
    flex-direction: row;
    gap: 12px;
  }

  .share-url-input {
    font-size: 13px;
    padding: 10px 14px;
    flex: 1;
  }

  .share-copy-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    min-width: 80px;
  }
}
