/* Mo's ShowPoster Creator. Matches the listings page gold, teal, and dark glass. */

.poster-maker {
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(0, 255, 204, .18), transparent 36%),
        linear-gradient(155deg, rgba(0, 48, 56, .94), rgba(0, 0, 0, .9));
    border-color: #00ffcc;
}

.poster-maker-kicker {
    margin: 0 0 8px;
    color: #00ffcc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.poster-maker h2 {
    color: #ffd700 !important;
    border-bottom: none !important;
    margin-bottom: 8px;
    padding-bottom: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: .04em;
}

.poster-maker-tagline {
    margin: 0 auto 12px;
    max-width: 720px;
    color: #fff6d8;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

.poster-maker-lead {
    margin: 0 auto 16px;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.55;
}

.poster-maker-open {
    background: #ffd700;
    color: #1a1200;
    border: 0;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    letter-spacing: .04em;
    padding: 14px 22px;
}

.poster-maker-open:hover,
.poster-maker-open:focus-visible {
    background: #ffe36b;
}

body.poster-open {
    overflow: hidden;
}

.poster-app[hidden],
.poster-step[hidden],
#poster-lightbox[hidden] {
    display: none !important;
}

.poster-app {
    position: fixed;
    inset: 0;
    z-index: 5000;
    overflow: auto;
    padding: 16px;
    background: rgba(0, 0, 0, .94);
}

.poster-app [hidden] {
    display: none !important;
}

.poster-app-panel {
    max-width: 1140px;
    margin: 0 auto 24px;
    padding: 18px;
    border-radius: 16px;
    border: 2px solid #ffd700;
    background: rgba(0, 0, 0, .92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .55);
    color: #ffffff;
}

.poster-app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.poster-app-bar p {
    margin: 0;
    color: #ffd700;
    font-weight: 900;
    letter-spacing: .04em;
}

.poster-progress {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.poster-progress button {
    min-height: 44px;
    border: 1px solid rgba(0, 255, 204, .35);
    border-radius: 999px;
    background: #06343a;
    color: #ffffff;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.poster-progress button.is-current {
    background: #ffd700;
    color: #1a1200;
    border-color: #ffd700;
}

.poster-progress button.is-done {
    background: #00cc88;
    color: #042018;
}

.poster-layout {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.poster-editor h3 {
    margin: 0 0 8px;
    color: #00ffcc;
    text-align: left;
}

.poster-help,
.poster-status,
.poster-fit {
    color: #d8fff8;
    line-height: 1.45;
}

.poster-status:empty,
.poster-fit:empty {
    display: none;
}

.poster-status.is-error,
.poster-fit.is-warn {
    color: #ffd166;
}

.poster-field {
    display: block;
    margin: 10px 0;
    text-align: left;
    font-weight: 800;
    color: #ffd700;
}

.poster-field input,
.poster-field textarea,
.poster-field select,
.poster-search input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 204, .45);
    background: rgba(0, 0, 0, .55);
    color: #ffffff;
    font: 16px Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.poster-venue-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 280px;
    overflow: auto;
}

.poster-venue {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, .35);
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
    cursor: pointer;
    font: 16px Arial, Helvetica, sans-serif;
}

.poster-venue:hover,
.poster-venue:focus-visible {
    border-color: #ffd700;
}

.poster-venue-name {
    display: block;
    font-weight: 800;
}

.poster-venue-town {
    display: block;
    margin-top: 2px;
    color: #00ffcc;
}

.poster-picked {
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 5px solid #00ffcc;
    background: rgba(255, 255, 255, .08);
    text-align: left;
}

.poster-picked strong {
    display: block;
    font-size: 20px;
}

.poster-picked span {
    display: block;
    margin: 4px 0 10px;
    color: #d8fff8;
}

