/* vw-redirect.css — the interstitial rendered by redirectLandingPage.cshtml on _LayoutBare.
   Named after the feature that emits it, as vw-map.css is (see CLAUDE.md, Frontend conventions).
   This is the whole stylesheet for those pages: _LayoutBare loads no Bootstrap and no site CSS.

   The three background images arrive as custom properties on the element's style attribute
   rather than as an inline <style> block with three media queries in it. That keeps the only
   editor-controlled values in one attribute, and it is what makes the fallback chain promised
   by the field descriptions ("leeg laten gebruikt de mobiele achtergrond") free rather than
   another branch in Razor: var(--vw-redirect-bg-desktop, var(--vw-redirect-bg-tablet, …)). */

.vw-redirect-bg {
    position: fixed;
    inset: -20px; /* the blur eats into the edges; -20px keeps it off-screen instead of grey */
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--vw-redirect-bg-mobile);
    pointer-events: none;
    filter: blur(8px);
}

.vw-redirect-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vw-redirect-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
}

.vw-redirect-illustration {
    position: relative;
    margin: 0 auto -1px; /* -1px closes the hairline between illustration and dialog */
    width: 100%;
    max-width: 720px;
    pointer-events: none;
    z-index: 1;
}

.vw-redirect-illustration__img {
    display: block;
    width: 100%;
    height: auto;
}

.vw-redirect-dialog {
    background: rgba(20, 20, 20, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #fff;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    z-index: 2;
}

.vw-redirect-dialog__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.vw-redirect-dialog__header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.vw-redirect-dialog p {
    margin: 0 0 0.65rem;
    line-height: 1.45;
    color: #fff;
    font-size: 1rem;
}

.vw-redirect-dialog__body {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.vw-redirect-dialog__body p {
    margin: 0 0 0.65rem;
}

.vw-redirect-dialog__body p:last-child {
    margin-bottom: 0;
}

.vw-redirect-dialog__check {
    position: relative;
    padding-left: 1.85rem;
}

.vw-redirect-dialog__check::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362c554' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.vw-redirect-dialog__countdown {
    font-weight: 700;
}

.vw-redirect-dialog__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.vw-redirect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffd400;
    color: #1a1a1a;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.vw-redirect-btn:hover,
.vw-redirect-btn:focus {
    background: #ffe04d;
    color: #1a1a1a;
}

/* Live has no visible focus ring here at all: the button is the only focusable thing on the
   page and a keyboard visitor could not see where they were. */
.vw-redirect-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.vw-redirect-btn__icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.vw-redirect-dialog__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.vw-redirect-dialog__logo-img {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 2.5rem;
}

@media (min-width: 768px) {
    .vw-redirect-bg {
        background-image: var(--vw-redirect-bg-tablet, var(--vw-redirect-bg-mobile));
    }

    .vw-redirect-dialog {
        padding: 2rem 2.25rem;
    }

    .vw-redirect-dialog__header {
        gap: 0.85rem;
        margin: 0 0 1.25rem;
    }

    .vw-redirect-dialog__header h1 {
        font-size: 1.875rem;
    }

    .vw-redirect-dialog__body {
        font-size: 1.15rem;
    }

    .vw-redirect-dialog__logo-img {
        max-height: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .vw-redirect-bg {
        background-image: var(--vw-redirect-bg-desktop, var(--vw-redirect-bg-tablet, var(--vw-redirect-bg-mobile)));
    }
}

/* The blur is decoration; the transition on the button is not worth a vestibular reaction. */
@media (prefers-reduced-motion: reduce) {
    .vw-redirect-btn {
        transition: none;
    }
}
