/* ============================================================================
   Sulubook brand styles
   Palette: Mauve, Soft Periwinkle, Dusty Grape, Space Indigo, Frozen Lake
   ========================================================================== */

:root {
    /* Core palette */
    --mauve: #dabfff;
    --soft-periwinkle: #907ad6;
    --dusty-grape: #4f518c;
    --space-indigo: #2c2a4a;
    --frozen-lake: #7fdeff;

    /* Semantic aliases */
    --brand-dark: var(--space-indigo);
    --brand-primary: var(--soft-periwinkle);
    --brand-accent: var(--frozen-lake);
    --brand-muted: var(--dusty-grape);
    --brand-light: var(--mauve);

    /* Signature gradient (uses the full palette) */
    --brand-gradient: linear-gradient(90deg, var(--mauve), var(--soft-periwinkle), var(--dusty-grape), var(--space-indigo), var(--frozen-lake));
    --brand-gradient-diagonal: linear-gradient(135deg, var(--soft-periwinkle), var(--dusty-grape), var(--space-indigo));
}

/* Page wrapper makes the footer stick to the bottom on short pages
   (MudMainContent is a flex column inside the layout). */
.sulubook-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--mud-appbar-height, 64px));
}

    .sulubook-page > .mud-container {
        flex: 1 0 auto;
    }

/* ----------------------------------------------------------------------------
   App bar brand wordmark
   -------------------------------------------------------------------------- */
.sulubook-brand {
    font-weight: 700;
    letter-spacing: .5px;
    background: linear-gradient(90deg, #ffffff, var(--mauve), var(--frozen-lake));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ----------------------------------------------------------------------------
   Footer  (#2C2A4A as requested)
   -------------------------------------------------------------------------- */
.sulubook-footer {
    flex-shrink: 0;
    margin-top: 2.5rem;
    background-color: var(--space-indigo);
    color: #e9e5ff;
}

/* Thin multi-colour accent strip across the very top of the footer. */
.sulubook-footer__accent {
    height: 4px;
    width: 100%;
    background: var(--brand-gradient);
}

.sulubook-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
}

.sulubook-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

    .sulubook-footer__brand .mud-icon-root {
        color: var(--frozen-lake);
    }

.sulubook-footer__tagline {
    color: var(--mauve);
    font-size: .95rem;
}

.sulubook-footer__copy {
    margin-left: auto;
    color: #b7b1d6;
    font-size: .85rem;
}

@media (max-width: 600px) {
    .sulubook-footer__copy {
        margin-left: 0;
    }
}

/* ----------------------------------------------------------------------------
   Accents that lean on the palette
   -------------------------------------------------------------------------- */

/* Active nav link gets a periwinkle highlight + frozen-lake accent bar. */
.mud-nav-link.active {
    color: #ffffff !important;
    background: rgba(144, 122, 214, .22);
    border-left: 3px solid var(--frozen-lake);
}

/* Logout button styled to match the nav links exactly. */
.mud-navmenu form > .mud-nav-link {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

/* ----------------------------------------------------------------------------
   Landing page background
   Full-viewport BookingTables.jpg behind the content, softened with opacity and
   a palette-tinted overlay so foreground text/cards stay readable. The fixed
   pseudo-element covers the whole page regardless of content height.
   -------------------------------------------------------------------------- */
.landing-page {
    position: relative;
    min-height: calc(100vh - var(--mud-appbar-height, 64px));
}

    /* The photo layer (kept faint via opacity). */
    .landing-page::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        background-image: url("../img/BookingTables.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: .65;
        pointer-events: none;
    }

    /* A subtle brand-tinted wash on top of the photo for cohesion + contrast. */
    .landing-page::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: linear-gradient(160deg, rgba(246, 242, 255, .82) 0%, rgba(238, 246, 255, .78) 100%);
        pointer-events: none;
    }

/* ----------------------------------------------------------------------------
   Centered auth pages (Login / Register)
   Vertically + horizontally centers the auth card(s) within the viewport and
   keeps the form column from stretching too wide on large screens.
   -------------------------------------------------------------------------- */
.sulubook-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--mud-appbar-height, 64px) - 6rem);
    width: 100%;
    padding: 1.5rem 0;
}

    /* Centered, brand-coloured page heading. */
    .sulubook-auth > .mud-typography-h3 {
        text-align: center;
        color: var(--space-indigo);
        font-weight: 700;
    }

    /* Constrain the grid width so centered cards stay comfortable to read. */
    .sulubook-auth > .mud-grid {
        width: 100%;
        max-width: 960px;
    }

