/* ============================================================
   News feed, Discord embed preview, compose layout
   ============================================================ */
.news-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 22px; }
.news-filter { background: transparent; color: var(--text-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: color var(--dur), background var(--dur), border-color var(--dur); }
.news-filter:hover { color: var(--text); border-color: var(--line-2); }
.news-filter.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-3); }

.discord-status { margin-left: auto; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.dot.on { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
.dot.off { background: var(--danger); }

.news-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; margin-bottom: 12px; transition: border-color var(--dur); }
.news-item:hover { border-color: var(--line-2); }
.news-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-type { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.news-type.patch { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.news-type.notice { background: var(--gold-soft); color: var(--gold); }
.news-type.event { background: color-mix(in srgb, #8f7cf0 14%, transparent); color: #a998f5; }
.news-src { font-size: 12px; color: var(--text-3); }
.news-date { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.news-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 2px 0 8px; }
.news-content { color: var(--text); font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.news-attach img { max-width: 380px; max-height: 280px; border-radius: var(--r-md); margin-top: 12px; }

/* discord-style embed preview (kept close to Discord's own look on purpose) */
.d-embed { display: flex; max-width: 520px; margin-top: 12px; background: #2b2d31; border-radius: 6px; overflow: hidden; }
.d-embed-bar { width: 4px; flex-shrink: 0; background: var(--gold); }
.d-embed-main { padding: 12px 16px 14px; min-width: 0; flex: 1; }
.d-embed-title { color: #f2f3f5; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.d-embed-title a { color: #4fa3ff; }
.d-embed-desc { color: #dbdee1; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.d-embed-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; margin-top: 8px; }
.d-embed-field.full { grid-column: 1 / -1; }
.d-embed-fname { color: #f2f3f5; font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.d-embed-fval { color: #dbdee1; font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; }
.d-embed-img { margin-top: 10px; }
.d-embed-img img { max-width: 100%; max-height: 300px; border-radius: 4px; }
.d-embed-thumb { flex-shrink: 0; padding: 12px 16px 0 0; }
.d-embed-thumb img { width: 74px; height: 74px; object-fit: cover; border-radius: 4px; }
.d-embed-footer { display: flex; align-items: center; gap: 6px; color: #949ba4; font-size: 11.5px; margin-top: 8px; }

/* compose */
.compose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.compose-preview-box { background: #313338; border-radius: var(--r-md); padding: 18px 20px; position: sticky; top: 76px; }
.compose-preview-box .cp-label { color: #949ba4; font-size: 11px; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.d-msg { display: flex; gap: 12px; }
.d-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #d4af37, #9a7b1e); display: flex; align-items: center; justify-content: center; }
.d-avatar svg { width: 22px; height: 26px; }
.d-msg-body { min-width: 0; flex: 1; }
.d-msg-head { display: flex; align-items: baseline; gap: 8px; }
.d-msg-name { color: #f2f3f5; font-weight: 600; font-size: 14.5px; }
.d-msg-bot { background: #5865f2; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.d-msg-time { color: #949ba4; font-size: 11px; }
.d-msg-content { color: #dbdee1; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }

.embed-fields-editor .ef-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.embed-fields-editor input[type=text] { flex: 1; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); padding: 8px 10px; font-size: 13px; outline: none; }
.embed-fields-editor input[type=text]:focus { border-color: var(--gold-3); }
.embed-fields-editor .ef-inline { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.embed-fields-editor .ef-del { background: none; border: none; color: var(--text-3); font-size: 15px; }
.embed-fields-editor .ef-del:hover { color: var(--danger); }

.collapse-head { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--gold); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.collapse-head .arrow { transition: transform var(--dur) var(--ease); font-size: 10px; }
.collapse-head.open .arrow { transform: rotate(90deg); }
