﻿/* Fonts */
@font-face {
    font-family: 'geosquare';
    src: url('fonts/bpg_extrasquare_mtavruli_2009.eot');
    src: url('fonts/bpg_extrasquare_mtavruli_2009.eot?#iefix') format('embedded-opentype'), url('fonts/bpg_extrasquare_mtavruli_2009.woff') format('woff'), url('fonts/bpg_extrasquare_mtavruli_2009.ttf') format('truetype'), url('fonts/bpg_extrasquare_mtavruli_2009.svg#webfont') format('svg');
    unicode-range: U+10A0-10FB;
    font-weight: normal;
    font-style: normal;
}



/* =========================================================
   CSS VARIABLES (LIGHT THEME)
   ========================================================= */
:root {
    /* Color Scheme Golden Summer Fields
        https://coolors.co/palettes/trending
    */
    --tea-green: #ccd5aeff;
    --beige: #e9edc9ff;
    --cornsilk: #fefae0ff;
    --papaya-whip: #faedcdff;
    --light-bronze: #d4a373ff;
    /* Color Scheme Summer Ocean Breeze */
    --punch-red: #e63946ff;
    --honeydew: #f1faeeff;
    --frosted-blue: #a8dadcff;
    --cerulean: #457b9dff;
    --oxford-navy: #1d3557ff;
    /* Colors */
    --color-bg: #f2f4f7;
    --color-bg-header: #ffffff;
    --color-bg-content: #ffffff;
    --color-bg-item-hover: rgba(0,0,0,0.05);
    --color-bg-alt: #fafafa;
    --color-text: #222;
    --color-border: #ddd;
    --color-border-light: #eee;
    --color-hover: #f3f3f3;
    --color-overlay: rgba(0,0,0,0.25);
    /* Awatar */
    --color-avatar-bg: rgba(70, 106, 178, 0.136);
    /* Accent */
    --color-accent: #0073ff;
    --color-accent-text: #ffffff;
    /* Shadows */
    --shadow-small: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-fab: 0 6px 16px rgba(0,0,0,0.25);
    /* Sizes */
    --sidebar-width: 240px;
    --sidebar-mini: 72px;
    --topbar-height: 56px;
    --bottom-bar-height: 64px;
    --fab-size: 64px;
    --radius-small: 6px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --radius-xl: 24px;
    --content-width: 680px;
    /* Spacing */
    --gap: 24px;
    --gap-medium: 12px;
    --gap-small: 6px;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.25s ease;
}




/* =========================================================
     GLOBAL
     ========================================================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

.mud-expand-panel .mud-expand-panel-header {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
.textElipse {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a {
    text-decoration: none; /* Removes underline */
}

.shadow {
    box-shadow: var(--shadow-small);
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}
/* =========================================================
     TOP APP BAR
     ========================================================= */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--color-bg-header);
    /* border-bottom: 1px solid var(--color-border);*/
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: var(--shadow-small);
}

    .app-bar .search {
        margin: 0 16px;
        flex: 1;
        max-width: 240px;
        background: var(--color-bg-alt);
        border: 1px solid var(--color-border);
        padding: 6px 10px;
        height: 28px;
        font-size: 14px;
        border-radius: var(--radius-xl);
        color: var(--color-text);
    }

.burger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    margin-right: 12px;
    cursor: pointer;
    color: var(--color-text);
}

.btnSearch {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    margin-right: 12px;
    cursor: pointer;
    color: var(--color-text);
}

.app-bar-buttons-container {
    width: 100%;
    display: flex;
    justify-content: right;
}

.app-bar-buttons {
    background-color: transparent;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: cadetblue;
    display: flex;
    color:var(--color-bg-header);
    align-items: center;
    justify-content: center;
    background-position-x:50%;
    background-position-y:50%;
    background-repeat:no-repeat;
    background-size:cover;
}

.avatar-button {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-bg-content);
}

.logoimage {
    margin-top:8px;
    width: 40px;
    height: 40px;
}
/* =========================================================
     LAYOUT
========================================================= */
.hiddenBloc {
    display: none;
}

.layout-container {
    align-items: stretch;
    box-sizing: border-box;
    direction: ltr;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: center;
    min-height: inherit;
    min-width: 320px;
    position: relative;
}