.poster-ranges,
.poster-templates,
.poster-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poster-ranges button,
.poster-templates button,
.poster-sizes button,
.poster-btn {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #006699;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 14px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.poster-ranges button.is-on,
.poster-templates button.is-on,
.poster-sizes button.is-on,
.poster-event-tools .poster-btn.is-on,
.poster-btn.gold {
    background: #ffd700;
    color: #1a1200;
}

.poster-ranges button:hover,
.poster-templates button:hover,
.poster-sizes button:hover,
.poster-btn:hover {
    background: #0088cc;
}

.poster-btn.gold:hover,
.poster-ranges button.is-on:hover,
.poster-templates button.is-on:hover,
.poster-sizes button.is-on:hover,
.poster-event-tools .poster-btn.is-on:hover {
    background: #ffe36b;
}

.poster-templates button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 140px;
    text-align: left;
}

.poster-swatch {
    display: block;
    width: 100%;
    height: 28px;
    border-radius: 6px;
}

.poster-swatch.classic { background: linear-gradient(160deg, #2a1020, #8a1f33 55%, #ffb703); }
.poster-swatch.tropical { background: linear-gradient(160deg, #ffd29a, #c44b73 45%, #0e6e68); }
.poster-swatch.country { background: linear-gradient(160deg, #4a2a16, #f4e6cc 58%, #8c3a1e); }
.poster-swatch.modern { background: linear-gradient(160deg, #f3efe6, #123c40 42%, #e7b15a); }
.poster-swatch.industry { background: linear-gradient(160deg, #14081f, #ff2fb3 48%, #39f3ff); }
.poster-swatch.sunday { background: linear-gradient(160deg, #8fd4ff, #ffe7a3 50%, #1aa6a6); }
.poster-swatch.thxeve { background: linear-gradient(160deg, #4a1d12, #24100c 45%, #e7b15a); }
.poster-swatch.nyday { background: linear-gradient(160deg, #f7f1e4, #e8c872 55%, #8c6a2f); }
.poster-swatch.valentine { background: linear-gradient(160deg, #6b1230, #ff7aa2 50%, #ffd0de); }
.poster-swatch.patrick { background: linear-gradient(160deg, #0f6b3c, #08341f 40%, #d6f58a); }
.poster-swatch.easter { background: linear-gradient(160deg, #f7e9ff, #fff6d8 50%, #b7e3ff); }
.poster-swatch.memorial { background: linear-gradient(160deg, #0c2340, #f4f7fb 42%, #b31b34); }
.poster-swatch.mother { background: linear-gradient(160deg, #fff1f4, #f4b6c8 55%, #e7b15a); }
.poster-swatch.father { background: linear-gradient(160deg, #1d2a3a, #c4a574 60%, #121820); }
.poster-swatch.july4 { background: linear-gradient(160deg, #0c2340, #f4f7fb 40%, #b31b34); }
.poster-swatch.labor { background: linear-gradient(160deg, #16324f, #ffc478 55%, #b31b34); }
.poster-swatch.halloween { background: linear-gradient(160deg, #1a0d05, #ff7a1a 55%, #070406); }
.poster-swatch.veterans { background: linear-gradient(160deg, #10243f, #e8c872 50%, #b31b34); }
.poster-swatch.thanksgiving { background: linear-gradient(160deg, #f6e2c4, #c4622d 55%, #8c3a1e); }
.poster-swatch.christmas { background: linear-gradient(160deg, #123c2a, #b31b34 48%, #e8c872); }
.poster-swatch.nye { background: linear-gradient(160deg, #070708, #e8c872 46%, #d9dde6); }

.poster-holidays button {
    font-size: 13px;
    padding: 8px 10px;
}

.poster-event-tools {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.poster-event-tools .poster-btn {
    flex: 1;
}

.poster-event-list {
    max-height: 340px;
    overflow: auto;
    margin-top: 8px;
}

.poster-event-row {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    text-align: left;
}

.poster-event-row label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 700;
    color: #ffffff;
}

.poster-event-row input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.poster-event-meta {
    display: block;
    color: #ffd166;
    font-weight: 800;
}

.poster-note {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 204, .35);
    background: rgba(0, 0, 0, .45);
    color: #ffffff;
    font: 15px Arial, Helvetica, sans-serif;
}

.poster-images {
    display: grid;
    gap: 12px;
}

.poster-image-slot {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    text-align: left;
}

.poster-image-slot p {
    margin: 6px 0;
    color: #d8fff8;
}

.poster-image-slot img {
    display: block;
    max-width: 140px;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: rgba(0, 0, 0, .45);
    border-radius: 8px;
}

.poster-image-size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #f3f3f3;
    font-size: 14px;
    font-weight: 800;
}

.poster-image-size input[type="range"] {
    flex: 1;
    width: auto;
    min-height: 32px;
    accent-color: #ffd700;
}

.poster-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.poster-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.poster-preview-column {
    position: sticky;
    top: 8px;
}

#poster-print-root {
    background: #111;
    border-radius: 12px;
    padding: 10px;
}

#poster-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    margin: 0 auto;
    background: #000;
}

.poster-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.poster-actions .poster-btn,
.poster-actions a.poster-btn {
    text-decoration: none;
    text-align: center;
}

.poster-press {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 215, 0, .45);
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
}

.poster-press h3 {
    margin: 0 0 6px;
    color: #ffd700;
    font-size: 18px;
    letter-spacing: .04em;
}

.poster-press p {
    margin: 0 0 12px;
    color: #f3f3f3;
    font-size: 15px;
    line-height: 1.45;
}

.poster-finish {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poster-finish .poster-btn {
    width: 100%;
    text-align: center;
}

.poster-press-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.poster-crop {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
    color: #f3f3f3;
    font-size: 15px;
}

.poster-share-note {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.45;
}

.poster-app button:focus-visible,
.poster-app input:focus-visible,
.poster-app textarea:focus-visible,
.poster-app a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.poster-app.is-previewing .poster-editor,
.poster-app.is-previewing .poster-progress {
    display: none;
}

.poster-app.is-previewing .poster-layout {
    display: block;
}

.poster-app.is-previewing #poster-canvas {
    max-height: calc(100vh - 180px);
    width: auto;
    max-width: 100%;
}

@media (max-width: 860px) {
    .poster-app {
        padding: 8px;
    }

    .poster-layout,
    .poster-preview-column {
        display: block;
        position: static;
    }

    .poster-event-tools {
        flex-direction: column;
    }

    .poster-actions .poster-btn,
    .poster-nav .poster-btn,
    .poster-event-tools .poster-btn,
    .poster-maker-open {
        width: 100%;
        max-width: none;
    }

    #poster-canvas {
        max-height: none;
    }
}

@media print {
    body.poster-printing {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    body.poster-printing > *:not(#poster-maker-app) {
        display: none !important;
    }

    body.poster-printing > #poster-maker-app {
        display: block !important;
        position: static !important;
        inset: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body.poster-printing .poster-app-panel {
        border: 0;
        box-shadow: none;
        background: #ffffff;
        padding: 0;
        margin: 0;
        max-width: none;
    }

    body.poster-printing .poster-app-bar,
    body.poster-printing .poster-progress,
    body.poster-printing .poster-editor,
    body.poster-printing .poster-actions,
    body.poster-printing .poster-press,
    body.poster-printing .poster-share-note,
    body.poster-printing .poster-fit,
    body.poster-printing .poster-status {
        display: none !important;
    }

    body.poster-printing .poster-layout,
    body.poster-printing .poster-preview-column,
    body.poster-printing #poster-print-root {
        display: block !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body.poster-printing[data-poster-size="letter"] #poster-canvas {
        width: 7.7in !important;
        height: 10.2in !important;
        max-height: none !important;
    }

    body.poster-printing[data-poster-size="tabloid"] #poster-canvas {
        width: 10.2in !important;
        height: 16.2in !important;
        max-height: none !important;
    }

    body.poster-printing,
    body.poster-printing #poster-canvas {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
