<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/bg_base"
    tools:context=".ui.gallery.GalleryFragment">

    <!-- Section Header -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="16dp">

        <TextView
            android:id="@+id/text_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fontFamily="@font/font_bebas_neue"
            android:text="JORNADAS"
            android:textSize="28sp"
            android:textColor="@color/text_1"
            android:letterSpacing="0.04" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fontFamily="@font/font_ibm_plex_sans"
            android:text="Calendário de jogos e resultados em tempo real."
            android:textColor="@color/text_2"
            android:textSize="12sp"
            android:layout_marginTop="4dp" />
    </LinearLayout>

    <!-- Category Toggle -->
    <com.google.android.material.button.MaterialButtonToggleGroup
        android:id="@+id/toggle_group_category"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="16dp"
        android:layout_marginBottom="14dp"
        app:singleSelection="true"
        app:selectionRequired="true"
        app:checkedButton="@+id/btn_seniores">

        <com.google.android.material.button.MaterialButton
            android:id="@+id/btn_seniores"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:fontFamily="@font/font_ibm_plex_sans"
            android:text="Seniores"
            android:textColor="@color/toggle_text_color"
            android:textSize="12sp"
            android:textStyle="bold"
            app:backgroundTint="@color/toggle_bg_color"
            app:strokeColor="@color/border"
            app:strokeWidth="1dp"
            app:cornerRadius="8dp"
            android:textAllCaps="false" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/btn_juniores"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:fontFamily="@font/font_ibm_plex_sans"
            android:text="Juniores"
            android:textColor="@color/toggle_text_color"
            android:textSize="12sp"
            android:textStyle="bold"
            app:backgroundTint="@color/toggle_bg_color"
            app:strokeColor="@color/border"
            app:strokeWidth="1dp"
            app:cornerRadius="8dp"
            android:textAllCaps="false" />
    </com.google.android.material.button.MaterialButtonToggleGroup>

    <!-- Matchday Navigation (Mockup Style) -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:gravity="center"
        android:background="@color/bg_surface"
        android:paddingVertical="10dp"
        android:paddingHorizontal="16dp">

        <ImageButton
            android:id="@+id/btn_prev_jornada"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:background="@drawable/bg_circle_light_gray"
            android:src="@android:drawable/ic_media_previous"
            android:contentDescription="Anterior"
            app:tint="@color/text_2" />

        <TextView
            android:id="@+id/text_jornada_name"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Carregando..."
            android:fontFamily="@font/font_bebas_neue"
            android:textSize="18sp"
            android:letterSpacing="0.04"
            android:gravity="center"
            android:textColor="@color/text_1" />

        <ImageButton
            android:id="@+id/btn_next_jornada"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:background="@drawable/bg_circle_light_gray"
            android:src="@android:drawable/ic_media_next"
            android:contentDescription="Próxima"
            app:tint="@color/text_2" />
    </LinearLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/border"
        android:layout_marginBottom="8dp" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recycler_matchdays"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:paddingBottom="16dp"
        tools:listitem="@layout/item_match"/>

</LinearLayout>