.layout {
    align-items: flex-start;
    box-sizing: border-box;
    direction: ltr;
    display: flex;
    flex-basis: 0px;
    flex-direction: row;
    flex-grow: 1;
    flex-shrink: 1;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 1464px;
    min-height: inherit;
    min-width: 0;
    position: relative;
}



.content-container {
    align-items: stretch;
    box-sizing: border-box;
    direction: ltr;
    display: flex;
    flex-basis: var(--content-width);
    flex-direction: row;
    flex-shrink: 1;
    flex-grow: 1;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
    top: calc(var(--topbar-height) + var(--gap));
    padding-inline-end: var(--gap);
    padding-inline-start: var(--gap);
    position: relative;
}

.content {
    width: 100%;
    max-width: var(--content-width);
}
.content_s {
    width: 100%;
    max-width: calc(var(--content-width) + var(--sidebar-width));
}

.content-container_s {
    align-items: stretch;
    box-sizing: border-box;
    direction: ltr;
    display: flex;
    flex-basis: var(--content-width);
    flex-direction: row;
    flex-shrink: 1;
    flex-grow: 1;
    flex-wrap: nowrap;
    justify-content: left;
    min-width: 0;
    top: calc(var(--topbar-height) + var(--gap));
    padding-inline-end: var(--gap);
    padding-inline-start: var(--gap);
    position: relative;
}

.central-block-xl {
    background: var(--color-bg-content);
    border: 1px solid var(--color-border);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-large);
}

.right-sidebar {
    padding-top: var(--gap);
    box-sizing: border-box;
    direction: ltr;
    display: block;
    flex-basis: var(--sidebar-width);
    flex-shrink: 9999;
    max-height: 0px;
    max-width: var(--sidebar-width);
    min-height: calc(100vh - var(--topbar-height));
    min-width: 280px;
    overflow-anchor: none;
    overflow-x: hidden;
    overflow-y: hidden;
    position: sticky;
    margin-top: var(--topbar-height);
}

    .right-sidebar .sticky {
        position: sticky;
        overflow-y: auto;
        height: calc(100vh - var(--topbar-height));
    }

.hide-right-sidebar {
    -ms-overflow-style: none; /* IE and Edge */
    /* Hide scrollbar for Firefox */
    scrollbar-width: none; /* Firefox */
}

    .hide-right-sidebar::-webkit-scrollbar {
        display: none;
    }

.right-sidebar .sticky::-webkit-scrollbar {
    width: 8px;
}

.right-sidebar .sticky::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .right-sidebar .sticky::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


.info-block {
    border: 1px solid var(--color-border);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-medium);
}

    .info-block:hover {
        background-color: var(--color-bg-item-hover);
    }

.left-sidebar {
    padding-top: var(--gap);
    box-sizing: border-box;
    direction: ltr;
    display: block;
    flex-basis: var(--sidebar-width);
    flex-shrink: 9999;
    max-height: 0px;
    max-width: var(--sidebar-width);
    min-height: calc(100vh - var(--topbar-height));
    min-width: 280px;
    overflow-anchor: none;
    overflow-x: hidden;
    overflow-y: hidden;
    position: sticky;
    margin-top: var(--topbar-height);
}

    .left-sidebar .bottomLinkbar {
        display: block;
        padding: 16px;
        position: fixed;
        bottom: 0;
    }

    .left-sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .left-sidebar .menu-block {
        position: relative;
        max-width: 100%;
        padding-inline-start: 8px;
        padding-inline-end: 8px;
    }

.menu-block a {
    align-items: stretch;
    box-sizing: border-box;
    display: block;
    flex-basis: auto;
    flex-direction: row;
    flex-shrink: 0;
    margin: 0;
    border-radius: var(--radius-large);
}

.menu-block .menu-item {
    padding: 8px;
    display: grid;
    cursor:pointer;
    grid-template-columns: 48px 1fr;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    text-align: start;
}

    .menu-block .menu-item .menu-icon {
        width: 36px;
        height: 36px;
        background: var(--color-avatar-bg);
        border-radius: 24px;
        text-align: center;
        vertical-align: middle;
        align-items: center;
        justify-content: center;
        display: flex;
    }


    .menu-block .menu-item .menu-text {
        font-size: 15px;
        font-weight: 500;
        color: var(--color-text);
        word-break: break-word;
    }

.menu-block:hover {
    background-color: var(--color-bg-item-hover);
}


