/* BisonView ideas space: list, one idea, profile (on top of landing.css). */
.ideas-page { background: var(--bg); }
.links a.cur { color: var(--text); background: rgba(255, 255, 255, .06); }
.ip-main { padding: 34px 0 70px; min-height: 70vh; }
.ip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ip-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.ip-head p { margin: 4px 0 0; color: var(--text-2); }

/* filters */
.ip-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.ip-tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ip-tabs button { border: 0; background: none; color: var(--text-2); font: 600 13.5px var(--font); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.ip-tabs button.on { background: rgba(29, 162, 84, .2); color: #fff; }
.ip-sel { height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 13.5px var(--font); padding: 0 10px; }
.ip-sel option { background: #0d2219; }

/* cards */
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ip-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.ip-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ip-card .img { position: relative; display: block; aspect-ratio: 16 / 9; background: #07120d; }
.ip-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-card .img .side { position: absolute; top: 10px; inset-inline-start: 10px; }
.ip-card .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ip-card h3 { margin: 0; font-size: 15.5px; line-height: 1.6; }
.ip-card h3 a:hover { color: var(--accent-2); }
.ip-card .ex { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: auto; }
.ip-meta .sym { color: var(--text); font-weight: 700; }
.ip-meta .sp { flex: 1; }
.ip-stat { display: inline-flex; align-items: center; gap: 4px; }
.ip-stat svg { width: 15px; height: 15px; }
.who { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 600; }
.who:hover { color: #fff; }
.av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1da254, #154734); }
.av.big { width: 76px; height: 76px; font-size: 30px; }
.side { font-weight: 700; padding: 2px 9px; border-radius: 6px; font-size: 12px; }
.side.long { color: #fff; background: rgba(34, 195, 154, .9); } .side.short { color: #fff; background: rgba(255, 91, 107, .9); } .side.neutral { color: var(--text); background: rgba(127, 154, 140, .45); }
.ip-more { display: block; margin: 22px auto 0; }
.ip-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); }
.ip-empty a { color: var(--accent-2); font-weight: 600; }

/* one idea */
.ip-idea { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.ip-shot { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ip-shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.ip-body { padding: 20px 22px 24px; }
.ip-body h1 { margin: 10px 0 6px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.5; }
.ip-text { white-space: pre-wrap; color: var(--text-2); line-height: 2; margin-top: 14px; overflow-wrap: anywhere; }
.ip-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); }
.ip-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text); font: 600 13.5px var(--font); cursor: pointer; }
.ip-btn:hover { background: rgba(255, 255, 255, .08); }
.ip-btn svg { width: 17px; height: 17px; }
.ip-btn.on { color: #ff6b81; border-color: rgba(255, 107, 129, .5); background: rgba(255, 107, 129, .1); }
.ip-btn.p { background: var(--accent); border-color: var(--accent); color: #fff; }
.ip-btn.danger { color: var(--down); }
.ip-btn[disabled] { opacity: .5; cursor: default; }
.ip-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.ip-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ip-box h4 { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.ip-author { display: flex; align-items: center; gap: 12px; }
.ip-author b { display: block; font-size: 15.5px; }
.ip-author small { color: var(--muted); }
.ip-author + .ip-btn { width: 100%; justify-content: center; margin-top: 12px; }
.ip-hidden { padding: 10px 14px; border-radius: 10px; background: rgba(255, 91, 107, .12); color: #ffb3bc; font-size: 13.5px; margin-bottom: 12px; }

/* comments */
.ip-coms { margin-top: 20px; }
.ip-coms h3 { font-size: 17px; margin: 0 0 12px; }
.ip-com { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ip-com:first-of-type { border-top: 0; }
.ip-com .c-bd { flex: 1; min-width: 0; }
.ip-com .c-top { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ip-com .c-top .sp { flex: 1; }
.ip-com p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.ip-com .x { border: 0; background: none; color: var(--muted); cursor: pointer; font: 12px var(--font); }
.ip-com .x:hover { color: var(--down); }
.ip-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ip-form textarea, .ip-in { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text); font: 14px/1.8 var(--font); padding: 10px 12px; outline: 0; }
.ip-form textarea { min-height: 84px; resize: vertical; }
.ip-form textarea:focus, .ip-in:focus { border-color: var(--accent); }
.ip-form .row { display: flex; justify-content: flex-end; }

/* profile */
.ip-prof { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 24px; }
.ip-prof .who-bd { flex: 1; min-width: 220px; }
.ip-prof h1 { margin: 0; font-size: 24px; }
.ip-prof .h { color: var(--muted); direction: ltr; display: inline-block; }
.ip-prof .bio { margin: 8px 0 0; color: var(--text-2); white-space: pre-wrap; }
.ip-nums { display: flex; gap: 22px; flex-wrap: wrap; }
.ip-nums div { text-align: center; }
.ip-nums b { display: block; font-size: 20px; }
.ip-nums span { color: var(--muted); font-size: 12.5px; }

/* modal + toast */
.ip-modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 5, .7); display: grid; place-items: center; padding: 16px; }
.ip-modal { width: min(420px, 100%); background: #0d2219; border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ip-modal h3 { margin: 0 0 6px; }
.ip-modal p { color: var(--text-2); margin: 0 0 14px; font-size: 14px; }
.ip-modal label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.ip-modal .row { display: flex; gap: 8px; margin-top: 16px; }
.ip-modal .err { color: #ff8a98; font-size: 13px; min-height: 20px; margin-top: 6px; }
.ip-modal .dev { font-size: 12.5px; color: var(--gold); margin-top: 6px; }
.ip-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: #183a2c; border: 1px solid var(--line-2); color: var(--text); padding: 10px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.zoom-back { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 10px; cursor: zoom-out; }
.zoom-back img { max-width: 100%; max-height: 100%; }

@media (max-width: 900px) {
  .ip-idea { grid-template-columns: 1fr; }
  .ip-side { position: static; }
}
@media (max-width: 720px) {
  .ip-main { padding-top: 22px; }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-body { padding: 16px; }
  .ip-actions { padding: 12px 16px; }
  .ip-prof { padding: 16px; }
}

/* pieces added with the page script */
.ip-head .btn svg { width: 18px; height: 18px; }
.ip-head .btn { gap: 6px; }
.ip-h2 { font-size: 19px; margin: 0 0 14px; }
.ip-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ip-mini:first-child { border-top: 0; padding-top: 0; }
.ip-mini img { width: 84px; height: 48px; object-fit: cover; border-radius: 7px; flex: none; background: #07120d; }
.ip-mini span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ip-mini b { font-size: 13px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-mini small { color: var(--muted); font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.ip-mini small .side { font-size: 10.5px; padding: 0 6px; }
.ip-mini:hover b { color: var(--accent-2); }
.ip-all { display: block; margin-top: 8px; color: var(--accent-2); font-size: 13px; font-weight: 600; }
.ip-coms h3 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.ip-body .ip-meta { margin-top: 0; }
.ip-body .ip-meta .sym:hover { color: var(--accent-2); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