/* Reusable brand banner you can drop on landing/marketing sections. */
.sulubook-hero {
    background: var(--brand-gradient-diagonal);
    color: #ffffff;
    border-radius: 14px;
    padding: 2.25rem 2rem;
    box-shadow: 0 12px 30px rgba(44, 42, 74, .28);
}

    .sulubook-hero h1,
    .sulubook-hero h2,
    .sulubook-hero .mud-typography {
        color: #ffffff;
    }

/* ----------------------------------------------------------------------------
   Branded MudPaper cards
   A glassy, gradient-edged surface with a soft palette wash, a coloured top
   accent strip, depth, and a gentle hover lift. Apply via the `sulubook-paper`
   class on any <MudPaper>.
   -------------------------------------------------------------------------- */
.sulubook-paper.mud-paper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    /* Soft tinted wash from the lighter end of the palette. */
    background: linear-gradient(160deg, #ffffff 0%, #f6f2ff 55%, #eef6ff 100%);
    /* Gradient "border" via a layered background clip so corners stay rounded. */
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(160deg, #ffffff 0%, #f6f2ff 55%, #eef6ff 100%), var(--brand-gradient);
    box-shadow: 0 14px 38px -16px rgba(44, 42, 74, .45), 0 2px 6px rgba(44, 42, 74, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    /* Coloured accent strip across the top edge. */
    .sulubook-paper.mud-paper::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: var(--brand-gradient);
    }

    /* Subtle decorative glow in the corner for a premium feel. */
    .sulubook-paper.mud-paper::after {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(127, 222, 255, .35), transparent 70%);
        pointer-events: none;
    }

    .sulubook-paper.mud-paper:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px -18px rgba(44, 42, 74, .55), 0 4px 10px rgba(44, 42, 74, .12);
    }

    /* Keep text comfortably above the decorative layers. */
    .sulubook-paper.mud-paper > * {
        position: relative;
        z-index: 1;
    }

    /* Headings inside a branded card pick up the deep indigo. */
    .sulubook-paper.mud-paper .mud-typography-h4,
    .sulubook-paper.mud-paper .mud-typography-h5 {
        color: var(--space-indigo);
        font-weight: 700;
    }

/* Feature / call-to-action variant: a bold gradient surface with light text. */
.sulubook-paper--feature.mud-paper {
    background: var(--brand-gradient-diagonal);
    background-image: var(--brand-gradient-diagonal), var(--brand-gradient);
    box-shadow: 0 18px 44px -14px rgba(44, 42, 74, .6);
}

    .sulubook-paper--feature.mud-paper::after {
        background: radial-gradient(circle, rgba(218, 191, 255, .35), transparent 70%);
    }

    .sulubook-paper--feature.mud-paper .mud-typography,
    .sulubook-paper--feature.mud-paper .mud-typography-h4,
    .sulubook-paper--feature.mud-paper .mud-typography-h5 {
        color: #ffffff;
    }

    /* CTA button reads as frozen-lake-on-indigo for strong contrast. */
    .sulubook-paper--feature.mud-paper .mud-button-filled {
        background-color: var(--frozen-lake);
        color: var(--space-indigo);
        font-weight: 600;
    }

        .sulubook-paper--feature.mud-paper .mud-button-filled:hover {
            background-color: #a4e8ff;
        }

