/* ============================================
   CONVERSATIONS LIST SCREEN
   Simple list with glassmorphism cards,
   matching the Figma "Conversations" frame.
   ============================================ */

.conversations-screen {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--frame-radius);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.conversations-screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Header ---- */

.conversations-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 58px 20px 16px;
  flex-shrink: 0;
}

.conversations-back {
  position: absolute;
  left: 14px;
  top: 55px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.conversations-back:hover {
  background: rgba(0, 0, 0, 0.05);
}

.conversations-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: #1A1A1A;
}

.conversations-menu {
  position: absolute;
  right: 14px;
  top: 55px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.conversations-menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.conversations-menu-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* ---- Search bar ---- */

.conversations-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 16px 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.conversations-search-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #999;
}

.conversations-search-icon {
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- Scrollable list ---- */

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.conversations-list::-webkit-scrollbar {
  display: none;
}

/* ---- Conversation item ---- */

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 16px;
  cursor: default;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-left-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.conversation-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.conversation-item:hover::before {
  opacity: 0.7;
}

/* ---- Text ---- */

.conversation-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.45;
}

/* ---- Chevron ---- */

.conversation-chevron {
  flex-shrink: 0;
  opacity: 0.5;
}
