/* Morphie Chat Rooms Inline Styles */
.morphie-chat-rooms-inline {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  transition: all 0.3s ease-out;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

.morphie-chat-rooms-inline:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.chat-rooms-modern-inline {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.chat-header-inline {
  background: linear-gradient(135deg, #fcb900 0%, #f59e0b 100%);
  padding: 1.5rem 2rem;
  text-align: center;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  overflow: hidden;
}

.chat-title-highlight-inline {
  background: linear-gradient(135deg, #fcb900 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  display: inline-block;
  border-radius: 0.375rem !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.chat-rooms-body-inline {
  background: #f8fafc;
}

.chat-room-row-inline {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.15s ease-out;
  position: relative;
}

.chat-room-row-inline:last-child {
  border-bottom: none;
}

.chat-room-row-inline:hover {
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(4px);
}

.chat-room-row-inline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #1ec7ff;
  opacity: 0;
  transition: all 0.15s ease-out;
}

.chat-room-row-inline:hover::before {
  opacity: 1;
}

.chat-room-cell-inline {
  padding: 1.5rem 2rem;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
  vertical-align: top;
}

.chat-room-info-inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.room-name-section-inline,
.room-owner-section-inline,
.room-topic-section-inline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-name-section-inline {
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #22d3ee;
}

.room-label-inline,
.owner-label-inline,
.topic-label-inline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  min-width: 60px;
  flex-shrink: 0;
}

.room-label-inline {
  color: #1ec7ff;
}

.owner-label-inline {
  color: #a855f7;
}

.topic-label-inline {
  color: #374151;
  align-self: flex-start;
  margin-top: 2px;
}

.room-link-inline {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #1ec7ff !important;
  text-decoration: none;
  position: relative;
  transition: all 0.15s ease-out;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.room-link-inline::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  transition: all 0.15s ease-out;
}

.room-link-inline:hover::before,
.room-link-inline:focus::before {
  width: 100%;
}

.room-link-inline:hover,
.room-link-inline:focus {
  color: #19a4d9 !important;
  transform: translateY(-1px);
}

.owner-badge-inline {
  background: #111827 !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-out;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.owner-badge-inline:hover {
  background: #a855f7 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.owner-icon-inline {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: all 0.15s ease-out;
}

.owner-name-inline {
  font-weight: 600;
}

.topic-text-inline {
  color: #374151;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  flex: 1;
}

.topic-link-inline {
  color: #22d3ee !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease-out;
  position: relative;
}

.topic-link-inline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #22d3ee;
  transition: all 0.15s ease-out;
}

.topic-link-inline:hover::after,
.topic-link-inline:focus::after {
  width: 100%;
}

.topic-link-inline:hover,
.topic-link-inline:focus {
  color: #a855f7 !important;
}

/* Dark Mode Support - User Preference Only */
@media (prefers-color-scheme: dark) {
  .morphie-chat-rooms-inline {
    background: #141c2f !important;
    color: #f3f4f6 !important;
  }
  
  .chat-header-inline {
    background: linear-gradient(135deg, #fcb900 0%, #f59e0b 100%) !important;
    color: #000000 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .chat-title-highlight-inline {
    background: linear-gradient(135deg, #fcb900 0%, #f59e0b 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    display: inline-block !important;
  }
  
  .chat-rooms-body-inline {
    background: #0a101a !important;
  }
  
  .chat-room-row-inline {
    border-bottom-color: #374151 !important;
  }
  
  .chat-room-row-inline:hover {
    background: rgba(34, 211, 238, 0.2) !important;
  }
  
  .room-label-inline {
    color: #22d3ee !important;
  }
  
  .owner-label-inline {
    color: #a855f7 !important;
  }
  
  .topic-label-inline {
    color: #9ca3af !important;
  }
  
  .topic-text-inline {
    color: #d1d5db !important;
  }
  
  .owner-badge-inline {
    background: #1e293b !important;
    border: 1px solid #4b5563 !important;
    color: #f3f4f6 !important;
  }
  
  .room-link-inline {
    color: #22d3ee !important;
  }
  
  .topic-link-inline {
    color: #22d3ee !important;
  }
  
  .chat-rooms-modern-inline {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
  
  .chat-room-cell-inline {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-room-cell-inline {
    padding: 1rem;
  }
  
  .chat-room-info-inline {
    gap: 0.75rem;
  }
  
  .room-name-section-inline,
  .room-owner-section-inline,
  .room-topic-section-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .room-label-inline,
  .owner-label-inline,
  .topic-label-inline {
    min-width: auto;
    margin-bottom: 0.25rem;
  }
  
  .owner-badge-inline {
    align-self: flex-start;
  }
}