/* ConnectMe - Warme, einladende Chat-Plattform Styles */

/* Smooth Animations */
* {
  transition: all 0.2s ease;
}

/* Chat-Bubble Styles */
.chat-message {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.chat-message.own {
  background: linear-gradient(135deg, #f3c655, #efb034);
  color: white;
  margin-left: 20%;
  border: none;
}

.chat-message.system {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  text-align: center;
  font-style: italic;
  color: #64748b;
}

/* User Avatar */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3c655, #efb034);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* Room Cards */
.room-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.room-card.joined {
  border-color: #efb034;
  background: linear-gradient(135deg, #fefcf3, #fef7e0);
}

/* Mood Selector */
.mood-selector {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.mood-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.2s;
}

.mood-button:hover {
  transform: scale(1.1);
  border-color: #efb034;
}

.mood-button.selected {
  background: linear-gradient(135deg, #f3c655, #efb034);
  color: white;
  border-color: #e1981d;
}

/* Interest Tags */
.interest-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 14px;
  color: #475569;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.interest-tag:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.interest-tag.selected {
  background: linear-gradient(135deg, #f3c655, #efb034);
  border-color: #e1981d;
  color: white;
}

/* Custom Scrollbar */
.chat-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Loading Animation */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  animation: pulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
  0%, 80%, 100% { 
    transform: scale(0);
    opacity: 0.5;
  } 
  40% { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Notification Badges */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #efb034;
  box-shadow: 0 0 0 3px rgba(239, 176, 52, 0.1);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #f3c655, #efb034);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 176, 52, 0.3);
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chat-message.own {
    margin-left: 10%;
  }
  
  .mood-selector {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .mood-button {
    width: 35px;
    height: 35px;
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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