/**
 * Social Share Modal Styles
 * Matches the app's card and button styles
 */

/* Share Button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.04s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 32px;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.08);
  background: #f8fafc;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Modal Overlay */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.share-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

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

.share-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-modal-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

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

/* Share Options Grid */
.share-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.04s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.share-option.facebook-share {
  position: relative;
}

.share-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.1);
  background: #f8fafc;
}

.share-option svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.share-option span {
  text-align: center;
  font-weight: 500;
}

.share-copy-link.copied {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.share-copy-link.copied svg {
  fill: #fff;
}

/* Tag Reminder Section */
.share-tag-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e40af;
}

.share-tag-reminder .fb-tag-link {
  color: #1877f2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.share-tag-reminder .fb-tag-link:hover {
  color: #0f5fc7;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .share-modal-overlay {
    padding: 10px;
  }
  
  .share-modal-content {
    max-width: 100%;
  }
  
  .share-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .share-option {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .share-option svg {
    width: 28px;
    height: 28px;
  }
  
  .share-tag-reminder {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* Ensure modal is above everything */
.share-modal-overlay {
  z-index: 10000;
}
