/* =====================================================================
 * submit.css — فۆرمی ناردنی بابەتی نووسەری میوان (#lk-modal-submit لە inc/icon-bar.php)
 *   - پەنجەرەی تەواو شاشە + دوگمەی × ی داخستن
 *   - ستوونی ڕاست: تابی «بابەت» و «نووسەر»؛ ستوونی چەپ: پۆل، تاگ، وێنە
 *   - خانەکان بە شێوەی Material Outlined: لیبڵ لەسەر هێڵی چوارچێوە دەچێتە سەرەوە (وەک وێنەی نموونە)
 *   - ئەدیتۆری مارکداون: ئامرازەکان + ناحیەی نووسین + پێشبینین
 * ڕەنگەکان لە گۆڕاوەکانی single.css دێن، بۆیە تێمی شەو/کاهی خۆکار کار دەکات
 * ===================================================================== */
#lk-modal-submit, #lk-modal-login { --sub: #5b0be8; --sub-soft: rgba(91,11,232,.12); }
html[data-theme="dark"] #lk-modal-submit, html[data-theme="dark"] #lk-modal-login { --sub: #a98bff; --sub-soft: rgba(169,139,255,.16); }

/* ───── تەواو شاشە ───── */
.lk-modal.lk-modal-full { padding: 0; align-items: stretch; background: var(--lk-card); }
.lk-sheet.lk-sheet-full { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; overflow: auto; animation: none; background: var(--lk-card); }
.lk-sheet-full .lk-sheet-head { position: sticky; top: 0; z-index: 5; margin: 0; padding: .8rem 1.4rem; background: var(--lk-card); border-bottom: 1px solid var(--lk-line); }
.lk-sheet-full .lk-x { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
.lk-sub { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1rem 1.4rem 0; box-sizing: border-box; flex: 1; display: flex; flex-direction: column; }
.lk-sub-note { margin: 0 0 .6rem; color: var(--lk-muted); font-size: .85rem; line-height: 2; }

/* ───── ڕێک: ڕاست = تاب‌ەکان، چەپ = پۆل/تاگ/وێنە ───── */
.lk-sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.lk-stabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--lk-line); margin-bottom: .6rem; }
.lk-stab { border: 0; background: none; padding: .7rem 1.4rem; font: inherit; font-weight: 700; color: var(--lk-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.lk-stab:hover { color: var(--lk-text); }
.lk-stab.is-on { color: var(--sub); border-bottom-color: var(--sub); }
.lk-stab.has-err::after { content: "•"; color: #e0455b; margin-inline-start: .35rem; }
.lk-pane { display: none; } .lk-pane.is-on { display: block; animation: lkFade .2s both; }
.lk-sub-side { padding-top: calc(2.6rem + .6rem); }
.lk-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }

/* ───── خانەی Material Outlined (لیبڵ لەسەر هێڵ) ───── */
.lk-f { position: relative; margin: 1.15rem 0 .5rem; font-size: .95rem; }
.lk-f input[type="text"], .lk-f input[type="email"], .lk-f input[type="password"], .lk-f select, .lk-f textarea {
  display: block; width: 100%; box-sizing: border-box; padding: 1.05rem .95rem; font: inherit; color: var(--lk-text); background: transparent;
  border: 1.5px solid var(--lk-line); border-radius: 8px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.lk-f select { padding-inline-end: 2.2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left .7rem center / 1.2rem; }
.lk-f select option { color: #222; background: #fff; }
.lk-f textarea { resize: vertical; line-height: 1.9; min-height: 5.2rem; }
.lk-f > label { position: absolute; right: .75rem; top: 1.05rem; padding: 0 .4rem; background: var(--lk-card); color: var(--lk-muted); pointer-events: none; transition: top .15s, font-size .15s, color .15s; line-height: 1.2; max-width: calc(100% - 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* لیبڵ دەچێتە سەر هێڵ: کاتێک فۆکەس هەیە، یان نووسراوە، یان خانەکە «fixed» ـە */
.lk-f input:focus ~ label, .lk-f input:not(:placeholder-shown) ~ label,
.lk-f textarea:focus ~ label, .lk-f textarea:not(:placeholder-shown) ~ label,
.lk-f-fixed > label { top: -.55rem; font-size: .74rem; }
.lk-f input:focus, .lk-f select:focus, .lk-f textarea:focus { outline: 0; border: 2px solid var(--sub); padding: calc(1.05rem - .5px) calc(.95rem - .5px); box-shadow: none; }
.lk-f input:focus ~ label, .lk-f textarea:focus ~ label, .lk-f:focus-within > label { color: var(--sub); }
.lk-f small { display: block; margin: .3rem .3rem 0; font-size: .74rem; color: var(--lk-muted); line-height: 1.8; }
.lk-f.is-bad input, .lk-f.is-bad select, .lk-f.is-bad textarea, .lk-f.is-bad .lk-ed-box { border-color: #e0455b; }
.lk-f.is-bad > label { color: #e0455b; }
.lk-cnt.is-over { color: #e0455b; }
.lk-socs .lk-f input { text-align: left; } .lk-socs .lk-f > label { right: auto; left: .75rem; }

/* ───── وێنە ───── */
.lk-filebox { border: 1.5px dashed var(--lk-line); border-radius: 8px; padding: 1.2rem .9rem .8rem; }
.lk-filebox input[type="file"] { display: block; width: 100%; font-size: .82rem; }
.lk-filebox > label { background: var(--lk-card); }
.lk-filebox.is-bad { border-color: #e0455b; }
.lk-imgprev { display: flex; align-items: center; gap: .7rem; margin-top: .7rem; }
.lk-imgprev[hidden] { display: none; }
.lk-imgprev img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--lk-line); }
.lk-imgprev em { font-style: normal; font-size: .75rem; color: var(--lk-muted); word-break: break-all; }

/* ───── ئەدیتۆری مارکداون (وەک وێنەی نموونە) ───── */
.lk-editor { margin-top: 1.4rem; }
.lk-ed-box { border: 1.5px solid var(--lk-line); border-radius: 18px; overflow: hidden; background: var(--lk-card); }
.lk-editor:focus-within .lk-ed-box { border-color: var(--sub); }
.lk-ed-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem; padding: .7rem .6rem; background: color-mix(in srgb, var(--lk-surface) 85%, var(--lk-accent-soft)); border-bottom: 1px solid var(--lk-line); }
.lk-edb { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 10px; background: none; color: var(--lk-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 1.15rem; transition: background .15s, color .15s; }
.lk-edb svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lk-edb:hover { background: var(--lk-line); color: var(--lk-text); }
.lk-edb.is-on { background: var(--lk-line); color: var(--lk-text); }
.lk-edsep { width: 1px; height: 1.6rem; background: var(--lk-line); margin: 0 .35rem; }
.lk-ed-box textarea { display: block; width: 100%; box-sizing: border-box; min-height: 300px; border: 0 !important; border-radius: 0 !important; padding: 1rem 1.1rem !important; resize: vertical; background: color-mix(in srgb, var(--lk-surface) 60%, var(--lk-card)); color: var(--lk-text); font: inherit; line-height: 2; outline: 0; }
.lk-ed-box textarea::placeholder { color: var(--lk-muted); }
.lk-ed-prev[hidden] { display: none; }
.lk-ed-phead { padding: .6rem 1.1rem; background: var(--lk-surface); border-top: 1px solid var(--lk-line); font-size: .82rem; color: var(--lk-muted); }
.lk-ed-pbody { padding: 1rem 1.1rem 1.2rem; min-height: 3rem; line-height: 2; font-size: .95rem; }
.lk-ed-pbody:empty::before { content: "—"; color: var(--lk-muted); }
.lk-ed-pbody img { max-width: 100%; height: auto; border-radius: 10px; }
.lk-ed-pbody pre { background: var(--lk-surface); padding: .8rem 1rem; border-radius: 10px; overflow: auto; direction: ltr; text-align: left; }
.lk-ed-pbody code { background: var(--lk-surface); padding: .1rem .4rem; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
.lk-ed-pbody pre code { background: none; padding: 0; }
.lk-ed-pbody blockquote { margin: .6rem 0; padding: .3rem 1rem; border-inline-start: 4px solid var(--sub); background: var(--lk-surface); border-radius: 8px; }
.lk-ed-pbody h2 { font-size: 1.25rem; } .lk-ed-pbody h3 { font-size: 1.1rem; }

/* ───── پێپەڕ: ڕەزامەندی + ناردن (لە خوارەوە چەسپاو) ───── */
.lk-sub-foot { position: sticky; bottom: 0; z-index: 4; margin-top: 1.4rem; padding: .9rem 0 1.1rem; background: var(--lk-card); border-top: 1px solid var(--lk-line); }
.lk-chk { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .5rem; font-size: .88rem; line-height: 1.9; }
.lk-chk input { margin-top: .45rem; flex: none; }
.lk-chk.is-bad { color: #e0455b; }
.lk-sub-msg { min-height: 1.3rem; margin-bottom: .5rem; font-size: .88rem; font-weight: 600; line-height: 1.9; }
.lk-sub-msg.is-err { color: #e0455b; } .lk-sub-msg.is-ok { color: #1f9d55; }
.lk-sub-go { width: 100%; padding: .85rem 1rem; font-size: 1rem; font-weight: 700; background: var(--sub); }
.lk-sub-go[disabled] { opacity: .6; cursor: progress; }
.lk-sub.is-done .lk-sub-grid, .lk-sub.is-done .lk-chk, .lk-sub.is-done .lk-sub-go, .lk-sub.is-done .lk-sub-note { display: none; }
.lk-sub.is-done .lk-sub-foot { border: 0; text-align: center; padding-top: 3rem; } .lk-sub.is-done .lk-sub-msg { font-size: 1.2rem; }
.lk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ───── نووسەری میوان لە لاپەڕەی بابەت ───── */
.lk-guest-soc { display: flex; gap: .55rem; margin-top: .35rem; }
.lk-guest-soc a { color: var(--lk-muted) !important; font-size: 1rem; line-height: 1; text-decoration: none; transition: color .2s; }
.lk-guest-soc a:hover { color: var(--lk-accent) !important; }
.lk-guest-soc svg { width: 1em; height: 1em; fill: currentColor; }
.lk-author.is-guest { cursor: default; }

/* ───── مۆبایل: ستوونەکان ژێر یەک ───── */
@media (max-width: 860px) {
  .lk-sub-grid { grid-template-columns: 1fr; gap: 0; }
  .lk-sub-side { padding-top: 0; }
  .lk-sub { padding: .8rem 1rem 0; }
  .lk-row2 { grid-template-columns: 1fr; }
  .lk-sheet-full .lk-sheet-head { padding: .6rem 1rem; }
  .lk-sub-foot { position: static; } /* لە مۆبایل چەسپاو نەبێت، تاکو شوێنی نووسین نەگیرێت */
  .lk-ed-box textarea { min-height: 240px; }
}

/* ───── نوێکردنەوەکان: دوگمەی ناردن لای چەپ، لینکی سەرەوە، سەرچاوە، فێرکاری ───── */
.lk-sub-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } /* ڕاست: ڕەزامەندی ‏ | چەپ: دوگمە */
.lk-sub-actions .lk-chk { margin: 0; flex: 1 1 260px; }
.lk-sub-go { width: auto; min-width: 230px; flex: 0 0 auto; }
.lk-sub-profile { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--sub) !important; }
.lk-sub-profile[hidden] { display: none; }
.lk-head-link { border: 0; background: var(--lk-surface); color: var(--lk-text) !important; font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .2s; }
.lk-head-link:hover { background: var(--lk-line); }
.lk-f small a { color: var(--sub) !important; font-weight: 700; text-decoration: underline; }
.lk-edb-h { font-size: .82rem; width: 2.5rem; }
.lk-login .lk-sub-go, .lk-login-go { width: 100%; padding: .8rem 1rem; font-weight: 700; background: var(--sub); }
.lk-login-links { margin: .8rem 0 0; text-align: center; font-size: .85rem; } .lk-login-links a { color: var(--sub) !important; }
.lk-login { padding: .4rem 0 0; }
/* تابی فێرکاری */
.lk-help { line-height: 2; font-size: .92rem; }
.lk-help p { margin: .8rem 0; color: var(--lk-muted); }
.lk-help-t { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .9rem; }
.lk-help-t th { text-align: right; background: var(--lk-surface); padding: .55rem .8rem; font-size: .8rem; color: var(--lk-muted); }
.lk-help-t td { padding: .5rem .8rem; border-top: 1px solid var(--lk-line); vertical-align: top; }
.lk-help-t td:first-child { width: 52%; text-align: left; }
.lk-help-t code { background: var(--lk-surface); padding: .1rem .45rem; border-radius: 6px; font-size: .82rem; white-space: pre-wrap; }
.lk-help ul { color: var(--lk-muted); padding-inline-start: 1.2rem; }
@media (max-width: 860px) { .lk-sub-actions { flex-direction: column-reverse; align-items: stretch; } .lk-sub-go { width: 100%; } }

/* پانێڵی «نووسراوەکان» (چاوەڕێی پەسەندکردن) */
.lk-mine ul { list-style: none; margin: 0; padding: 0; }
.lk-mine li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--lk-line); }
.lk-mine li em { font-style: normal; font-size: .8rem; color: var(--lk-muted); }
.lk-mine p { color: var(--lk-muted); }
.lk-mine-h { font-size: 1rem; margin: .4rem 0 .6rem; }

/* ئاڤاتار و ناوی نووسەری تۆمارکراو لە تەنیشت ناونیشانی پەنجەرە */
.lk-head-user { display: inline-flex; align-items: center; gap: .5rem; margin-inline-end: auto; font-size: .9rem; }
.lk-head-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
/* دوو تابی نووسراوەکان */
.lk-mtabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.lk-mtab { border: 1px solid var(--lk-line); background: none; color: var(--lk-muted); font: inherit; font-weight: 700; padding: .4rem 1rem; border-radius: 999px; cursor: pointer; }
.lk-mtab.is-on { background: var(--sub); border-color: var(--sub); color: #fff; }
.lk-mlist { display: none; } .lk-mlist.is-on { display: block; }
.lk-mlist a { color: inherit; }
.lk-mlist ul { list-style: none; margin: 0; padding: 0; }
.lk-mlist li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--lk-line); }
.lk-mlist li em { font-style: normal; font-size: .8rem; color: var(--lk-muted); }
.lk-mlist p { color: var(--lk-muted); }
.lk-noreg { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .2rem 0 .8rem; font-weight: 700; cursor: pointer; }
.lk-noreg small { flex-basis: 100%; font-weight: 400; color: var(--lk-muted); }
.lk-pw[hidden] { display: none; }

.lk-mnum li { justify-content: flex-start; align-items: baseline; }
.lk-mnum li b { min-width: 2.2rem; color: var(--lk-muted); }
.lk-mnum li a { flex: 1; font-weight: 600; }
.lk-mine .lk-more { display: block; margin: .8rem auto 0; width: max-content; padding: .5rem 1.4rem; border-radius: 999px; background: var(--lk-surface); color: var(--lk-text) !important; text-decoration: none !important; font-weight: 700; }
