/*
 * brand.css — Editorial accents that go beyond Bb's component CSS.
 *
 * Loaded AFTER blazorblueprint.css so these classes can build on Bb's
 * tokens (defined in theme.css). Plain CSS, NOT Tailwind utilities.
 *
 * Mirrors the editorial layer in liena-carousel-elegance/src/index.css
 * so chrome (login, sidebar logo, dashboard hero) reads as the same
 * brand on both the public marketing site and the internal admin app.
 *
 * Fonts are pulled from Google Fonts via the <link> in App.razor, matching
 * the sibling marketing site's strategy. No self-hosted woff2 files; the
 * PRD's Font-hosting correction (2026-05-04) locks in CDN delivery.
 */

.font-playfair  { font-family: var(--font-serif); }
.font-cormorant { font-family: var(--font-display); }
.font-montserrat { font-family: var(--font-sans); }

/* Editorial gold (used for dividers, accent text on chrome surfaces). */
.lj-gold-text {
    background: linear-gradient(120deg, #b8975a 0%, #e7d3a3 35%, #b8975a 65%, #8c6f3e 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}

.lj-gold-line {
    background: linear-gradient(90deg, transparent 0%, #b8975a 20%, #e7d3a3 50%, #b8975a 80%, transparent 100%);
    height: 1px;
    border: 0;
}

/* Editorial reveal (mirrors the marketing site's `.lj-reveal`). */
.lj-reveal {
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.lj-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Editorial frame (mirrors `.lj-frame` from the marketing site). */
.lj-frame {
    position: relative;
    padding: 1.25rem;
}
.lj-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(184, 151, 90, 0.3);
    pointer-events: none;
}

/*
 * Auth (Identity area) chrome classes — used by the editorial Login etc.
 * pages once Phase 1b re-skins them. Defined here so the MVC pages can
 * use plain class attributes without needing a Razor component layer.
 */
.lj-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 768px) {
    .lj-auth-grid {
        grid-template-columns: 5fr 7fr;
    }
}
.lj-auth-watermark {
    background: linear-gradient(135deg, oklch(0.214 0.025 280), oklch(0.30 0.045 285));
    color: oklch(0.985 0.005 280);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.lj-auth-watermark-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.lj-auth-watermark img {
    max-width: 240px;
    width: 100%;
    height: auto;
}
.lj-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
}
.lj-auth-h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    margin: 0;
    color: var(--foreground);
}
.lj-auth-sub {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--muted-foreground);
    margin: 0.75rem 0 2rem 0;
}
.lj-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.375rem;
}
.lj-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lj-input:focus {
    outline: 0;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px oklch(0.689 0.135 295 / 0.2);
}
.lj-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--primary-foreground);
    background: var(--primary);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.lj-btn-primary:hover {
    background: oklch(0.30 0.040 285);
}

.lj-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--destructive-foreground);
    background: var(--destructive);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter 0.15s ease;
    text-decoration: none;
}
.lj-btn-danger:hover { filter: brightness(0.92); }

/* Validation error span / summary used by `<span asp-validation-for>` and
   `<div asp-validation-summary class="text-danger">`. Defined here so we
   don't depend on Bootstrap's `.text-danger` from the legacy bundle. */
.text-danger {
    color: var(--destructive);
    font-size: 0.8125rem;
}
.text-info {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Remember-me row on Login. */
.lj-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.lj-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

/* Footer link cluster on auth pages (forgot password / register / resend). */
.lj-auth-links {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}
.lj-auth-links p { margin: 0; }
.lj-auth-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.lj-auth-links a:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Generic editorial link (used inside paragraph copy on auth pages). */
.lj-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: color 0.15s ease;
}
.lj-link:hover { color: var(--accent); }

