/* ============================================================ post_feed.css — Smart Comment Feature Styles Scoped to .lja-comment-btn and .lja-comment-box ============================================================ */ /* ── Smart Comment Button ─────────────────────────────────── */ .lja-comment-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 6px 14px; background: linear-gradient(135deg, #6c63ff, #4f46e5); color: #fff; border: none; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3); } .lja-comment-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(108, 99, 255, 0.45); background: linear-gradient(135deg, #7c73ff, #5f56f5); } .lja-comment-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; } /* Spinner inside button */ .lja-spinner { display: inline-block; width: 10px; height: 10px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: lja-spin 0.7s linear infinite; } @keyframes lja-spin { to { transform: rotate(360deg); } } /* ── Comment Suggestion Box ───────────────────────────────── */ .lja-comment-box { margin: 10px 12px; background: linear-gradient(145deg, #1a1a2e, #16213e); border: 1px solid rgba(108, 99, 255, 0.35); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); animation: lja-fadeIn 0.25s ease; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } @keyframes lja-fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } /* Header */ .lja-cb-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(108, 99, 255, 0.15); border-bottom: 1px solid rgba(108, 99, 255, 0.2); } .lja-cb-icon { font-size: 16px; } .lja-cb-title { flex: 1; font-size: 13px; font-weight: 700; color: #a89cff; letter-spacing: 0.3px; } .lja-cb-close { background: none; border: none; color: #888; font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: color 0.2s, background 0.2s; line-height: 1; } .lja-cb-close:hover { color: #fff; background: rgba(255, 80, 80, 0.25); } /* Editable text area */ .lja-cb-text { display: block; width: 100%; min-height: 80px; max-height: 160px; padding: 14px 16px; background: transparent; border: none; color: #e0deff; font-size: 14px; line-height: 1.65; resize: vertical; outline: none; box-sizing: border-box; font-family: inherit; } .lja-cb-text:focus { background: rgba(108, 99, 255, 0.05); } /* Action buttons row */ .lja-cb-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); flex-wrap: wrap; } .lja-cb-actions button { padding: 6px 14px; border: 1px solid rgba(108, 99, 255, 0.4); border-radius: 8px; background: rgba(108, 99, 255, 0.12); color: #b0a8ff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; } .lja-cb-actions button:hover { background: rgba(108, 99, 255, 0.3); color: #fff; border-color: rgba(108, 99, 255, 0.7); } /* Credibility analysis panel (Arabic) */ .lja-cb-analysis { padding: 10px 14px; background: rgba(108, 99, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.06); } .lja-cb-analysis-label { font-size: 11px; color: #ff8787; margin-bottom: 4px; font-weight: 600; } .lja-cb-analysis-body { font-size: 12px; color: #e0deff; line-height: 1.5; text-align: right; white-space: pre-wrap; } /* Shown when the model judged the post not worth commenting on */ .lja-cb-skip { padding: 14px 16px; font-size: 13px; color: #ffd08a; text-align: right; line-height: 1.6; } .lja-cb-actions button:disabled { opacity: 0.4; cursor: not-allowed; } /* Rewrite variant */ .lja-cb-header--rewrite { background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%); } .lja-cb-section-label { padding: 12px 14px 6px; font-size: 12px; font-weight: 600; color: #b0a8ff; border-top: 1px solid rgba(255, 255, 255, 0.06); } .lja-cb-text--tall { min-height: 140px; max-height: 320px; } .lja-cb-image-prompt { display: block; width: 100%; min-height: 80px; max-height: 160px; padding: 12px 16px; background: rgba(0, 0, 0, 0.18); border: none; color: #c9c4ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; resize: vertical; outline: none; box-sizing: border-box; } /* Paste button — primary emphasis */ .lja-cb-paste { background: linear-gradient(135deg, rgba(108,99,255,0.3), rgba(79,70,229,0.3)) !important; border-color: rgba(108, 99, 255, 0.6) !important; } .lja-cb-paste:hover { background: linear-gradient(135deg, rgba(108,99,255,0.55), rgba(79,70,229,0.55)) !important; }