<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/commentsCardView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="8dp"
    android:layout_marginTop="8dp"
    android:layout_marginBottom="4dp">

    <LinearLayout
        android:id="@+id/linearLayout5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingStart="0dp"
        android:paddingEnd="8dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <com.google.android.material.card.MaterialCardView
            android:id="@+id/commentUserAvatarContainer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="12dp"
            android:backgroundTint="@color/transparent"
            app:cardCornerRadius="64dp"
            app:strokeColor="@color/transparent">

            <com.google.android.material.imageview.ShapeableImageView
                android:id="@+id/commentUserAvatar"
                android:layout_width="42dp"
                android:layout_height="42dp"
                android:layout_gravity="center"
                app:srcCompat="@drawable/ic_round_add_circle_24"
                tools:ignore="ContentDescription,ImageContrastCheck"
                tools:tint="@color/bg_black_50" />
        </com.google.android.material.card.MaterialCardView>


        <LinearLayout
            android:id="@+id/commentUserTagLayout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:orientation="horizontal"
            tools:ignore="UseCompoundDrawables">

            <ImageView
                android:layout_width="16dp"
                android:layout_height="16dp"
                android:layout_gravity="center_vertical"
                android:alpha="0.9"
                android:src="@drawable/ic_label_24"
                app:tint="?attr/colorPrimary"
                tools:ignore="ContentDescription" />

            <TextView
                android:id="@+id/commentUserTag"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:alpha="0.9"
                android:fontFamily="@font/poppins_bold"
                android:maxLines="1"
                android:paddingTop="2dp"
                android:text="1095"
                android:textColor="?attr/colorPrimary"
                android:textSize="12sp"
                tools:ignore="HardcodedText,SmallSp" />

        </LinearLayout>

    </LinearLayout>

    <LinearLayout
        android:id="@+id/commentUserDetailsLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintStart_toStartOf="@+id/commentText"
        app:layout_constraintTop_toTopOf="parent">

        <TextView
            android:id="@+id/commentUserName"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginEnd="4dp"
            android:ellipsize="end"
            android:fontFamily="@font/poppins_bold"
            android:paddingTop="1dp"
            android:paddingBottom="0dp"
            android:singleLine="true"
            android:text="Username"
            android:textColor="?attr/colorPrimary"
            android:textSize="15sp"
            tools:ignore="HardcodedText,RtlSymmetry" />

        <TextView
            android:id="@+id/commentUserLevel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="6dp"
            android:alpha="0.8"
            android:fontFamily="@font/poppins_bold"
            android:text="[1]"
            android:textSize="12sp"
            tools:ignore="HardcodedText" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="4dp"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:text="•"
            android:textSize="16sp"
            tools:ignore="HardcodedText,RtlSymmetry" />

        <TextView
            android:id="@+id/commentUserTime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="6dp"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:text="Time"
            android:textSize="12sp"
            tools:ignore="HardcodedText,RtlSymmetry" />

        <ImageView
            android:id="@+id/adminBadge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="top"
            android:layout_marginEnd="6dp"
            android:layout_weight="0"
            android:scaleX="0.9"
            android:scaleY="0.9"
            android:src="@drawable/ic_crown"
            android:visibility="visible"
            tools:ignore="ContentDescription,RtlSymmetry" />

        <ImageView
            android:id="@+id/modBadge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="top"
            android:layout_marginEnd="6dp"
            android:layout_weight="0"
            android:scaleX="0.8"
            android:scaleY="0.8"
            android:src="@drawable/ic_shield"
            android:visibility="visible"
            tools:ignore="ContentDescription,RtlSymmetry" />
    </LinearLayout>

    <TextView
        android:id="@+id/commentText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:fontFamily="@font/poppins_semi_bold"
        android:maxLines="8"
        android:scrollHorizontally="false"
        android:text="@string/slogan"
        android:textSize="12sp"
        app:layout_constrainedWidth="true"
        app:layout_constraintEnd_toStartOf="@+id/linearLayout7"
        app:layout_constraintHeight_max="200dp"
        app:layout_constraintHorizontal_bias="0.0"
        app:layout_constraintStart_toEndOf="@+id/linearLayout5"
        app:layout_constraintTop_toBottomOf="@+id/commentUserDetailsLayout" />

    <LinearLayout
        android:id="@+id/linearLayout6"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="52dp"
        android:orientation="horizontal"
        app:layout_constraintStart_toEndOf="@+id/linearLayout5"
        app:layout_constraintTop_toBottomOf="@+id/commentText">

        <View
            android:id="@+id/commentRepliesDivider"
            android:layout_width="24dp"
            android:layout_height="3dp"
            android:layout_gravity="center"
            android:layout_marginStart="4dp"
            android:background="@color/nav_tab" />

        <TextView
            android:id="@+id/commentTotalReplies"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginStart="4dp"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:gravity="center"
            android:text="View replies"
            android:textSize="12sp"
            tools:ignore="HardcodedText" />

        <Space
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1" />

        <ImageView
            android:id="@+id/commentInfo"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:layout_marginEnd="16dp"
            android:alpha="0.6"
            app:srcCompat="@drawable/ic_round_dots_vertical_24"
            tools:ignore="ContentDescription" />

        <TextView
            android:id="@+id/commentReply"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:gravity="center"
            android:text="@string/reply"
            android:textSize="12sp"
            app:layout_constraintStart_toEndOf="@+id/commentDownVote"
            app:layout_constraintTop_toBottomOf="@+id/commentText"
            tools:ignore="HardcodedText" />

        <TextView
            android:id="@+id/commentEdit"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginStart="12dp"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:gravity="center"
            android:text="@string/edit"
            android:textSize="12sp"
            app:layout_constraintBottom_toBottomOf="@+id/commentReply"
            app:layout_constraintStart_toEndOf="@+id/commentReply"
            tools:ignore="HardcodedText" />

        <ImageView
            android:id="@+id/commentUpVote"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:layout_marginStart="12dp"
            android:alpha="0.6"
            android:padding="2dp"
            app:srcCompat="@drawable/ic_round_upvote_inactive_24"
            tools:ignore="ContentDescription" />

        <TextView
            android:id="@+id/commentTotalVotes"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginStart="4dp"
            android:alpha="0.6"
            android:fontFamily="@font/poppins_semi_bold"
            android:gravity="center"
            android:text="100"
            android:textSize="12sp"
            app:layout_constraintStart_toEndOf="@+id/commentUpVote"
            app:layout_constraintTop_toBottomOf="@+id/commentText"
            tools:ignore="HardcodedText" />

        <ImageView
            android:id="@+id/commentDownVote"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:layout_marginStart="4dp"
            android:alpha="0.6"
            android:padding="2dp"
            android:rotation="180"
            app:layout_constraintStart_toEndOf="@+id/commentTotalVotes"
            app:layout_constraintTop_toBottomOf="@+id/commentText"
            app:srcCompat="@drawable/ic_round_upvote_inactive_24"
            tools:ignore="ContentDescription" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/linearLayout7"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginEnd="4dp"
        android:orientation="vertical"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent">


    </LinearLayout>


    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/commentRepliesList"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:nestedScrollingEnabled="false"
        android:paddingStart="16dp"
        android:visibility="visible"
        app:layout_constraintTop_toBottomOf="@+id/linearLayout6"
        tools:ignore="RtlSymmetry"
        tools:visibility="gone" />

</androidx.constraintlayout.widget.ConstraintLayout>