/* Word Cloud Maker (/word-cloud-maker): views/SeoLanding/_WordCloudMakerDemo.cshtml */

.filter-landing-stage.word-cloud-stage {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    box-shadow: none;
}

.word-cloud-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.word-cloud-editor {
    display: grid;
    gap: 6px;
    width: 100%;
}

.word-cloud-text {
    font-size: 0.92rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 8.5em;
}

.word-cloud-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.word-cloud-status {
    flex: 1 1 10em;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.78;
}

.word-cloud-status:empty {
    display: none;
}

.word-cloud-picture {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
}

.word-cloud-controls [data-wc-for][hidden],
.word-cloud-controls [data-wc-list][hidden] {
    display: none !important;
}

.word-cloud-thumb {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 10%, transparent) center / contain no-repeat;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
}

.word-cloud-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Fill the stage (the default Format): the background covers the whole stage with the word cloud in the middle, as
   the Tessellation app fills its stage. The page's stage then stretches to the app's height (a 4:3 box where the app
   has no height of its own, as on a phone). */
.word-cloud-app.is-fill > .filter-landing-stage.word-cloud-stage {
    aspect-ratio: 4 / 3;
}

body.filter-app-mode .word-cloud-app.is-fill {
    align-items: stretch;
    min-height: 0;
}

body.filter-app-mode .word-cloud-app.is-fill > .filter-landing-stage.word-cloud-stage {
    align-self: stretch;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
}
