/* Integration Styles for WellnessWheel */
/* Payment, Collaboration, and Premium Features */

/* Modal Styles */
.upgrade-modal,
.pricing-modal,
.collaboration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-content.large {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Upgrade Prompt Styles */
.upgrade-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f0f9ff;
  border-radius: 8px;
  color: #0369a1;
  font-weight: 500;
}

.benefit i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Spin Button States */
.spin-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.spin-button.upgrade-required {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  animation: pulse 2s infinite;
}

.spin-button.upgrade-required:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Limits Display */
.limits-display {
  text-align: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin: 1rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.limits-display i {
  margin-right: 0.5rem;
  color: #10b981;
}

/* Spin Result */
.spin-result {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.spin-result h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.result-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

/* Premium Features Bar */
.premium-features {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.premium-feature {
  flex: 1;
  text-align: center;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.premium-feature:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.premium-feature i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.premium-feature span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Collaboration Panel */
.collaboration-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 1rem 0;
}

.collaboration-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collaboration-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.collaboration-content {
  padding: 1.5rem;
}

.room-info {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.room-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.room-code code {
  background: #1f2937;
  color: #10b981;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.btn-copy {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-copy:hover {
  background: #059669;
}

/* User List */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.user-item.current-user {
  background: #f0f9ff;
  border-color: #3b82f6;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  font-weight: 500;
  color: #1f2937;
}

.user-permissions {
  display: flex;
  gap: 0.25rem;
}

.user-permissions i {
  color: #10b981;
  font-size: 0.9rem;
}

/* Chat Styles */
.chat-messages {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-message.system {
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

.user-message {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.message-user {
  font-weight: 600;
  color: #1f2937;
}

.message-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.message-text {
  color: #374151;
  line-height: 1.4;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-send {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send:hover {
  background: #059669;
}

.typing-indicator {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  min-height: 1.2rem;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: #10b981;
}

.notification.info {
  background: #3b82f6;
}

.notification.warning {
  background: #f59e0b;
}

.notification.error {
  background: #ef4444;
}

/* Celebration Animation */
.collaboration-celebration {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fbbf24;
  animation: celebrate 2s ease-in-out;
  z-index: 1002;
  pointer-events: none;
}

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

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

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes celebrate {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .premium-features {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .collaboration-panel {
    margin: 0.5rem 0;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    width: auto;
  }
}