/* ConnectHub — Facebook-style light UI (demo) */
:root {
  --bg: #f0f2f5; --card: #fff; --text: #050505; --muted: #65676b;
  --accent: #1877f2; --hover: #f2f2f2; --border: #ced0d4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: Helvetica, Arial, "Segoe UI", sans-serif; }
button { font-family: inherit; }
.muted { color: var(--muted); }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 6px 16px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.1); height: 56px; }
.tb-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; font-family: Georgia, serif; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.brand-cc { font-size: 10px; color: #e41e3f; background: #ffe9ec; border-radius: 4px; padding: 1px 5px; }
.search input { width: 240px; background: var(--bg); border: 0; border-radius: 999px; padding: 9px 16px; font-size: 15px; outline: none; }
.tb-center { display: flex; gap: 4px; }
.tb-nav { display: grid; place-items: center; width: 110px; height: 44px; border-radius: 8px; color: var(--muted); }
.tb-nav:hover { background: var(--hover); }
.tb-nav.active-1 { color: var(--accent); border-bottom: 3px solid var(--accent); border-radius: 0; }
.tb-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.demo-chip { font-size: 11px; color: #8a1c2b; background: #ffe9ec; border-radius: 999px; padding: 5px 10px; }
.avatar-circle { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#1877f2,#45bd62);
  color: #fff; display: grid; place-items: center; font-weight: 700; cursor: pointer; }

.layout { display: grid; grid-template-columns: 300px minmax(0,680px) 300px; justify-content: center; gap: 20px; padding: 20px 16px; }
.leftcol, .rightcol { position: sticky; top: 76px; height: fit-content; }
.me { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; }
.me:hover { background: var(--hover); }
.me img { width: 40px; height: 40px; border-radius: 50%; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: 15px; font-weight: 500; }
.side-item:hover { background: var(--hover); }
.side-item svg { width: 30px; height: 30px; color: var(--accent); background: #e7f3ff; border-radius: 50%; padding: 5px; }
.side-note { color: var(--muted); font-size: 12px; padding: 10px 8px; line-height: 1.5; }

.stories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.story { position: relative; width: 118px; height: 178px; border-radius: 12px; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.story img:first-child { width: 100%; height: 100%; object-fit: cover; }
.story:hover img:first-child { filter: brightness(.9); }
.story-name { position: absolute; bottom: 8px; left: 8px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.story-avatar { position: absolute !important; top: 8px; left: 8px; width: 36px !important; height: 36px !important;
  border-radius: 50%; border: 3px solid var(--accent); }

.card { background: var(--card); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.15); margin-bottom: 16px; }
.composer { padding: 12px 16px; }
.composer-top { display: flex; gap: 10px; align-items: flex-start; }
.composer-top img { width: 40px; height: 40px; border-radius: 50%; }
.composer-top textarea { flex: 1; border: 0; background: var(--bg); border-radius: 999px; padding: 11px 18px;
  font-size: 16px; resize: none; min-height: 44px; max-height: 140px; outline: none; font-family: inherit; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border);
  margin-top: 12px; padding-top: 10px; gap: 10px; }
.hint { color: var(--muted); font-size: 12px; }
.btn-primary { background: var(--accent); color: #fff; border: 0; padding: 8px 18px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: #166fe5; }

.post { padding-bottom: 4px; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px 0; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; }
.post-head-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.post-body { padding: 10px 16px; font-size: 15px; line-height: 1.45; }
.post-img { width: 100%; display: block; }
.post-stats { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.reactions { color: var(--text); }
.post-actions { display: flex; border-top: 1px solid var(--border); margin: 0 16px; padding: 4px 0; }
.post-actions form { flex: 1; display: flex; }
.post-actions button { flex: 1; background: none; border: 0; padding: 9px 0; border-radius: 6px; font-size: 15px;
  font-weight: 600; color: var(--muted); cursor: pointer; }
.post-actions button:hover { background: var(--hover); }
.foot-note { color: var(--muted); font-size: 12px; text-align: center; padding: 10px 0 30px; }

.panel { background: var(--card); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.15); padding: 12px; margin-bottom: 16px; }
.panel h2 { font-size: 17px; margin-bottom: 10px; }
.ad img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.ad { display: flex; flex-direction: column; font-size: 14px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; font-weight: 500; cursor: pointer; position: relative; }
.contact:hover { background: var(--hover); }
.contact img { width: 36px; height: 36px; border-radius: 50%; }
.online { width: 10px; height: 10px; background: #31a24c; border-radius: 50%; position: absolute; left: 36px; bottom: 9px; border: 2px solid #fff; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal-box { background: var(--card); border-radius: 10px; padding: 28px; max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.4); 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; }

@media (max-width: 1250px) { .layout { grid-template-columns: minmax(0,680px); } .leftcol, .rightcol { display: none; } .tb-center { display: none; } }
