<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">

    <style name="Theme.Aletheia" parent="Theme.Material3.Light.NoActionBar">
        <item name="colorPrimary">@color/accent_color</item>
        <item name="colorOnPrimary">@color/white</item>
        <item name="colorPrimaryContainer">@color/night_surface_strong</item>
        <item name="colorOnPrimaryContainer">@color/night_cream</item>
        <item name="colorSecondary">@color/night_green_light</item>
        <item name="colorSecondaryContainer">@color/night_surface_muted</item>
        <item name="colorTertiary">@color/success_color</item>
        <item name="colorSurface">@color/night_surface</item>
        <item name="colorSurfaceContainer">@color/night_surface_muted</item>
        <item name="android:colorBackground">@color/night_background</item>
        <item name="colorOnBackground">@color/night_cream</item>
        <item name="android:statusBarColor">@color/night_background</item>
        <item name="android:navigationBarColor">@color/night_background</item>
        <item name="android:windowLightStatusBar" tools:targetApi="23">true</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
        <item name="materialCardViewStyle">@style/Widget.Aletheia.Card</item>
        <item name="materialButtonStyle">@style/Widget.Aletheia.Button.Primary</item>
    </style>

    <style name="Widget.Aletheia.Card" parent="Widget.Material3.CardView.Elevated">
        <item name="cardCornerRadius">18dp</item>
        <item name="cardBackgroundColor">@color/surface_color</item>
        <item name="strokeColor">@color/border_color</item>
        <item name="strokeWidth">1dp</item>
    </style>

    <style name="Widget.Aletheia.Button.Primary" parent="Widget.Material3.Button">
        <item name="android:textColor">@color/white</item>
        <item name="backgroundTint">@color/accent_color</item>
        <item name="cornerRadius">24dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:fontFamily">@font/open_sans_semibold</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="Widget.Aletheia.Button.Secondary" parent="Widget.Material3.Button.OutlinedButton">
        <item name="android:textColor">@color/night_cream</item>
        <item name="backgroundTint">@color/night_surface_strong</item>
        <item name="strokeColor">@color/night_border</item>
        <item name="strokeWidth">1dp</item>
        <item name="cornerRadius">14dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:fontFamily">@font/open_sans_semibold</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="Widget.Aletheia.Button.Tonal" parent="Widget.Material3.Button">
        <item name="android:textColor">@color/night_cream</item>
        <item name="backgroundTint">@color/night_surface_strong</item>
        <item name="cornerRadius">14dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:fontFamily">@font/open_sans_semibold</item>
        <item name="android:textAllCaps">false</item>
    </style>

    <style name="Widget.Aletheia.Button.ReaderQuickAction" parent="Widget.Aletheia.Button.Secondary">
        <item name="android:minWidth">0dp</item>
        <item name="android:minHeight">48dp</item>
        <item name="android:paddingLeft">8dp</item>
        <item name="android:paddingRight">8dp</item>
        <item name="android:textSize">13sp</item>
        <item name="android:singleLine">true</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="Widget.Aletheia.Button.ReaderFontStep" parent="Widget.Aletheia.Button.Secondary">
        <item name="android:minWidth">0dp</item>
        <item name="android:minHeight">52dp</item>
        <item name="android:paddingLeft">0dp</item>
        <item name="android:paddingRight">0dp</item>
        <item name="android:textSize">16sp</item>
        <item name="android:singleLine">true</item>
        <item name="android:includeFontPadding">false</item>
    </style>

    <style name="Widget.Aletheia.Toolbar" parent="Widget.Material3.Toolbar">
        <item name="android:background">@color/tab_bar_color</item>
        <item name="titleTextColor">@color/white</item>
        <item name="subtitleTextColor">@color/surface_strong</item>
    </style>

    <style name="Widget.Aletheia.BottomNavigation.ActiveIndicator" parent="Widget.Material3.BottomNavigationView.ActiveIndicator">
        <item name="android:color">@color/bottom_nav_indicator_color</item>
        <item name="android:width">0dp</item>
        <item name="android:height">0dp</item>
        <item name="shapeAppearance">@style/ShapeAppearance.Aletheia.BottomNavigation.ActiveIndicator</item>
    </style>

    <style name="ShapeAppearance.Aletheia.BottomNavigation.ActiveIndicator" parent="">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSize">12dp</item>
    </style>

    <style name="TextAppearance.Aletheia.BottomNavigation.Active" parent="TextAppearance.Material3.LabelMedium">
        <item name="android:fontFamily">sans-serif-medium</item>
        <item name="android:textSize">11.875sp</item>
    </style>

    <style name="TextAppearance.Aletheia.BottomNavigation.Inactive" parent="TextAppearance.Material3.LabelMedium">
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textSize">11.875sp</item>
    </style>
</resources>
