/* ================================================================
   19-compose.css: the "Stir Writs" compose card (owner 2026-09-28).
   The card reuses the finished-post classes (.fp-card-clip / .fp-band / .fp-card-body / .fp-avatar-ring /
   .fp-card-footer from css/16-post-card.css), so it reads as the post it will become. This file only adds
   what a composer needs: the post-type dropdown in the type-label spot, the "me versus opponent" header
   for Spark raps / Lob Obol, the image preview, and "Post Sop" centred on the card's bottom edge.
   The card's look follows #feed-inline-slot[data-type] (set by js/09f-compose-card.js fccApplyType).
================================================================= */

.feed-compose-slot#feed-inline-slot {
  position: relative;
  margin: 8px 0 30px;            /* room for the half of "Post Sop" that hangs below the card */
  flex-shrink: 0;
  animation: slotAppear 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slotAppear {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
#feed-inline-slot .fcc-card { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.fcc-chain-banner {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 6px 10px;
  font-size: 10px; color: var(--blue); border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
}

/* Author (non-clickable, like a finished post's header) */
#feed-inline-slot .fcc-author .fp-display-name { cursor: default; }
#feed-inline-slot .fcc-author .fp-meta-sub { margin-bottom: 4px; }

/* Body: the segment cell sized like a finished post's palindrome line */
#feed-inline-slot .fc-cell { margin: 4px 0 6px; font-size: 15px; min-height: 40px; }
#feed-inline-slot[data-type="wondered_now"] #fcc-cell::after { content: "?"; opacity: 0.35; align-self: center; padding: 0 4px; }

/* "Lay art, rope portrayal" (owner 2026-09-29): a clickable upload field with no text, then the image itself
   in the same box a finished post uses, with a small x to take it off again. */
#feed-inline-slot .fcc-art { display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; }
#feed-inline-slot .fcc-art-drop {
  display: flex; align-items: center; justify-content: center; height: 120px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--theme) 45%, var(--line)); border-radius: 12px;
  color: color-mix(in srgb, var(--theme) 70%, var(--faint)); transition: background 0.12s, border-color 0.12s;
}
#feed-inline-slot .fcc-art-drop:hover { background: color-mix(in srgb, var(--theme) 8%, transparent); border-color: var(--theme); }
#feed-inline-slot .fcc-art-drop[hidden] { display: none; }
#feed-inline-slot .fcc-art-drop .ico { width: 34px; height: 34px; stroke-width: 1.6; }
#feed-inline-slot .fcc-img-preview { position: relative; padding: 0; min-height: 0; }
#feed-inline-slot .fcc-img-preview[hidden] { display: none; }
#feed-inline-slot .fcc-img-preview img { max-width: 100%; max-height: 360px; border-radius: 10px; display: block; }
#feed-inline-slot .fcc-img-clear {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}
#feed-inline-slot .fcc-img-clear:hover { background: var(--red); }

/* "No, it poll option": the question (a "?" after it) and 2 to 5 options (a round bullet before each), every one
   an already-connected palindrome Segment; + adds an option, x removes one (never below two). No text labels. */
#feed-inline-slot .fcc-poll { display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; }
#feed-inline-slot .fcc-poll-q { position: relative; font-weight: 700; }
#feed-inline-slot .fcc-poll-q::after { content: "?"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); opacity: 0.45; font-size: 18px; }
#feed-inline-slot .fcc-poll-opts { display: flex; flex-direction: column; gap: 6px; }
#feed-inline-slot .fcc-poll-row { display: flex; align-items: center; gap: 8px; }
#feed-inline-slot .fcc-poll-row::before {
  content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--theme) 70%, var(--line));
}
#feed-inline-slot .fcc-poll-opt { flex: 1; min-width: 0; margin: 0; }
#feed-inline-slot .fcc-poll-q.fc-cell { margin: 0; }
#feed-inline-slot .fcc-poll-del {
  flex-shrink: 0; width: 24px; height: 24px; border: none; border-radius: 50%; background: none;
  color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1;
}
#feed-inline-slot .fcc-poll-del:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
#feed-inline-slot .fcc-poll-del[hidden] { visibility: hidden; display: inline-block; }
#feed-inline-slot .fcc-poll-add {
  align-self: center; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--theme) 55%, var(--line)); background: none; color: var(--theme);
  display: flex; align-items: center; justify-content: center;
}
#feed-inline-slot .fcc-poll-add[hidden] { display: none; }
/* A required field left empty glows red once (the poll question/options, the art upload field). */
@keyframes fcc-need-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 55%, transparent); } }
#feed-inline-slot .fcc-need { animation: fcc-need-glow 0.85s ease-in-out 1; border-radius: 12px; }
/* The abandon control: a trash icon + X */
#feed-inline-slot .feed-slot-cancel { display: inline-flex; align-items: center; gap: 4px; }
#feed-inline-slot .fcc-pick-btn { display: inline-flex; align-items: center; gap: 4px; }

