<!--
    Created by Angel Leon (@gubatron), Alden Torres (aldenml), and,
 *            Marcelina Knitter (@marcelinkaaa)
    Copyright (c) 2011-2026, FrostWire(R). All rights reserved.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include layout="@layout/toolbar_main" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/app_background_main">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="20dp">

            <!-- header icon -->
            <ImageView
                android:id="@+id/view_vpn_status_header_icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginBottom="12dp"
                android:layout_marginTop="3dp"
                android:contentDescription="@null"
                android:scaleType="fitXY"
                android:src="@drawable/vpn_icon_on_info" />

            <!-- header title -->
            <TextView
                style="@style/VPNTitle"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center_horizontal"
                android:text="@string/connection_header_title" />

            <TextView
                android:id="@+id/view_vpn_status_header"
                style="@style/VPNTitle"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center_horizontal"
                android:textColor="@color/app_approval_green" />

            <!-- VPN description text -->
            <TextView
                android:id="@+id/view_vpn_status_vpn_text"
                style="@style/VPNText"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginBottom="20dp"
                android:layout_marginTop="18dp"
                android:text="@string/unprotected_connections_visibility_bullet_html" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="120dp"
                android:layout_gravity="center"
                android:orientation="horizontal">

                <!-- issue-709.  PIA VPN deactivated
                <Button
                    android:id="@+id/view_vpn_status_pia"
                    style="?android:attr/borderlessButtonStyle"
                    android:layout_width="72dp"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginLeft="2dp"
                    android:layout_marginRight="4dp"
                    android:background="@drawable/vpn_suggestion_button_background_selector"
                    android:drawableTop="@drawable/pia"
                    android:padding="3dp"
                    android:text="@string/vpn_suggestion_pia"/>
                -->

                <Button
                    android:id="@+id/view_vpn_status_expressvpn"
                    style="?android:attr/borderlessButtonStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginStart="4dp"
                    android:layout_marginEnd="5dp"
                    android:background="@drawable/vpn_suggestion_button_background_selector"
                    android:drawableTop="@drawable/expressvpn"
                    android:paddingBottom="17dp"
                    android:paddingTop="15dp"
                    android:paddingEnd="10dp"
                    android:paddingStart="10dp"
                    android:text="@string/vpn_suggestion_expressvpn"
                    android:textSize="@dimen/text_small"/>

                <Button
                    android:id="@+id/view_vpn_status_nordvpn"
                    style="?android:attr/borderlessButtonStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginStart="5dp"
                    android:layout_marginEnd="2dp"
                    android:textAllCaps="false"
                    android:background="@drawable/vpn_suggestion_button_background_selector"
                    android:drawableTop="@drawable/nordvpn"
                    android:paddingBottom="8dp"
                    android:paddingTop="8dp"
                    android:paddingEnd="10dp"
                    android:paddingStart="10dp"
                    android:text="@string/vpn_suggestion_nordvpn"
                    android:textSize="@dimen/text_small"/>


            </LinearLayout>

            <!-- Protected connection button -->
            <TextView
                android:id="@+id/view_vpn_status_learn_more_textview"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:paddingBottom="6dp"
                android:paddingTop="15dp"
                android:textSize="@dimen/text_medium" />

            <!-- Bullet - VPN not required for WireShare but highly recommended -->
            <TextView
                android:id="@+id/view_vpn_status_bullet_textview"
                style="@style/VPNText"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="20dp"
                android:padding="0dp" />

        </LinearLayout>
    </ScrollView>
</LinearLayout>
