/* =========================================================
   VN-Biker Thema/Antwort Composer – Phase 1
   Datei: /forum/oeffentlich/css/thema_erstellen.css
   ========================================================= */

.thema-erstellen-main,
.thema-ansicht-main {
    width: min(100% - 24px, var(--vn-content-width, 1120px));
    margin: 0 auto;
    padding: 24px 0 34px;
}

.thema-composer {
    width: 100%;
    border-radius: 24px;
    padding: clamp(16px, 2.4vw, 24px);
    background: linear-gradient(180deg, rgba(10,12,15,.88), rgba(5,6,8,.82));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
    color: rgba(255,255,255,.94);
}

.thema-composer__kopf {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.thema-composer__kopf h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.1;
}

.thema-composer__kopf p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.62);
    font-size: .92rem;
}

.thema-composer__zurueck {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff !important;
    text-decoration: none !important;
}

.thema-composer__meldung,
.thema-composer__hinweis {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(80,20,20,.38);
    border: 1px solid rgba(255,120,120,.24);
    color: #fff;
}

.thema-composer__hp,
.thema-composer__file {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.thema-composer__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
    gap: 10px;
    margin-bottom: 10px;
}

.thema-composer__selectwrap {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.thema-composer__selectwrap span {
    color: rgba(255,255,255,.58);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.thema-composer select,
.thema-composer input[type="text"],
.thema-composer textarea,
.thema-composer .vn-select,
.thema-composer .vn-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16,18,22,.94), rgba(7,8,11,.92));
    color: rgba(255,255,255,.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 24px rgba(0,0,0,.18);
    font: inherit;
    outline: none;
}

.thema-composer select,
.thema-composer .vn-select {
    min-height: 42px;
    padding: 10px 40px 10px 13px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(245,184,55,.95) 50%),
        linear-gradient(135deg, rgba(245,184,55,.95) 50%, transparent 50%),
        linear-gradient(180deg, rgba(16,18,22,.94), rgba(7,8,11,.92));
    background-position: calc(100% - 21px) 18px, calc(100% - 14px) 18px, 0 0;
    background-size: 7px 7px, 7px 7px, 100% 100%;
    background-repeat: no-repeat;
}

.thema-composer option {
    background: #111418;
    color: #fff;
}

.thema-composer__titelzeile {
    position: relative;
    margin-bottom: 10px;
}

.thema-composer__titel {
    min-height: 48px;
    padding: 12px 76px 12px 14px;
    font-weight: 850;
    letter-spacing: .01em;
}

.thema-composer__counter {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: rgba(255,255,255,.48);
    font-size: .82rem;
    font-weight: 800;
    pointer-events: none;
}

.thema-composer__box {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10,12,15,.95), rgba(5,6,8,.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 38px rgba(0,0,0,.24);
}

.thema-composer__text {
    display: block;
    width: 100%;
    min-height: 170px;
    max-height: 60vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.96);
    padding: 15px 15px 10px;
    resize: none;
    line-height: 1.5;
    box-shadow: none;
}

.thema-composer__text:focus,
.thema-composer__titel:focus,
.thema-composer select:focus {
    border-color: rgba(245,184,55,.72);
    box-shadow: 0 0 0 3px rgba(245,184,55,.14), inset 0 1px 0 rgba(255,255,255,.08);
}

.thema-composer__text::placeholder,
.thema-composer__titel::placeholder {
    color: rgba(255,255,255,.38);
}

.thema-composer__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}

.thema-composer__tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.thema-composer__tool {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.thema-composer__tool:hover,
.thema-composer__tool.is-active {
    border-color: rgba(245,184,55,.56);
    background: rgba(245,184,55,.14);
}

.thema-composer__senden {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 15px;
    white-space: nowrap;
}

.thema-composer__senden:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.thema-composer__dropzone {
    margin-top: 10px;
    min-height: 74px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(245,184,55,.5);
    border-radius: 18px;
    background: rgba(245,184,55,.08);
    color: rgba(255,255,255,.84);
    font-weight: 800;
}

.thema-composer__attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thema-composer__attachment {
    width: 86px;
    height: 86px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

.thema-composer__attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thema-composer__panel,
.thema-composer__preview {
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.28);
}

.thema-composer__panel button {
    margin: 4px;
    min-height: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
}

.thema-composer__preview h2 {
    margin: 0 0 10px;
    font-size: .95rem;
    color: rgba(255,255,255,.72);
}

.thema-composer__previewbody {
    color: rgba(255,255,255,.94);
    line-height: 1.55;
}

.thema-schnellstart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 10px 0 16px;
}

.thema-schnellstart__input {
    min-height: 42px;
}

@media (max-width: 720px) {
    .thema-erstellen-main,
    .thema-ansicht-main {
        width: min(100% - 14px, var(--vn-content-width, 1120px));
        padding-top: 14px;
    }

    .thema-composer {
        border-radius: 20px;
        padding: 13px;
    }

    .thema-composer__meta {
        grid-template-columns: 1fr;
    }

    .thema-composer__text {
        min-height: 150px;
        font-size: 16px;
    }

    .thema-composer__toolbar {
        align-items: stretch;
    }

    .thema-composer__senden span {
        display: none;
    }
}

.thema-composer__attachment--file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    text-align: center;
}

.thema-composer__attachment--file i {
    color: rgba(245,184,55,0.94);
    font-size: 1.15rem;
}

.thema-composer__attachment--file span {
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Drag & Drop / Medien Phase 1.1 */
.thema-composer__dropzone[hidden] {
    display: none !important;
}

.thema-composer__dropzone {
    position: fixed;
    inset: 16px;
    z-index: 9990;
    min-height: 0;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(245,184,55,.82);
    border-radius: 28px;
    background: rgba(8,10,12,.82);
    color: rgba(255,255,255,.96);
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow: 0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
}

.thema-composer.is-dragging-files {
    outline: 1px solid rgba(245,184,55,.55);
    outline-offset: 6px;
}

.thema-composer__attachment {
    position: relative;
}

.thema-composer__attachment-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.thema-composer__attachment-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(245,184,55,.92);
    color: #12100a;
    font-size: .65rem;
    font-weight: 900;
}

.thema-composer__attachment--file small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.58);
    font-size: .68rem;
}
