﻿html, body, .mud-typography {
    font-family: Merriweather, "Libre Baskerville", Garamond, Georgia, serif !important;
}

body, html {
    margin: 0;
    height: 100vh;
}

div#app{
        height: 100vh;
}

/*******************************************************************/
/* Primary Find Recipes Button */
.find-recipes-button {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.04); /* subtle neutral base */
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    /* Hover: stronger presence, tactile lift */
    .find-recipes-button:hover {
        opacity: 1.0;
        background-color: rgba(0, 0, 0, 0.08); /* slightly stronger tint */
        transform: scale(1.07); /* a bit more than feature buttons */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    }

    /* Active: pressed state */
    .find-recipes-button:active {
        transform: scale(0.96);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
        background-color: rgba(0, 0, 0, 0.12);
    }

/*******************************************************************/
/* Disabled Dashboard Tile Used on Dashboard.razor */
.disabled-tile {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/*******************************************************************/
/* Compact What's New Page Used on WhatsNewList.razor */
.compact-whatsnew .mud-paper {
    padding: 8px;
    margin-bottom: 6px;
}

.compact-whatsnew .mud-typography-body2 {
    font-size: 0.85rem;
}


/*******************************************************************/
/* Welcome Back Page Used on WelcomeBack.razor */
.welcome-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subtle {
    color: rgba(0,0,0,0.6);
}

.login-button {
    margin-top: 1rem;
}

.recent-section {
    margin-top: 2rem;
}

.recipe-card {
    padding: 1rem;
    border-radius: 8px;
}

.system-info {
    margin-top: 3rem;
}

/*******************************************************************/
/* Utility Classes .... Used in EditIngredients */
.ingredient-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 1px; /* very tight spacing */
    padding: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .ingredient-actions {
        gap: 0px;
    }
}
/*******************************************************************/


/* ------------------------------ */
/* InFeedAdvertCard (grid version) */
/* ------------------------------ */

