/* The Fury Social composer.
 *
 * Shared, because both the feed and your own profile have one. Loads after
 * /styles.css, which supplies the palette and the controls. */

.composer {
    padding: 16px 18px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(34, 39, 50, 0.92);
}
.composer:focus-within { border-color: var(--accent-dark); }

.composer-top { display: flex; align-items: flex-start; gap: 12px; }
.composer-face { border-radius: 50%; flex-shrink: 0; border: 1px solid var(--panel-border); }

/* Borderless: the box around it is the box. A second bordered rectangle
   inside a card is the look this page started with. */
.composer-text {
    border: 0;
    background: none;
    padding: 8px 0 0;
    font-size: 0.95rem;
    min-height: 44px;
    overflow: hidden;
}
.composer-text:focus { border: 0; }

.composer-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.composer-image { position: relative; }
.composer-image img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--panel-border);
}
.composer-image button {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
}

.composer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--panel-border);
    flex-wrap: wrap;
}
.composer-add { font-size: 0.82rem; }
.composer-post { padding: 8px 20px; }
.composer-state { min-height: 1em; }
.composer-error:empty { display: none; }
