/* css/scenes.css
 *
 * The Scenes tab and its dialog. Built on the location cards (.lc-, in
 * css/location.css) and the sketch dialog (.ai-sk-, in css/ai-images.css),
 * both loaded on the same pages. Namespaced .scn-.
 */

/* What is in the scene: the location and the people, each with its picture,
   or marked as needing one. */
.scn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.scn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px 2px 2px;
    border: 1px solid var(--border, #e6e3e0);
    border-radius: 14px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #4a4644;
}

.scn-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.scn-chip i {
    width: 24px;
    text-align: center;
    color: #b3aca6;
}

/* Needs a picture: dashed, like an empty dropzone. */
.scn-chip--missing {
    border-style: dashed;
    color: #8d8781;
    background: #faf8f3;
}

.scn-missing {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #8a6d3b;
}

.scn-missing i,
.scn-block i {
    margin-right: 4px;
}

/* The moment, unlabelled. Straight under the heading (no "Key scene" line
   between them) it gets its own gap, so the two do not run together. */
.scn-card .sc-card-name + .scn-moment {
    margin-top: 8px;
}

/* Remove from the list: a small x in the card's corner, over the picture when
   there is one. Quiet until hovered -- it is the writer's tidy-up, not the
   card's purpose. */
.scn-card {
    position: relative;
}

.scn-hide {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border, #e6e3e0);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #8d8781;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.scn-hide:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* No picture on the card: the x sits beside the heading, so leave it room. */
.scn-hide + .sc-card-body .sc-card-name {
    padding-right: 28px;
}

.scn-card .scn-go {
    margin-top: 2px;
}

.scn-card .sc-card-sub i {
    margin-right: 3px;
    color: var(--gold, #c9a84c);
}

/* ---------------------------------------------------------------- dialog */

/* Headings are stored as typed ("EXT. fOREST - mORNING") and shown in caps by
   CSS everywhere else -- the element list's AllCaps -- so here too. */
.scn-where {
    text-transform: uppercase;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-soft, #555);
}

#scn-restage {
    margin: 6px 0 4px;
}

.scn-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
}

.scn-pick {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 6px;
    border: 1px solid var(--border, #e6e3e0);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.scn-pick img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.scn-pick i {
    width: 28px;
    text-align: center;
    color: #b3aca6;
}

.scn-pick small {
    font-weight: 400;
    color: #8a6d3b;
}

.scn-pick--missing {
    border-style: dashed;
    background: #faf8f3;
}

/* "Add someone the scene doesn't name..." under the chips: half width, so it
   reads as a small extra rather than another field to fill in. */
.scn-add-row {
    margin: 2px 0 8px;
    max-width: 320px;
}

/* The ways out of a blocked scene: add the location, sketch what is missing. */
.scn-fixes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.scn-fixes .ai-sk-samples-btn i {
    margin-right: 5px;
}

/* Why Draw is switched off. Said, not just disabled. */
.scn-block {
    margin: 6px 0 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fdf6e3;
    font-size: 13px;
    line-height: 1.45;
    color: #6b5326;
    text-align: left;
}
