/* ChirpX — X-style dark social feed UI (demo) */
:root {
  --bg: #000; --surface: #16181c; --text: #e7e9ea; --muted: #71767b;
  --accent: #1d9bf0; --border: #2f3336; --hover: #181818;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", Roboto, Arial, sans-serif; }
button { font-family: inherit; }
.shell { display: grid; grid-template-columns: 240px minmax(0,640px) 350px; justify-content: center; min-height: 100vh; }

.leftbar { padding: 8px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.logo { color: var(--text); text-decoration: none; font-size: 26px; font-weight: 800; padding: 10px; letter-spacing: -1px; }
.logo-dot { color: var(--accent); }
.demo-tag { font-size: 10px; color: #ffd34d; border: 1px solid #ffd34d; border-radius: 4px; padding: 1px 5px; margin-left: 8px; vertical-align: middle; letter-spacing: 0; }
.nav-item { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none;
  font-size: 19px; padding: 12px; border-radius: 999px; }
.nav-item:hover { background: var(--hover); }
.nav-ic { width: 24px; height: 24px; flex-shrink: 0; }
.post-btn { margin-top: 14px; background: var(--accent); color: #fff; border: 0; font-weight: 700;
  font-size: 16px; padding: 14px 0; border-radius: 999px; cursor: pointer; }
.post-btn.small { padding: 9px 18px; margin-top: 0; width: auto; }
.post-btn:hover { filter: brightness(1.1); }
.mini-account { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 999px; cursor: pointer; }
.mini-account:hover { background: var(--hover); }
.mini-account img { width: 40px; height: 40px; border-radius: 50%; }
.mini-account div { display: flex; flex-direction: column; line-height: 1.2; }
.mini-account span { color: var(--muted); font-size: 14px; }

.feed { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  position: sticky; top: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.feed-head h1 { font-size: 20px; }
.demo-chip { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.composer { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.composer-avatar, .post-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.composer-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.composer textarea { background: none; border: 0; color: var(--text); font-size: 19px; resize: none;
  min-height: 60px; outline: none; font-family: inherit; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hint { color: var(--muted); font-size: 12px; }
.feed-divider { border-bottom: 1px solid var(--border); }

.post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.post:hover { background: #030303; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 5px; font-size: 15px; flex-wrap: wrap; }
.handle, .dot, .time { color: var(--muted); }
.post-body { font-size: 15px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.post-img { width: 100%; border-radius: 16px; margin-top: 12px; border: 1px solid var(--border); }
.post-actions { display: flex; gap: 40px; margin-top: 10px; }
.post-actions form { display: inline; }
.post-actions button { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 999px; margin-left: -8px; }
.post-actions button:hover { color: var(--accent); background: rgba(29,155,240,.1); }
.foot-note { color: var(--muted); font-size: 12px; padding: 20px 16px; text-align: center; }

.rightbar { padding: 12px 16px; }
.searchbox input { width: 100%; background: var(--surface); border: 1px solid var(--surface); color: var(--text);
  border-radius: 999px; padding: 12px 16px; font-size: 15px; outline: none; }
.panel { background: var(--surface); border-radius: 16px; padding: 14px; margin-top: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 10px; }
.trend { display: flex; flex-direction: column; padding: 9px 4px; cursor: pointer; border-radius: 8px; }
.trend:hover { background: rgba(255,255,255,.03); }
.trend-tag { font-weight: 700; font-size: 14px; }
.trend-meta { color: var(--muted); font-size: 13px; }
.who { display: flex; gap: 10px; align-items: center; padding: 8px 4px; }
.who img { width: 40px; height: 40px; border-radius: 50%; }
.who div { display: flex; flex-direction: column; line-height: 1.25; }
.who span { color: var(--muted); font-size: 13px; }
.side-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 16px; }

.modal { position: fixed; inset: 0; background: rgba(91,112,131,.4); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal-box { background: #000; border: 1px solid var(--border); border-radius: 16px; padding: 28px; max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); max-height: 90vh; overflow-y: auto; }
.disc-badge { display: inline-grid; place-items: center; background: #ffd34d; color: #000; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.modal-box h2 { font-size: 20px; margin-bottom: 10px; }
.modal-box p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.modal-box ul { margin: 0 0 18px 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.btn-primary { background: var(--accent); color: #fff; border: 0; padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.1); }

@media (max-width: 1200px) { .shell { grid-template-columns: 80px minmax(0,640px); } .rightbar { display: none; } .nav-item span { display: none; } .post-btn { font-size: 0; padding: 14px; } .mini-account div { display: none; } }
@media (max-width: 700px) { .shell { grid-template-columns: minmax(0,1fr); } .leftbar { display: none; } }
