<resources>

    <!-- Opening Theme -->
    <style name="Base.V19.OpeningTheme" parent="Theme.AppCompat.DayNight.NoActionBar"/>
    <style name="Base.OpeningTheme" parent="Base.V19.OpeningTheme"/>
    <style name="OpeningTheme" parent="Base.OpeningTheme">
        <item name="colorPrimary">@android:color/transparent</item>
        <item name="colorPrimaryDark">@android:color/transparent</item>
        <item name="colorAccent">@android:color/transparent</item>

        <item name="android:windowBackground">@drawable/splash_background</item>
    </style>

    <!-- Base Theme -->
    <style name="Base.V19" parent="Theme.AppCompat.DayNight.NoActionBar">
        <item name="actionColor">@color/white</item>
        <item name="floatingActionButtonStyle">@style/FloatingActionButtonTheme</item>
        <item name="toolbarSearchColor">@color/white</item>
        <item name="colorControlActivated">?attr/colorPrimary</item>
    </style>
    <style name="Base" parent="Base.V19"/>

    <!-- Light Theme -->
    <style name="Base.V19.LightTheme" parent="Base">
        <item name="colorPrimary">@color/light_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/light_youtube_primary_color</item>
        <item name="colorAccent">@color/light_youtube_accent_color</item>
        <item name="android:windowBackground">@color/light_background_color</item>
        <item name="windowBackground">@color/light_background_color</item>
        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme.Light.Base</item>

        <item name="separator_color">@color/light_separator_color</item>
        <item name="contrast_background_color">@color/light_contrast_background_color</item>
        <item name="checked_selector">@drawable/selector_checked_light</item>
        <item name="focused_selector">@drawable/selector_focused_light</item>
        <item name="toolbar_shadow">@drawable/toolbar_shadow_light</item>
        <item name="selector">@drawable/selector_light</item>
        <item name="colorControlHighlight">@color/light_ripple_color</item>
        <item name="progress_horizontal_drawable">@drawable/progress_youtube_horizontal_light_rounded</item>
        <item name="card_item_background_color">@color/light_card_item_background_color</item>
        <item name="card_item_contrast_color">@color/light_card_item_contrast_color</item>
        <item name="border_color">@color/light_border_color</item>
        <item name="dashed_border">@drawable/dashed_border_light</item>
        <item name="tag_text_color">@color/black</item>
    </style>
    <style name="Base.LightTheme" parent="Base.V19.LightTheme" />
    <style name="LightTheme" parent="Base.LightTheme"/>

    <!-- Dark Theme -->
    <style name="Base.V19.DarkTheme" parent="Base">
        <item name="colorPrimary">@color/dark_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/dark_youtube_primary_color</item>
        <item name="colorAccent">@color/dark_youtube_accent_color</item>
        <item name="android:textColorPrimary">@color/white</item>
        <item name="android:textColorSecondary">@color/white_secondary</item>
        <item name="android:textColorTertiary">@color/white_secondary</item>
        <item name="android:windowBackground">@color/dark_background_color</item>
        <item name="windowBackground">@color/dark_background_color</item>
        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme.Dark.Base</item>

        <item name="separator_color">@color/dark_separator_color</item>
        <item name="contrast_background_color">@color/dark_contrast_background_color</item>
        <item name="checked_selector">@drawable/selector_checked_dark</item>
        <item name="focused_selector">@drawable/selector_focused_dark</item>
        <item name="toolbar_shadow">@drawable/toolbar_shadow_dark</item>
        <item name="selector">@drawable/selector_dark</item>
        <item name="colorControlHighlight">@color/dark_ripple_color</item>
        <item name="progress_horizontal_drawable">@drawable/progress_youtube_horizontal_dark_rounded</item>
        <item name="card_item_background_color">@color/dark_card_item_background_color</item>
        <item name="card_item_contrast_color">@color/dark_card_item_contrast_color</item>
        <item name="border_color">@color/dark_border_color</item>
        <item name="dashed_border">@drawable/dashed_border_dark</item>
        <item name="tag_text_color">@color/white</item>
    </style>
    <style name="Base.DarkTheme" parent="Base.V19.DarkTheme" />
    <style name="DarkTheme" parent="Base.DarkTheme"/>

    <!-- Black Theme -->
    <style name="Base.V19.BlackTheme" parent="DarkTheme">
        <item name="android:windowBackground">@color/black_background_color</item>
        <item name="windowBackground">@color/black_background_color</item>
        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogTheme.Black</item>

        <item name="separator_color">@color/black_separator_color</item>
        <item name="contrast_background_color">@color/black_contrast_background_color</item>

        <item name="card_item_background_color">@color/black_card_item_background_color</item>
        <item name="card_item_contrast_color">@color/black_card_item_contrast_color</item>
        <item name="border_color">@color/black_border_color</item>
        <item name="dashed_border">@drawable/dashed_border_black</item>
    </style>
    <style name="Base.BlackTheme" parent="Base.V19.BlackTheme" />
    <style name="BlackTheme" parent="Base.BlackTheme"/>

    <!-- Dialogs -->
    <style name="LightDialogTheme" parent="Theme.AppCompat.DayNight.Dialog">
        <item name="colorPrimary">@color/light_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/light_youtube_primary_color</item>
        <item name="colorAccent">@color/light_youtube_accent_color</item>
        <item name="android:windowBackground">@color/light_dialog_background_color</item>
        <item name="windowBackground">@color/light_dialog_background_color</item>
    </style>

    <style name="DarkDialogTheme" parent="Theme.AppCompat.DayNight.Dialog">
        <item name="colorPrimary">@color/dark_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/dark_youtube_primary_color</item>
        <item name="colorAccent">@color/dark_youtube_accent_color</item>
        <item name="android:windowBackground">@color/dark_dialog_background_color</item>
        <item name="windowBackground">@color/dark_dialog_background_color</item>
    </style>

    <style name="LightDialogMinWidthTheme" parent="Theme.AppCompat.DayNight.Dialog.MinWidth">
        <item name="colorPrimary">@color/light_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/light_youtube_primary_color</item>
        <item name="colorAccent">@color/light_youtube_accent_color</item>
        <item name="android:windowBackground">@color/light_dialog_background_color</item>
        <item name="windowBackground">@color/light_dialog_background_color</item>
    </style>

    <style name="DarkDialogMinWidthTheme" parent="Theme.AppCompat.DayNight.Dialog.MinWidth">
        <item name="colorPrimary">@color/dark_youtube_primary_color</item>
        <item name="colorPrimaryDark">@color/dark_youtube_primary_color</item>
        <item name="colorAccent">@color/dark_youtube_accent_color</item>
        <item name="android:windowBackground">@color/dark_dialog_background_color</item>
        <item name="windowBackground">@color/dark_dialog_background_color</item>
    </style>

    <!-- Settings -->
    <style name="LightSettingsTheme" parent="LightTheme">
        <item name="colorAccent">@color/light_settings_accent_color</item>
    </style>

    <style name="DarkSettingsTheme" parent="DarkTheme">
        <item name="colorAccent">@color/dark_settings_accent_color</item>
    </style>

    <style name="BlackSettingsTheme" parent="BlackTheme">
        <item name="colorAccent">@color/black_settings_accent_color</item>
    </style>

    <style name="RouterActivityThemeLight" parent="LightTheme">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="RouterActivityThemeDark" parent="DarkTheme">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>


    <style name="BottomSheetDialogTheme.Light.V19" parent="Theme.Design.Light.BottomSheetDialog">
        <item name="android:windowIsFloating">false</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@android:color/white</item>
    </style>
    <style name="BottomSheetDialogTheme.Light.Base" parent="BottomSheetDialogTheme.Light.V19"/>

    <style name="BottomSheetDialogTheme.Dark.V19" parent="Theme.Design.BottomSheetDialog">
        <item name="android:windowIsFloating">false</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@color/dark_bottom_sheet_color</item>
    </style>
    <style name="BottomSheetDialogTheme.Dark.Base" parent="BottomSheetDialogTheme.Dark.V19"/>

    <style name="BottomSheetDialogTheme.Black" parent="BottomSheetDialogTheme.Dark.Base">
        <item name="android:navigationBarColor">#121212</item>
        <item name="bottomSheetStyle">@style/BottomSheetStyle.Black</item>
    </style>
    <style name="BottomSheetStyle.Black" parent="Widget.Design.BottomSheet.Modal">
        <item name="android:background">@color/black_bottom_sheet_color</item>
    </style>

</resources>
