/* Blog layout layer on top of the provided cyber design.
   Keeps X-like columns: left nav / center feed / right widgets.
*/

:root{
  --max: 1180px;
  --radius: 18px;
  --line: rgba(0,243,255,0.18);
  --panel: rgba(20,20,30,0.55);
  --panel-strong: rgba(20,20,30,0.70);
}

/* Make sure content sits above overlays */
header, main, footer { position: relative; z-index: 20; }

/* On blog/feed pages we do NOT want the large character image behind posts.
   Only the small post avatar should represent Nova. */
.nova-container{ display:none !important; }

/* Override fixed landing header from template */
header{ position: sticky; top:0; padding: 0; background: rgba(2,0,5,0.72); }
header nav{ max-width: var(--max); margin: 0 auto; padding: 14px 16px; }

/* X-like 3-column grid */
.layout{
  max-width: var(--max);
  margin: 18px auto 26px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 14px;
}
@media (max-width: 1020px){
  .layout{ grid-template-columns: 1fr; }
  .left,.right{ display:none; }
}

.panel{
  background: rgba(0,0,0,0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(0,243,255,0.05);
}

.left .nav-col{ padding: 12px; }
.left a{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border: 1px solid transparent;
}
.left a:hover{ border-color: rgba(188,19,254,0.25); background: rgba(188,19,254,0.06); }
.left .hint{ color: var(--text-dim); font-size: 12px; padding: 10px 12px; }

/* Profile header */
.profile{
  padding: 14px 16px;
  display:flex; gap:14px; align-items:flex-start;
  background: var(--panel-strong);
}
.avatar-sq{
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  padding: 2px;
  flex: 0 0 auto;
}
.avatar-sq img{ width:100%; height:100%; border-radius: 14px; object-fit: cover; border: 2px solid #000; }

.profile h1{ font-size: 18px; margin: 0; }
.profile p{ margin: 6px 0 0 0; color: var(--text-dim); max-width: 58ch; }
.badge-lite{
  display:inline-flex; align-items:center;
  padding: 3px 8px;
  border: 1px solid rgba(0,243,255,0.25);
  color: var(--primary-color);
  font-size: 12px;
  margin-left: 8px;
}

/* Feed posts */
.feed{ overflow:hidden; }
.post{
  padding: 14px 16px;
  border-top: 1px solid rgba(0,243,255,0.12);
}
.post:first-child{ border-top:none; }
.post-head{ display:flex; gap:10px; align-items:center; }
.post-head .avatar-mini{
  width:40px; height:40px; border-radius: 14px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  padding: 2px;
  border:1px solid rgba(0,243,255,0.18);
  overflow:hidden;
}
.post-head .avatar-mini img{
  width:100%; height:100%; border-radius: 12px;
  object-fit: cover;
  border: 2px solid #000;
  display:block;
}
.post-meta{ display:flex; flex-direction:column; gap:2px; }
.post-meta .name{ font-weight:700; }
.post-meta .time{ color: var(--text-dim); font-size: 12px; }
.post-body{ margin-top: 10px; white-space: pre-wrap; }
.post-body b a{ color: #fff; }
.post-actions{ margin-top: 10px; display:flex; gap: 14px; color: var(--text-dim); font-size: 13px; }

.tag{
  display:inline-block;
  margin: 8px 6px 0 0;
  padding: 4px 10px;
  border: 1px solid rgba(0,243,255,0.16);
  color: var(--text-dim);
  font-size: 12px;
}

.pinned{ position: relative; }
.pinned:before{
  content:'Закреплено';
  position:absolute; top: 12px; right: 14px;
  font-size: 12px;
  color: var(--primary-color);
  border: 1px solid rgba(0,243,255,0.25);
  padding: 4px 10px;
  background: rgba(0,243,255,0.06);
}

.right .box{ padding: 14px 16px; }
.right h2{ margin:0 0 8px 0; font-size: 14px; }
.right p{ margin:0; color: var(--text-dim); font-size: 13px; }
.kv{ margin-top: 10px; display:grid; gap: 8px; }
.kv div{ padding: 10px 12px; border: 1px solid rgba(0,243,255,0.12); color: var(--text-dim); }

.footer-small{ text-align:center; color: var(--text-dim); padding: 18px 0 26px; }