/* Type-driven visibility */
#feed-inline-slot:is([data-type="spark_raps"], [data-type="lob_obol"]) .fcc-solo-only { display: none; }
#feed-inline-slot:not([data-type="art_xtra"]) .fcc-art-only { display: none; }
#feed-inline-slot:not([data-type="poll_lop"]) .fcc-poll-only { display: none; }
#feed-inline-slot:is([data-type="spark_raps"], [data-type="lob_obol"]) .fcc-basic-only { display: none !important; }
/* Battles: no avatar column, so the footer starts at the card's own padding */
#feed-inline-slot:is([data-type="spark_raps"], [data-type="lob_obol"]) .fp-card-footer { padding-left: 14px; }

/* Footer: "Post Sop" hangs centred on the bottom edge; keep its upper half clear of footer content */
#feed-inline-slot .fcc-footer { padding-bottom: 20px; }
#feed-inline-slot .fcc-footer .fp-actions { row-gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
#feed-inline-slot .fcc-length { font-size: 10px; color: var(--faint); font-family: var(--mono); letter-spacing: 0.04em; }
#feed-inline-slot .fcc-post-btn {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  z-index: 3; padding: 7px 26px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent);
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  transition: filter 0.12s, transform 0.12s;
}
#feed-inline-slot .fcc-post-btn:hover { filter: brightness(1.08); }
body.dark-mode #feed-inline-slot .fcc-post-btn { color: var(--bg0); }

/* Post-type control: sits where a finished post shows its type label (footer, far right) */
#feed-inline-slot .fcc-type-wrap { position: relative; margin-left: auto; }
#feed-inline-slot .fp-actions .fcc-type-btn {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); border-radius: 999px;
  padding: 2px 9px; background: color-mix(in srgb, var(--amber) 8%, transparent);
}
#feed-inline-slot .fp-actions .fcc-type-btn:hover { background: color-mix(in srgb, var(--amber) 16%, transparent); }
#feed-inline-slot .fp-actions .fcc-type-static { cursor: default; }
.fcc-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.8;
}
.fcc-type-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 150px;
  display: flex; flex-direction: column; padding: 4px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.fcc-type-menu[hidden] { display: none; }
.fcc-type-opt {
  text-align: left; border: none; background: transparent; cursor: pointer;
  padding: 7px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--txt);
}
.fcc-type-opt:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.fcc-type-opt.active { color: var(--amber); }

/* "Me versus opponent" header (Spark raps / Lob Obol), mirroring the finished battle card's .rap-header */
#feed-inline-slot .fcc-versus:empty { display: none; }
#feed-inline-slot .fcc-vs-row { margin: 2px 0 8px; }
#feed-inline-slot .fcc-opp { cursor: pointer; border-radius: 10px; padding: 2px 4px; transition: background 0.12s; }
#feed-inline-slot .fcc-opp:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
#feed-inline-slot .fcc-opp.locked { cursor: default; background: none; }
#feed-inline-slot .fcc-opp-empty {
  display: flex; align-items: center; justify-content: center;
  background: transparent !important; color: var(--faint);
  border: 1.5px dashed var(--faint); font-weight: 800;
}
#feed-inline-slot .fcc-opp-dummy { color: var(--faint); }
#feed-inline-slot .fcc-opp-picker { position: relative; margin: -2px 0 8px auto; width: min(260px, 100%); }
#feed-inline-slot .fcc-opp-picker[hidden] { display: none; }
#feed-inline-slot #fcc-opp-input {
  width: 100%; box-sizing: border-box; padding: 6px 10px; font-size: 12px; font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--txt);
}
#feed-inline-slot .fcc-opp-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  display: flex; flex-direction: column; padding: 4px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
#feed-inline-slot .fcc-opp-list:empty { display: none; }
#feed-inline-slot .fcc-opp-item {
  display: flex; align-items: center; gap: 8px; text-align: left; border: none; background: none;
  padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 12px; font-family: var(--mono); color: var(--txt);
}
#feed-inline-slot .fcc-opp-item:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); }
#feed-inline-slot .fcc-opp-av {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800;
}
#feed-inline-slot .fcc-timers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0 0 8px; }