/* Status panel (replaces Bootstrap `.alert .alert-success/danger/warning`). */
.lj-status {
    margin: 0 0 1.5rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.45;
    background: var(--muted);
    color: var(--foreground);
}
.lj-status-success {
    border-color: rgba(184, 151, 90, 0.45);
    background: linear-gradient(120deg, rgba(231, 211, 163, 0.18), rgba(184, 151, 90, 0.08));
}
.lj-status-error {
    border-color: oklch(0.602 0.180 25 / 0.55);
    background: oklch(0.602 0.180 25 / 0.08);
    color: var(--destructive);
}
.lj-status-warning {
    border-color: rgba(184, 151, 90, 0.55);
    background: rgba(231, 211, 163, 0.20);
    color: var(--foreground);
}

/*
 * Manage area chrome — used by /Identity/Account/Manage/* pages.
 */
.lj-manage-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    font-family: var(--font-sans);
}
.lj-manage-header {
    margin-bottom: 2rem;
}
.lj-manage-header h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    color: var(--foreground);
}
.lj-manage-header .lj-gold-line {
    display: block;
    width: 6rem;
    margin: 0 0 0.75rem;
}
.lj-manage-header p {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--muted-foreground);
    margin: 0;
}
.lj-manage-h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 1.25rem 0;
    color: var(--foreground);
}
.lj-manage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .lj-manage-grid {
        grid-template-columns: 240px 1fr;
    }
}
.lj-manage-content {
    max-width: 480px;
}
.lj-manage-username {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin: -0.5rem 0 1.5rem 0;
}

.lj-manage-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
}
.lj-manage-nav-item { margin: 0; }
.lj-manage-nav-link {
    display: block;
    padding: 0.625rem 1rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.lj-manage-nav-link:hover {
    color: var(--foreground);
    background: var(--muted);
}
.lj-manage-nav-link.active {
    color: var(--primary);
    border-left-color: var(--accent);
    font-weight: 500;
}

/* Brand footer on auth pages (small wordmark under form on mobile). */
.lj-auth-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
}

/* Watermark fine print under the logo. */
.lj-auth-watermark-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: oklch(0.985 0.005 280 / 0.75);
    text-align: center;
    margin: 1.5rem 0 0;
    max-width: 22rem;
}

/*
 * Splitter — used by the website-product edit page to make the
 * gallery+media (left) and editable form (right) horizontally resizable.
 * The Bb-bundled Tailwind utility set doesn't include arbitrary heights
 * (h-[calc(...)]) or w-1.5, so we ship plain CSS for the bits that need it.
 */
.lj-split-container {
    display: flex;
    align-items: stretch;
}
.lj-split-handle {
    flex: 0 0 6px;
    cursor: col-resize;
    background: var(--border, oklch(0.92 0.004 280));
    border-radius: 3px;
    align-self: stretch;
    transition: background 120ms ease;
    touch-action: none;
}
.lj-split-handle:hover { background: oklch(from var(--ring, #b8975a) l c h / 0.40); }
.lj-split-handle:active { background: oklch(from var(--ring, #b8975a) l c h / 0.60); }

/*
 * Status pill — small rounded badge for processing state in compact lists
 * (e.g. WebsiteProductEditPage's media drag-and-drop list). Bb's bundled
 * Tailwind doesn't include the amber/emerald/rose palette, so we ship a
 * plain class and let callers set background/color/border-color inline.
 */
.lj-pill {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* BbToastProvider viewport fix (commerce-multishop Phase 4, found via e2e).
   BlazorBlueprint's shipped bundle is missing the `md:max-w-[420px]` variant
   its own toast viewport uses, so the (empty) viewport spans the full page
   width at top-right and swallows pointer events over the whole topbar — the
   shop switcher and account menu become unclickable. Cap the width ourselves
   and let events pass through the empty strip (toasts stay interactive). */
div.fixed[class*="max-h-screen"][class*="md:max-w-"] {
    max-width: 420px;
    pointer-events: none;
}
div.fixed[class*="max-h-screen"][class*="md:max-w-"] > * {
    pointer-events: auto;
}
