/*
Author: d3lboy
Url: https://github.com/PnRSolutions/bookerei-public
Description: Soft Peach - A warm, gentle theme with soft peach, cream, and ivory tones creating a cozy, welcoming atmosphere
*/

body[data-theme="Soft Peach"] {
    /* GENERAL */
    --app-bg-primary: #2d2520;
    background: #2d2520 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='warm-gradient' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%232d2520;stop-opacity:1' /%3E%3Cstop offset='25%25' style='stop-color:%23332a24;stop-opacity:1' /%3E%3Cstop offset='50%25' style='stop-color:%23382e27;stop-opacity:1' /%3E%3Cstop offset='75%25' style='stop-color:%23332a24;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%232d2520;stop-opacity:1' /%3E%3C/linearGradient%3E%3CradialGradient id='peach-glow' cx='30%25' cy='25%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23fec5bb;stop-opacity:0.12' /%3E%3Cstop offset='50%25' style='stop-color:%23fcd5ce;stop-opacity:0.06' /%3E%3Cstop offset='100%25' style='stop-color:%23fec5bb;stop-opacity:0' /%3E%3C/radialGradient%3E%3CradialGradient id='cream-glow' cx='70%25' cy='75%25' r='55%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffe5d9;stop-opacity:0.1' /%3E%3Cstop offset='50%25' style='stop-color:%23fae1dd;stop-opacity:0.05' /%3E%3Cstop offset='100%25' style='stop-color:%23ffe5d9;stop-opacity:0' /%3E%3C/radialGradient%3E%3CradialGradient id='ivory-glow' cx='50%25' cy='50%25' r='45%25'%3E%3Cstop offset='0%25' style='stop-color:%23f8edeb;stop-opacity:0.08' /%3E%3Cstop offset='50%25' style='stop-color:%23e8e8e4;stop-opacity:0.04' /%3E%3Cstop offset='100%25' style='stop-color:%23f8edeb;stop-opacity:0' /%3E%3C/radialGradient%3E%3Cpattern id='soft-waves' width='300' height='200' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0,100 Q75,80 150,100 T300,100' stroke='%23fec5bb' stroke-width='1.5' fill='none' opacity='0.08'/%3E%3Cpath d='M0,120 Q75,100 150,120 T300,120' stroke='%23fcd5ce' stroke-width='1.2' fill='none' opacity='0.07'/%3E%3Cpath d='M0,140 Q75,120 150,140 T300,140' stroke='%23ffe5d9' stroke-width='1' fill='none' opacity='0.06'/%3E%3Cpath d='M0,60 Q75,40 150,60 T300,60' stroke='%23ffd7ba' stroke-width='1.3' fill='none' opacity='0.07'/%3E%3Cpath d='M0,80 Q75,60 150,80 T300,80' stroke='%23fec89a' stroke-width='1.1' fill='none' opacity='0.06'/%3E%3C/pattern%3E%3Cpattern id='soft-dots' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23fec5bb' opacity='0.15'/%3E%3Ccircle cx='60' cy='40' r='1.8' fill='%23fcd5ce' opacity='0.12'/%3E%3Ccircle cx='15' cy='60' r='2.2' fill='%23ffe5d9' opacity='0.14'/%3E%3Ccircle cx='50' cy='15' r='1.5' fill='%23ffd7ba' opacity='0.1'/%3E%3Ccircle cx='70' cy='70' r='1.9' fill='%23fec89a' opacity='0.13'/%3E%3Ccircle cx='35' cy='50' r='1.6' fill='%23fae1dd' opacity='0.11'/%3E%3C/pattern%3E%3Cpattern id='petals' width='150' height='150' patternUnits='userSpaceOnUse'%3E%3Cellipse cx='40' cy='35' rx='8' ry='12' fill='%23fec5bb' opacity='0.08' transform='rotate(20 40 35)'/%3E%3Cellipse cx='38' cy='33' rx='6' ry='10' fill='%23fcd5ce' opacity='0.09' transform='rotate(-15 38 33)'/%3E%3Cellipse cx='110' cy='100' rx='9' ry='13' fill='%23ffe5d9' opacity='0.07' transform='rotate(35 110 100)'/%3E%3Cellipse cx='108' cy='98' rx='7' ry='11' fill='%23ffd7ba' opacity='0.08' transform='rotate(-10 108 98)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23warm-gradient)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23peach-glow)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23cream-glow)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23ivory-glow)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23soft-waves)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23soft-dots)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23petals)'/%3E%3C/svg%3E") no-repeat center center fixed !important;
    background-size: cover !important;
    --app-bg-secondary: rgba(45, 37, 32, 0.96); /* Dialog, Offcanvas background*/
    --app-bg-tertiary: rgba(254, 197, 187, 0.12); /* Hover background, text group icon background */

    --app-text-color-primary: #fae1dd; /*Readable on bg-primary - soft peachy white*/
    --app-text-color-primary-muted: rgba(250, 225, 221, 0.75); /*Readable on bg-primary, used for labels, descriptions, etc.*/
    --app-text-color-secondary: #fcd5ce; /*Readable on bg-secondary - peachy cream*/
    --app-text-color-tertiary: #fec89a; /*Readable on bg-tertiary - warm peach*/

    --app-highlight-color: #fec5bb; /* Highlight color - coral peach, used for buttons and links*/
    --app-highlight-color-secondary: rgba(254, 197, 187, 0.3); /* Highlight color, used for selected item*/

    --app-link-color: #ffd7ba; /* Link color - warm apricot*/
    --app-link-hover-color: #fec89a; /* Link hover color - golden peach*/

    /* BUTTONS */
    /* Primary button should be visible on the primary background. */
    --app-button-primary-background: linear-gradient(135deg, #fec5bb 0%, #ffd7ba 100%);
    --app-button-primary-background-hover: linear-gradient(135deg, #fec89a 0%, #ffe5d9 100%);
    --app-button-primary-text-color: #2d2520;
    --app-button-primary-text-hover: #2d2520;

    /* Secondary button should be visible on the secondary background. */
    --app-button-secondary-background: rgba(254, 197, 187, 0.15);
    --app-button-secondary-background-hover: rgba(255, 215, 186, 0.3);
    --app-button-secondary-text-color: #fec5bb;
    --app-button-secondary-text-hover: #ffd7ba;

    /* SIDEBAR - navigation panel on the left side*/
    --app-sidebar-background: linear-gradient(180deg, rgba(45, 37, 32, 0.95) 0%, rgba(51, 42, 36, 0.95) 50%, rgba(45, 37, 32, 0.95) 100%);
    --app-sidebar-width: 5rem;
    --app-sidebar-border: 1px solid rgba(254, 197, 187, 0.25);
    --app-sidebar-shadow: 0 0 25px rgba(254, 197, 187, 0.15), inset 0 0 20px rgba(255, 215, 186, 0.08);
    --app-sidebar-menu-item-color: rgba(252, 213, 206, 0.85);
    --app-sidebar-menu-item-hover-background: rgba(254, 197, 187, 0.15);
    --app-sidebar-menu-item-hover-color: #fec5bb;
    --app-sidebar-menu-item-active-color: #ffe5d9;
    --app-sidebar-menu-item-active-border-color: #fec89a;
    --app-sidebar-menu-item-active-background: linear-gradient(135deg, rgba(254, 197, 187, 0.25) 0%, rgba(255, 215, 186, 0.25) 100%);

    /* TOP BAR - top panel with search box*/
    --app-topbar-background: linear-gradient(90deg, rgba(45, 37, 32, 0.92) 0%, rgba(51, 42, 36, 0.92) 50%, rgba(45, 37, 32, 0.92) 100%);
    --app-topbar-shadow: 0 5px 20px rgba(254, 197, 187, 0.12), 0 0 35px rgba(255, 215, 186, 0.1);
    --app-topbar-border: 1px solid rgba(254, 197, 187, 0.2);
    --app-topbar-margin-start: 5rem;

    /* SEARCH BOX / autocomplete textbox at the top*/
    --app-search-input-background-color: rgba(51, 42, 36, 0.75);
    --app-search-input-text-color: #fae1dd;
    --app-search-input-placeholder-color: rgba(252, 213, 206, 0.6);
    --app-search-input-border: 1px solid rgba(254, 197, 187, 0.35);
    --app-search-input-focus-border: 2px solid rgba(254, 197, 187, 0.7);
    --app-search-input-focus-boxshadow: 0 0 18px rgba(254, 197, 187, 0.3), inset 0 0 10px rgba(255, 229, 217, 0.15);
    --app-search-results-border-bottom: 2px solid rgba(254, 197, 187, 0.35);
    --app-search-results-item-background-color: rgba(45, 37, 32, 0.97);
    --app-search-results-item-text-color: #fae1dd;
    --app-search-results-item-hover-text-color: #fec89a;
    --app-search-results-item-active-text-color: #ffe5d9;
    --app-search-results-item-hover-background-color: rgba(254, 197, 187, 0.2);

    /* FRONT CARD */
    --app-frontcard-title-background: linear-gradient(135deg, rgba(254, 197, 187, 0.18) 0%, rgba(255, 215, 186, 0.18) 100%);
    --app-frontcard-title-text-color: #fec89a;
    --app-frontcard-text-color: #fae1dd;
    --app-carousel-next-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fec5bb'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --app-carousel-prev-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fec5bb'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");

    /* TABS - book details page*/
    --app-tab-text-color: #fcd5ce;
    --app-tab-active-text-color: #fec89a;

    /* TOOLBAR - top position on page book search results*/
    --app-toolbar-button-bg: rgba(254, 197, 187, 0.12);
    --app-toolbar-button-text-color: #fcd5ce;
    --app-toolbar-button-hover-bg: rgba(254, 197, 187, 0.22);
    --app-toolbar-button-disabled-text-color: rgba(252, 213, 206, 0.4);
    --app-toolbar-button-active-bg: linear-gradient(135deg, rgba(254, 197, 187, 0.3) 0%, rgba(255, 215, 186, 0.3) 100%);
    --app-toolbar-button-active-text-color: #ffe5d9;

    /* BOOK SEARCH RESULTS */
    --app-bookresult-list-odditem-background: rgba(254, 197, 187, 0.08);
    --app-bookresult-list-odditem-hover-background: rgba(254, 197, 187, 0.15);
    --app-bookresult-list-title-text-color: #ffd7ba;
    --app-bookresult-list-author-text-color: #fcd5ce;
    --app-bookresult-list-date-text-color: rgba(254, 200, 154, 0.9);

    /* BOOK DETAILS */
    --app-bookdetails-background: rgba(51, 42, 36, 0.7);
    --app-bookdetails-title-text-color: #fec89a;
    --app-bookdetails-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3), 0 0 25px rgba(254, 197, 187, 0.2);
    --app-bookdetails-border-radius: 0.875rem;
    --app-bookdetails-label-background-color: rgba(254, 197, 187, 0.18);
    --app-bookdetails-label-text-color: #fae1dd;

    .badge {
        background: linear-gradient(135deg, rgba(254, 197, 187, 0.35) 0%, rgba(255, 215, 186, 0.35) 100%) !important;
        color: #ffe5d9 !important;
        border: 1px solid rgba(254, 197, 187, 0.4) !important;
        box-shadow: 0 0 10px rgba(254, 197, 187, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2);
        font-weight: 500;
    }

    .list-group-item-action:hover {
        color: #fec89a !important;
    }
}

html[dir="rtl"] body[data-theme="Soft Peach"] {
    --app-topbar-background: linear-gradient(270deg, rgba(45, 37, 32, 0.92) 0%, rgba(51, 42, 36, 0.92) 50%, rgba(45, 37, 32, 0.92) 100%);
}
