/* Comment box and phone rules for the feed.
   Moved from trending.css 967-1114. Rules unchanged. */

/* Inline User Comment Input Bar — Separated by 1px top borderline, transparent background */
.x-comments-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--x-border);
  background-color: transparent;
}

.x-composer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 1px solid var(--x-border);
  user-select: none;
}

.x-comment-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 4px;
  border: none;
  border-bottom: 1px solid var(--x-border);
  border-radius: 0;
  background-color: transparent;
  color: var(--x-text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.x-comment-input::placeholder {
  color: var(--x-text-secondary);
}

.x-comment-input:focus {
  border-bottom-color: var(--x-accent-blue);
}

.x-comment-cancel-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  border: 1px solid var(--x-border);
  background-color: transparent;
  color: var(--x-text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.x-comment-cancel-btn:hover {
  color: var(--x-text-primary);
  border-color: var(--x-border-strong);
}

.x-comment-submit-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 9999px;
  border: none;
  background-color: var(--x-accent-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.x-comment-submit-btn:hover {
  opacity: 0.92;
}

.x-comment-submit-btn:active {
  transform: scale(0.96);
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 768px) {
  .x-feed-column {
    border-left: none;
    border-right: none;
  }

  .x-post {
    padding: 10px 12px;
  }

  .x-comments-toolbar {
    padding: 6px 12px;
  }

  .x-comment-item {
    padding: 9px 12px;
  }

  .x-comments-composer {
    padding: 7px 12px;
  }

  .x-inline-comments-drawer.open {
    max-height: 235px;
  }

  .x-inline-comments-drawer.open.expanded {
    max-height: 365px;
  }

  .x-comments-scroll-list {
    max-height: 130px;
  }

  .x-inline-comments-drawer.open.expanded .x-comments-scroll-list {
    max-height: 255px;
  }

  .x-carousel-card {
    flex: 0 0 88%;
    max-width: 88%;
  }

  .x-video-horizontal {
    max-width: 290px;
    max-height: 164px;
  }

  .x-video-vertical {
    width: min(100%, 155px);
    max-height: 220px;
  }
}
