/* Embed Modal Styles */
.embed-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

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

.embed-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.embed-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.embed-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #111827;
  font-weight: 700;
}

.embed-close {
  background: #f3f4f6;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.embed-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

.embed-modal-body {
  padding: 1.75rem;
}

#embedCodeArea {
  width: 100%;
  height: 180px;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 1rem;
  background: #f9fafb;
  color: #1f2937;
  transition: all 0.2s;
}

#embedCodeArea:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.embed-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.embed-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.embed-copy-btn:active {
  transform: translateY(0);
}

.embed-copy-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .embed-modal-content {
    max-height: 95vh;
  }

  .embed-modal-header {
    padding: 1.25rem;
  }

  .embed-modal-body {
    padding: 1.25rem;
  }

  #embedCodeArea {
    height: 150px;
    font-size: 0.75rem;
  }
}