.left-sidebar .sticky {
}

.left-sidebar .fixed {
    width:var(--sidebar-width);
}


/* =========================================================
     MOBILE BOTTOM BAR
     ========================================================= */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.75);
    border-top: 1px solid var(--color-border);
    z-index: 1001;
}

body.dark .mobile-bottom-bar {
    background: rgba(30,30,30,0.75);
}

.mobile-bottom-bar .bottom-bar-content {
    display: flex;
    gap: 32px;
}

.bottom-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--color-text);
}



/* =========================================================
     MOBILE SLIDE MENU
     ========================================================= */
.mobile-menu {
    position: fixed;
    top: var(--topbar-height);
    left: 100vw; /*-240 right*/
    width: 240px;
    height: calc(100vh - var(--topbar-height));
    background: var(--color-bg-content);
    border-right: 1px solid var(--color-border);
    padding: 16px;
    transition: left var(--transition-medium);
    z-index: 1200;
    display: none;
}

    .mobile-menu.open {
        left: calc(100vw - 240px); /*0 right*/
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* =========================================================
     MOBILE BOTTOM BAR
     ========================================================= */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-bar-height);
        display: none;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255,255,255,0.75);
        border-top: 1px solid var(--color-border);
        z-index: 1201;
        box-shadow: var(--shadow-medium);
    }

/* =========================================================
     FAB BUTTON
     ========================================================= */
.fab-btn {
    position: fixed;
    bottom: calc(var(--bottom-bar-height) + 16px);
    right: var(--gap);
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 36px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-fab);
    cursor: pointer;
    z-index: 1199;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .fab-btn:active {
        transform: scale(0.92);
        box-shadow: var(--shadow-medium);
    }

/* FAB overlay */
.fab-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    z-index: 1001;
}

/* FAB popup menu */
.fab-menu {
    position: fixed;
    bottom: calc(var(--bottom-bar-height) + var(--fab-size) + 20px);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    z-index: 1002;
}

.fab-menu-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    border-radius: var(--radius-large);
    font-size: 16px;
    text-align: left;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    color: var(--color-text);
}

/* Active state */
.fab-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}


/* Profile page */
.profile-top-background-image {
    width: 100%;
    height: 320px;
    position: relative;
    z-index: 0; /* Behind content */
}

.profile-top-background-image2 {
    width: 100%;
    height: 220px;
    position: relative;
    z-index: 0; /* Behind content */
}

.TagFilter {
    display: none;
    border-width: 1px;
    border-color: var(--mud-palette-lines-inputs);
    border-style: solid;
}

.TagMenu {
    display: block;
}

/* Recipe View */
.background-image {
    width: 100%;
    height: 320px;
    position: relative;
    z-index: 0; /* Behind content */
    border-radius: var(--radius-large);
}


/* Recipe Box Sm */
.responsive-media {
    height: 160px !important;
}

.recipeBoxItem {
    padding-bottom: 24px;
    padding-left: 24px;
    
}


.RecipeBoxContent {
    max-height: 90px;
}





/* =========================================================
     DESKTOP (1280–1024px) 
========================================================= */
@media (max-width: 1280px) and (min-width: 1024px) {
    .left-sidebar {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .burger {
        display: block;
    }
}
/* =========================================================
     MINI MODE (700–1024px)
========================================================= */
@media (max-width: 1024px) and (min-width: 700px) {
    .mobile-menu {
        display: block;
    }
    .left-sidebar {
        display: none;
    }
    .right-sidebar {
        display: none;
    }
    .profile-top-background-image {
        height: 220px;
    }
    .burger {
        display: block;
    }
}
/* =========================================================
     MOBILE (<700px)
========================================================= */
@media (max-width: 700px) {
    .background-image {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        max-height:220px;
    }

    .roundBorderMobile {
        border-radius: var(--radius-large);
    }

    .content-container {
        top: var(--topbar-height);
        padding-inline-end: 0;
        padding-inline-start: 0;
    }
    .content-container_s {
        top: var(--topbar-height);
        padding-inline-end: 0;
        padding-inline-start: 0;
    }
    .profile-top-background-image {
        height: 220px;
    }
    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .fab-btn {
        display: flex;
    }

    .mobile-bottom-bar {
        display: flex;
    }
    .TagFilter {
        display: block;
    }

    .TagMenu {
        display: none;
    }
}