/* Success / confirmation variant: minty frozen-lake accent edge. */
.sulubook-paper--success.mud-paper {
    background-image: linear-gradient(160deg, #ffffff 0%, #eef6ff 100%), linear-gradient(90deg, var(--frozen-lake), var(--soft-periwinkle));
}

    .sulubook-paper--success.mud-paper::before {
        background: linear-gradient(90deg, var(--frozen-lake), var(--soft-periwinkle));
    }

/* ----------------------------------------------------------------------------
   Branded MudCard surfaces
   Mirrors the landing-page `sulubook-paper` look (gradient edge, soft wash, top
   accent strip, corner glow, hover lift) but targets MudCard's structure so the
   dashboard cards match. Apply via the `sulubook-card` class on any <MudCard>.
   -------------------------------------------------------------------------- */
.sulubook-card.mud-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    /* Soft tinted wash + gradient "border" via layered background clip. */
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(160deg, #ffffff 0%, #f6f2ff 55%, #eef6ff 100%), var(--brand-gradient);
    box-shadow: 0 14px 38px -16px rgba(44, 42, 74, .45), 0 2px 6px rgba(44, 42, 74, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    /* Coloured accent strip across the top edge. */
    .sulubook-card.mud-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: var(--brand-gradient);
        z-index: 2;
    }

    /* Subtle decorative glow in the corner for a premium feel. */
    .sulubook-card.mud-card::after {
        content: "";
        position: absolute;
        top: -70px;
        right: -70px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(127, 222, 255, .30), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .sulubook-card.mud-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px -18px rgba(44, 42, 74, .55), 0 4px 10px rgba(44, 42, 74, .12);
    }

    /* Keep the card's header/content above the decorative glow layer. */
    .sulubook-card.mud-card > .mud-card-header,
    .sulubook-card.mud-card > .mud-card-content,
    .sulubook-card.mud-card > .mud-card-actions {
        position: relative;
        z-index: 1;
    }

    /* Card title picks up the deep indigo and a hairline brand divider. */
    .sulubook-card.mud-card > .mud-card-header {
        padding-top: 1.25rem;
    }

        .sulubook-card.mud-card > .mud-card-header .mud-typography-h6 {
            color: var(--space-indigo);
            font-weight: 700;
        }

/* ----------------------------------------------------------------------------
   Branded MudExpansionPanels surfaces
   Mirrors the `sulubook-card` look (gradient edge, soft wash, top accent strip,
   rounded corners, hover lift) but targets MudBlazor's expansion-panel structure
   so the dashboard panels match. Apply via the `sulubook-expansion` class on the
   <MudExpansionPanels> element.
   -------------------------------------------------------------------------- */
.sulubook-expansion.mud-expansion-panels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
}

    /* Each panel becomes a branded card surface. */
    .sulubook-expansion.mud-expansion-panels .mud-expand-panel {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        /* Soft tinted wash + gradient "border" via layered background clip. */
        border: 1px solid transparent;
        background-origin: border-box;
        background-clip: padding-box, border-box;
        background-image: linear-gradient(160deg, #ffffff 0%, #f6f2ff 55%, #eef6ff 100%), var(--brand-gradient);
        box-shadow: 0 14px 38px -16px rgba(44, 42, 74, .45), 0 2px 6px rgba(44, 42, 74, .08);
        transition: transform .25s ease, box-shadow .25s ease;
    }

        /* Coloured accent strip across the top edge. */
        .sulubook-expansion.mud-expansion-panels .mud-expand-panel::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 5px;
            background: var(--brand-gradient);
            z-index: 2;
        }

        .sulubook-expansion.mud-expansion-panels .mud-expand-panel:hover {
            transform: translateY(-4px);
            box-shadow: 0 22px 50px -18px rgba(44, 42, 74, .55), 0 4px 10px rgba(44, 42, 74, .12);
        }

        /* Remove MudBlazor's default dividers/borders between stacked panels so the
           rounded card edges read cleanly. */
        .sulubook-expansion.mud-expansion-panels .mud-expand-panel.mud-panel-expanded,
        .sulubook-expansion.mud-expansion-panels .mud-expand-panel + .mud-expand-panel {
            margin-top: 0;
        }

        .sulubook-expansion.mud-expansion-panels .mud-expand-panel::after {
            display: none;
        }

        /* Keep the header and content above the gradient border layer. */
        .sulubook-expansion.mud-expansion-panels .mud-expand-panel-header {
            position: relative;
            z-index: 1;
            padding-top: 1.1rem;
        }

            /* Panel title picks up the deep indigo, matching card headers. */
            .sulubook-expansion.mud-expansion-panels .mud-expand-panel-header .mud-expand-panel-text,
            .sulubook-expansion.mud-expansion-panels .mud-expand-panel-header .mud-typography {
                color: var(--space-indigo);
                font-weight: 700;
            }

        .sulubook-expansion.mud-expansion-panels .mud-expand-panel-content {
            position: relative;
            z-index: 1;
        }

/* Branded scrollbar (WebKit/Chromium). */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #ece8fb;
}

::-webkit-scrollbar-thumb {
    background: var(--soft-periwinkle);
    border-radius: 8px;
    border: 3px solid #ece8fb;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dusty-grape);
    }

/* Text-selection highlight on brand. */
::selection {
    background: var(--mauve);
    color: var(--space-indigo);
}

/* ----------------------------------------------------------------------------
   Venue logo
   Renders the restaurant's uploaded logo (or the bundled default) on the owner
   dashboard header and the public booking page. The image is served from
   /api/venues/{slug}/logo and constrained to a tidy, rounded box.
   -------------------------------------------------------------------------- */
.sulubook-venue-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .sulubook-venue-logo img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        border-radius: 14px;
        background: #ffffff;
        padding: 6px;
        box-shadow: 0 6px 18px -8px rgba(44, 42, 74, .35), 0 1px 3px rgba(44, 42, 74, .08);
    }

/* Stripe signup pricing cards: make the plan's post-form (and its button) fill the card width. */
.sulubook-plan-form {
    width: 100%;
    margin: 0;
}

/* Inline post-form used in toolbars/headers (e.g. the dashboard's Manage subscription button)
   so the wrapping form doesn't take a line of its own or stretch the button. */
.sulubook-inline-form {
    display: inline-flex;
    margin: 0;
}

