<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="16dp"
    android:layout_marginVertical="6dp"
    app:cardBackgroundColor="@color/bg_surface"
    app:cardCornerRadius="12dp"
    app:cardElevation="0dp"
    app:strokeWidth="1dp"
    app:strokeColor="@color/border">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:padding="12dp"
        android:gravity="center_vertical">

        <!-- Position Badge -->
        <TextView
            android:id="@+id/text_position"
            android:layout_width="28dp"
            android:layout_height="28dp"
            android:background="@drawable/bg_circle_light_gray" 
            android:text="1"
            android:textColor="@color/text_1"
            android:textSize="12sp"
            android:textStyle="bold"
            android:fontFamily="@font/font_ibm_plex_mono"
            android:gravity="center"
            android:layout_marginEnd="12dp" />

        <!-- Player Photo -->
        <com.google.android.material.imageview.ShapeableImageView
            android:id="@+id/img_player_photo"
            android:layout_width="42dp"
            android:layout_height="42dp"
            android:scaleType="centerCrop"
            android:src="@drawable/ic_menu_gallery"
            android:background="@color/bg_elevated"
            app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.CornerSize50Percent"
            app:strokeColor="@color/border"
            app:strokeWidth="1dp"
            android:layout_marginEnd="12dp" />

        <!-- Player & Club Details -->
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:id="@+id/text_player_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Nome do Jogador"
                android:textColor="@color/text_1"
                android:textSize="14sp"
                android:textStyle="bold"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:maxLines="1"
                android:ellipsize="end" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical"
                android:layout_marginTop="4dp">

                <com.google.android.material.imageview.ShapeableImageView
                    android:id="@+id/img_club_logo"
                    android:layout_width="16dp"
                    android:layout_height="16dp"
                    android:src="@drawable/ic_menu_gallery"
                    app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.CornerSize50Percent"
                    android:layout_marginEnd="6dp" />

                <TextView
                    android:id="@+id/text_club_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Nome do Clube"
                    android:textColor="@color/text_2"
                    android:textSize="11sp"
                    android:fontFamily="@font/font_ibm_plex_sans"
                    android:maxLines="1"
                    android:ellipsize="end" />
            </LinearLayout>
        </LinearLayout>

        <!-- Goals Counter -->
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:gravity="end"
            android:paddingStart="12dp">

            <TextView
                android:id="@+id/text_goals"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="15"
                android:textColor="@color/brand"
                android:textSize="26sp"
                android:fontFamily="@font/font_bebas_neue"
                android:lineHeight="26sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Golos"
                android:textColor="@color/text_3"
                android:textSize="9sp"
                android:fontFamily="@font/font_ibm_plex_mono"
                android:textAllCaps="true" />
        </LinearLayout>

    </LinearLayout>

</com.google.android.material.card.MaterialCardView>
