<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  android:id="@+id/featured_search_result_view"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical"
  android:paddingEnd="@dimen/search_padding_x"
  android:paddingStart="@dimen/search_padding_x">

  <android.support.v7.widget.CardView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/grid_2"
    android:adjustViewBounds="true"
    android:focusable="true"
    android:foreground="@drawable/click_indicator_light"
    card_view:cardBackgroundColor="@color/transparent"
    card_view:cardCornerRadius="0dp"
    card_view:elevation="@dimen/card_elevation">

    <RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <ImageView
        android:id="@+id/project_image_view"
        android:layout_width="match_parent"
        android:layout_height="@dimen/search_result_featured_photo_height"
        android:background="@drawable/gray_gradient"
        android:scaleType="centerCrop"
        tools:ignore="ContentDescription" />

      <LinearLayout
        android:layout_alignBottom="@id/project_image_view"
        android:orientation="vertical"
        android:background="@color/white_alpha_95"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
          android:id="@+id/project_name_text_view"
          style="@style/Headline"
          android:fontFamily="normal"
          android:layout_marginStart="@dimen/grid_2"
          android:layout_marginEnd="@dimen/grid_2"
          android:layout_marginTop="@dimen/grid_2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:maxLines="2"
          android:ellipsize="end"
          tools:text="Gravity: The Weighted Blanket for Sleep, Stress and Anxiety" />

        <LinearLayout
          android:id="@+id/featured_search_result_stats"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="@dimen/grid_2"
          android:orientation="horizontal">

          <TextView
            android:id="@+id/search_result_percent_funded_text_view"
            style="@style/BodyPrimaryMedium"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/ksr_text_green_700"
            android:layout_marginEnd="@dimen/grid_1_half"
            tools:text="8,000%"/>

          <TextView
            android:id="@+id/search_result_funded_text_view"
            style="@style/BodySecondary"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/grid_2"
            tools:text="funded"/>

          <TextView
            android:id="@+id/search_result_deadline_countdown_text_view"
            style="@style/BodyPrimaryMedium"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/grid_1_half"
            tools:text="25"/>

          <TextView
            android:id="@+id/search_result_deadline_unit_text_view"
            style="@style/BodySecondary"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="days to go"/>

        </LinearLayout>

      </LinearLayout>

    </RelativeLayout>

  </android.support.v7.widget.CardView>

  <View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_marginTop="@dimen/grid_3"
    android:background="@color/ksr_navy_300" />

</LinearLayout>
