/*
 * TheCoolSymbols - Share Modal CSS
 * Styling for the share functionality
 * Created: June 11, 2025
 */

/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-modal.show {
  opacity: 1;
}

.share-modal-content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-modal.show .share-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-modal-header h3 i {
  color: var(--primary-color);
}

.share-close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.share-close-btn:hover {
  color: var(--text-color);
  background-color: var(--hover-color);
  transform: scale(1.1);
}

/* Share Options */
.share-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s;
  padding: 0.5rem;
  width: 80px;
}

.share-option:hover {
  transform: translateY(-5px);
}

.share-option i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  padding: 0.8rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.share-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Platform specific colors */
.share-option[data-platform="twitter"] i {
  color: #1DA1F2;
  background-color: rgba(29, 161, 242, 0.1);
}

.share-option[data-platform="facebook"] i {
  color: #4267B2;
  background-color: rgba(66, 103, 178, 0.1);
}

.share-option[data-platform="whatsapp"] i {
  color: #25D366;
  background-color: rgba(37, 211, 102, 0.1);
}

.share-option[data-platform="telegram"] i {
  color: #0088cc;
  background-color: rgba(0, 136, 204, 0.1);
}

.share-option[data-platform="reddit"] i {
  color: #FF5700;
  background-color: rgba(255, 87, 0, 0.1);
}

.share-option[data-platform="pinterest"] i {
  color: #E60023;
  background-color: rgba(230, 0, 35, 0.1);
}

.share-option[data-platform="email"] i {
  color: #333333;
  background-color: rgba(51, 51, 51, 0.1);
}

/* Share link section */
.share-link-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.share-link-section p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.share-link-container {
  display: flex;
  gap: 0.5rem;
}

.share-link-container input {
  flex: 1;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  background-color: var(--card-color);
  color: var(--text-color);
  font-size: 0.9rem;
  font-family: var(--font-mono, monospace);
}

.share-link-container button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.share-link-container button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.share-link-container button.copied {
  background-color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .share-options {
    gap: 0.5rem;
  }
  
  .share-option {
    width: 70px;
    padding: 0.4rem;
  }
  
  .share-option i {
    font-size: 1.8rem;
    padding: 0.6rem;
    width: 50px;
    height: 50px;
  }
  
  .share-option span {
    font-size: 0.75rem;
  }
  
  .share-modal-content {
    padding: 1rem;
  }
}
