@import '_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    --app-header-height: 86px;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - var(--app-header-height));
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    height: calc(100dvh - var(--app-header-height)) !important;
    display: flex;
}

.content {
    padding: 0.5rem 1.5rem;
    align-self: stretch !important;
    width: 100%;
}

.manage {
    width: 100dvw;
}

footer {
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
    margin: 10px 0;
}

.alert-danger {
    border: 1px dashed var(--error);
}

.alert-success {
    border: 1px dashed var(--success);
}

.alert-warning {
    border: 1px dashed var(--warning);
}

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

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

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

    .blazor-error-boundary::before {
        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;
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

/* ── Home page ─────────────────────────────────────────────────────────── */

.home-hero {
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, var(--accent-fill-active) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: -0.5rem -1.5rem 0 -1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-parallax-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
}

.hero-parallax-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.08s ease-out;
}

.home-hero-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.home-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    line-height: 1.2;
}

.home-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.92;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-features {
    padding: 3rem 0 2rem;
}

.home-features-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--neutral-foreground-rest);
}

.home-feature-card {
    height: 100%;
    text-align: center;
    padding: 1.75rem 1.5rem !important;
}

.home-feature-icon {
    margin-bottom: 1rem;
}

.home-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--neutral-foreground-rest);
}

.home-feature-text {
    font-size: 0.9rem;
    color: var(--neutral-foreground-hint);
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .home-hero {
        padding: 3rem 1.25rem;
        margin: -0.5rem -1.5rem 0 -1.5rem;
    }

    .home-hero-title {
        font-size: 1.75rem;
    }
}

/* ── Wishlist cards ─────────────────────────────────────────────────────── */

.wishlist-card {
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .wishlist-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

.wishlist-card--shared {
    border-left: 3px solid var(--accent-fill-rest);
}

.wishlist-empty-card {
    text-align: center;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

    table td,
    table th {
        padding: var(--spacingVerticalS) var(--spacingHorizontalM);
        text-align: left;
        vertical-align: middle;
        border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
    }

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--neutral-layer-2);
    color: var(--neutral-foreground-rest);
    border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    flex-wrap: wrap;
}

    .cookie-consent a {
        color: var(--accent-foreground-rest);
    }




/* Hidden */

@media (max-width: 599.98px) {
    .hide-xs {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 959.98px) {
    .hide-sm {
        display: none;
    }
}

@media (max-width: 959.98px) {
    .hide-sm-down {
        display: none;
    }
}

@media (min-width: 600px) {
    .hide-sm-up {
        display: none;
    }
}

@media (min-width: 960px) and (max-width: 1279.98px) {
    .hide-md {
        display: none;
    }
}

@media (max-width: 1279.98px) {
    .hide-md-down {
        display: none !important;
    }
}

@media (min-width: 960px) {
    .hide-md-up {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1919.98px) {
    .hide-lg {
        display: none;
    }
}

@media (min-width: 1280px) {
    .hide-lg-up {
        display: none;
    }
}

@media (max-width: 1919.98px) {
    .hide-lg-down {
        display: none;
    }
}

@media (min-width: 1920px) and (max-width: 2559.98px) {
    .hide-xl {
        display: none;
    }
}

@media (min-width: 1920px) {
    .hide-xl-up {
        display: none;
    }
}

@media (max-width: 2559.98px) {
    .hide-xl-down {
        display: none;
    }
}

@media (min-width: 2560px) {
    .hide-xxl {
        display: none;
    }
}


/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    z-index: 10001;
}

    .lightbox-close:hover {
        opacity: 1;
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    line-height: 1;
    z-index: 10001;
    opacity: 0.8;
}

    .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.3);
        opacity: 1;
    }

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 12px;
    border-radius: 12px;
}

/* ── Auth pages (Login / Register) ─────────────────────────────────────── */

.auth-wrapper {
    display: flex;
    margin: -0.5rem -1.5rem;
    min-height: calc(100dvh - var(--app-header-height));
    overflow: hidden;
}

/* Visual / illustration panel */
.auth-visual {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem 2rem 3rem;
}

.auth-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.auth-brand-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    display: block;
}

.auth-brand-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.auth-brand-tagline {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 0 1.75rem;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.auth-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

/* Form panel */
.auth-form-panel {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    background: var(--neutral-layer-2);
    overflow-y: auto;
}

.auth-form-card {
    width: 100%;
    max-width: 380px;
}

.auth-form-header {
    margin-bottom: 1.5rem;
}

.auth-form-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.auth-form-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--neutral-foreground-rest);
}

.auth-form-subtitle {
    font-size: 0.92rem;
    color: var(--neutral-foreground-hint);
    margin: 0;
}

.auth-form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--neutral-foreground-hint);
    font-size: 0.82rem;
}

    .auth-form-divider::before,
    .auth-form-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--neutral-stroke-rest);
    }

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

/* Star twinkling animation */
@keyframes auth-star-twinkle {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.25; }
}

.auth-star-a { animation: auth-star-twinkle 3.2s ease-in-out infinite; }
.auth-star-b { animation: auth-star-twinkle 4.1s ease-in-out infinite 1.1s; }
.auth-star-c { animation: auth-star-twinkle 2.8s ease-in-out infinite 0.6s; }
.auth-star-d { animation: auth-star-twinkle 5.0s ease-in-out infinite 1.8s; }

/* Trail pulse */
@keyframes auth-trail-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 0.95; }
}

.auth-trail { animation: auth-trail-pulse 3.5s ease-in-out infinite; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-star-a,
    .auth-star-b,
    .auth-star-c,
    .auth-star-d,
    .auth-trail {
        animation: none;
    }
}

/* Responsive: hide illustration on small screens */
@media (max-width: 767px) {
    .auth-wrapper {
        /* reset negative margins used for full-bleed on desktop to prevent horizontal overflow on mobile */
        margin: 0;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        flex: 1;
        padding: 1.5rem 1.25rem;
    }
}

/* Chat Page */
.chat-layout {
    height: calc(100dvh - 140px);
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
}

.chat-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--neutral-stroke-rest);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.chat-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.chat-sidebar-toggle {
    display: none !important;
}

.chat-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    cursor: pointer;
}

@media (max-width: 767px) {
    .chat-layout {
        height: 100%;
        min-height: 0;
        position: relative;
    }

    .chat-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        background: var(--neutral-layer-2);
        transform: translateX(-100%);
        width: min(280px, 85vw);
        border-right: none;
    }

    .chat-sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
    }

    .chat-sidebar-overlay--open {
        display: block;
    }

    .chat-sidebar-toggle {
        display: inline-flex !important;
        margin-right: 4px;
    }

    .chat-input-send-label {
        display: none;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.chat-input-card {
    flex-shrink: 0;
    padding: 8px;
    border-radius: 0;
    border-top: 1px solid var(--neutral-stroke-rest);
    max-height: 200px;
}

@supports (field-sizing: content) {
    .chat-input-card fluent-text-area::part(control) {
        field-sizing: content;
        min-height: 1lh;
        max-height: 150px;
        overflow-y: auto;
    }
}


.semantic-search-clear-btn {
    padding: 0;
    text-decoration: underline;
}