.advert-card {
    border: 4px solid transparent;
    border-radius: 12px;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(var(--rl-card-bg), var(--rl-card-bg)), linear-gradient(135deg, #ff9800, #ff5722);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .advert-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    }

.sponsored-chip {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-container {
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Light mode */
:root {
    --rl-card-bg: #ffffff;
}

/* Dark mode */
.dark-mode {
    --rl-card-bg: #1e1e1e;
}

    .dark-mode .advert-card {
        box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    }

        .dark-mode .advert-card:hover {
            box-shadow: 0 8px 18px rgba(255,255,255,0.2);
        }

/* ------------------------------ */
/* InlineAdvert (footer/support/dashboard) */
/* ------------------------------ */

.inline-advert {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    margin-top: 8px;
}

.dark-mode .inline-advert {
    background: transparent;
}
/*******************************************************************/
/* Drawer Section Styling Used on MainLayout.razor */
.drawer-section {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 8px 0;
}

.drawer-section-header {
    font-weight: 600;
    opacity: 0.7;
    padding-left: 4px;
    margin-bottom: 4px;
}

.mud-nav-link {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.mud-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}
.mud-nav-group {
    transition: all 0.25s ease;
}
.mud-navmenu {
    padding-top: 4px;
    padding-bottom: 4px;
}
.mud-drawer {
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
}

/*******************************************************************/
.liMarker::marker {
    content: '➢'; /* Use symbols like ➜, ★, or ✅ */
    color: #229fff;
    font-size: 1.2rem;
}

/*******************************************************************/
/* Root layout ensures footer stays at bottom */
.layout-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-content {
    flex: 1 0 auto;
}

/* Footer styling */
.rl-footer {
    flex-shrink: 0;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    color: #555;
    font-size: 0.9rem;
}

.rl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Left section */
.rl-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rl-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.rl-footer-brand {
    font-size: 1rem;
}

.rl-footer-tagline {
    font-size: 0.8rem;
    color: #777;
}

/* Right section */
.rl-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rl-footer-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

    .rl-footer-link:hover {
        color: #000;
        text-decoration: underline;
    }

.rl-footer-sep {
    color: #aaa;
}

/* Mobile layout */
@media (max-width: 600px) {
    .rl-footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .rl-footer-sep {
        display: none; /* separators look odd when stacked */
    }
}
/*******************************************************************/
/* Full Screen Cook Mode Used on RecipeCookingMode.razor */
.full-screen-cook-mode {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}

/*******************************************************************/

/* Dashboard Tile Hover Effects Used on Dashboard.razor */
.dashboard-tile {
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .dashboard-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    .dashboard-tile:active {
        transform: scale(0.97);
    }

/*******************************************************************/
/* Login and Back Button and Feature Toolbar Buttons Used on RecipeDetails.razor */
.login-button {
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    min-width: 70px;
}

    .login-button:hover {
        opacity: 1.0; /* stronger visibility on hover */
        background-color: rgba(0, 0, 0, 0.05); /* subtle background tint */
    }

.back-button {
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

    .back-button:hover {
        opacity: 1.0; /* stronger visibility on hover */
        background-color: rgba(0, 0, 0, 0.05); /* subtle tint */
        border-radius: 50%; /* keeps the hover tint nicely circular */
    }

    /* Enhanced hover effects for both buttons */
.login-button,
.back-button {
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

    .login-button:hover,
    .back-button:hover {
        opacity: 1.0; /* stronger visibility */
        background-color: rgba(0, 0, 0, 0.05); /* subtle tint */
        transform: scale(1.05); /* slight scale-up */
    }

    .back-button:hover {
        border-radius: 50%; /* keeps tint circular for icon button */
    }

.feature-button {
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

    .feature-button:hover {
        opacity: 1.0; /* stronger visibility */
        background-color: rgba(0, 0, 0, 0.05); /* subtle tint */
        transform: scale(1.05); /* tactile scale-up */
    }

.feature-button,
.login-button,
.back-button {
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    /* Hover effect */
    .feature-button:hover,
    .login-button:hover,
    .back-button:hover {
        opacity: 1.0; /* stronger visibility */
        background-color: rgba(0, 0, 0, 0.05); /* subtle tint */
        transform: scale(1.05); /* tactile scale-up */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* gentle shadow lift */
    }

    /* Active (pressed) effect */
    .feature-button:active,
    .login-button:active,
    .back-button:active {
        transform: scale(0.95); /* slight scale-down to simulate press */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* deeper shadow, closer to surface */
        background-color: rgba(0, 0, 0, 0.1); /* slightly darker tint */
    }

    .back-button:hover,
    .back-button:active {
        border-radius: 50%; /* keeps tint circular for icon button */
    }
/*******************************************************************/

.appbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left, center, right */
    position: relative;
    min-height: 64px;
    width: 100%;
}

/* Left pinned */
.appbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Center absolutely centered */
.appbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

/* Right pinned */
.appbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Person wrapper anchors floating message */
.person-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.person-message {
    position: absolute;
    bottom: -32px; /* float just below icon */
    right: 0;
    /*background: rgba(0, 0, 0, 0.4); /* subtle semi-transparent dark background */
    /*color: #fff; /* white text for contrast */
    background: rgba(255,255,255,0.7);
    color: #2E2E2E;
    border-color: transparent transparent rgba(255,255,255,0.7) transparent;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    opacity: 0;
    animation: fadeIn 250ms ease-out forwards, autoHide 120s ease-in forwards;
}

    /* Tooltip-style arrow */
    .person-message::after {
        content: "";
        position: absolute;
        top: -6px; /* arrow sits above bubble */
        right: 12px; /* align with icon */
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent rgba(0,0,0,0.4) transparent;
    }

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Auto-hide after a few seconds */
@keyframes autoHide {
    to {
        opacity: 0;
    }
}
/*******************************************************************/








.login-form {
    font-family: Merriweather, "Libre Baskerville", Garamond, Georgia, serif;
}

.vertical-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
}

.category-label {
    font-family: Merriweather, "Libre Baskerville", Garamond, Georgia, serif !important;
    font-weight: 500 !important;
    color: #444;
}

.recipe-title {
    font-family: Merriweather, "Libre Baskerville", Garamond, Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.RecipeLarderHomePageImage{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}
    .RecipeLarderHomePageImage:hover {
        transform: scale(1.05);
    }

.RecipeLarderCard {
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .RecipeLarderCard:hover {
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    }

.RecipeImageContainer {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.RecipeImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.RecipeImageTop {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

    .RecipeImageTop:hover {
        transform: scale(1.05);
    }

.RecipeLarderCard {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.AppBarMainMenuContainer {
    float: inline-end;
}

.AppBarProfileMenuContainer {
    float: right;
}

.mud-menu-item:hover {
    background-color: lightgray;
}
.drawer-menu {
    background-color: var(--mud-palette-drawer-background);
    align-self: start;
    justify-content: flex-start;
    width: 100%;
    display: flex;
}
    .drawer-menu .mud-button {
        color: var(--mud-palette-drawer-text);
        background-color: var(--mud-palette-drawer-background);
        padding: 8px;
        padding-left: 16px;
        padding-right: 16px;
        text-transform: none;
    }

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41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AiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.fade-out {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

    .fade-out.hidden {
        opacity: 0;
    }


/* Custom Dialog Styles */
.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* bump higher than 1300 */
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.dialog-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: Merriweather, 'Libre Baskerville', Garamond, Georgia, serif;
    transform: translateY(-10px);
    animation: slideUp 0.3s ease-out forwards;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.dialog-body {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}