/* --- BEGIN styles.css (twój theme, oryginalny content) --- */
:root{
  --bg: #0b0f10;
  --panel: #0f1415;
  --muted: #9aa7a6;
  --text: #d8efe7;
  --accent: #6ef08a;
  --danger: #ff6b6b;
  --max-width: 1200px;
  --radius: 8px;
  --gap: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  background:linear-gradient(180deg,var(--bg),#061012 120%);
  color:var(--text);
  font-family: var(--mono);
  font-size:15px;
  line-height:1.4;
}

.site{
  max-width:var(--max-width);
  margin:24px auto;
  padding:18px;
}

.nav-bar{
  display:flex;
  gap:var(--gap);
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(180deg,var(--panel), #0c1112);
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(110,240,138,0.06);
}

.search-form{ display:flex; gap:8px; align-items:center; }
.search-form input[type="search"]{
  background:#07100f;
  border:1px solid rgba(110,240,138,0.06);
  padding:8px 10px;
  border-radius:8px;
  color:var(--text);
  min-width:220px;
  outline:none;
  min-height: 10px;
}
.btn{
  background:linear-gradient(180deg,var(--accent), #48c96a);
  color:#04110a;
  border:none;
  padding:7px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}
.btn.small{ padding:6px 8px; font-size:13px; }
.btn.ghost{ background:transparent; border:1px solid rgba(255,255,255,0.06); color:var(--text); }

.container{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:20px;
  margin-top:18px;
}

.main-col{ display:flex; flex-direction:column; gap:18px; }

.main-categories{
  background:linear-gradient(180deg,#071212,#061011);
  border-radius:12px;
  padding:14px;
  border:1px solid rgba(110,240,138,0.04);
}
.main-categories h2{ margin:0 0 12px 0; font-size:16px; color:var(--accent); }
.categories-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.category-card{
  background: rgba(255,255,255,0.02);
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.25);
}
.category-card h3{ margin:0 0 6px 0; font-size:15px; }
.category-card h3 a{ color:var(--text); text-decoration:none; }
.category-card .excerpt{ color:var(--muted); font-size:13px; margin:0; }

.pinned{
  background:linear-gradient(180deg,#071212,#061011);
  border-radius:12px;
  padding:14px;
  border:1px solid rgba(110,240,138,0.04);
}
.pinned h2{ margin:0 0 12px 0; font-size:16px; color:var(--accent); }

.pinned-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.pinned-post{
  background: rgba(255,255,255,0.02);
  padding:12px;
  border-radius:10px;
  min-height:84px;
  border:1px solid rgba(0,0,0,0.25);
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pinned-badge{
  display:inline-block;
  align-self:flex-start;
  background: rgba(0,0,0,0.45);
  color:var(--accent);
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.5px;
  margin-bottom:4px;
}

.pinned-post h3{ margin:0; font-size:15px; }
.pinned-post h3 a{ color:var(--text); text-decoration:none; }
.pinned-post .meta{ color:var(--muted); font-size:13px; }
.pinned-post .excerpt{ color:var(--muted); font-size:13px; margin:0; }

.feed{ background:linear-gradient(180deg,#071212,#061011); padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,0.02); }
.feed h2{ margin:0 0 10px 0; color:var(--accent); }

.thread-list{ list-style:none; margin:0; padding:0; display:block; }
.thread{ padding:10px 8px; border-bottom:1px dashed rgba(255,255,255,0.02); }
.thread a{ color:var(--text); text-decoration:none; }
.thread-meta{ color:var(--muted); font-size:13px; margin-top:6px; }

.side-col{ display:flex; flex-direction:column; gap:12px; }
.card{
  background: linear-gradient(180deg, #071212, #041312);
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.02);
}
.card h3{ margin:0 0 8px 0; color:var(--accent); }
.card ul{ margin:0; padding:0 0 0 14px; color:var(--muted); }
.card ul li{ margin:8px 0; }
.card a{ color:var(--text); text-decoration:none; }

.site-footer{ margin-top:20px; text-align:center; color:var(--muted); font-size:13px; }

@media (max-width:980px){
  .container{ grid-template-columns: 1fr; }
  .pinned-grid, .categories-grid{ grid-template-columns: 1fr; }
  .nav-bar{ flex-direction:column; gap:10px; align-items:stretch; }
}

.count{ color:var(--muted); font-size:13px; margin-left:6px; }
.pfp{ width:36px; height:36px; object-fit:cover; border-radius:6px; border:1px solid rgba(255,255,255,0.03); margin-right:8px; vertical-align:middle; }
.user-panel{ display:flex; align-items:center; gap:8px; }

.website, .site { max-width: 1200px; margin: 24px auto; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; color: #d8efe7; }

.content { display:flex; justify-content:center; margin-top:20px; }

.login-class{
  width: 420px;
  background: linear-gradient(180deg,#071212,#061011);
  border: 1px solid rgba(110,240,138,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.login-class h1{ margin:0 0 14px 0; color: var(--accent); font-size:20px; }

.login-class input[type="text"],
.login-class input[type="password"],
.login-class input[type="search"],
.login-class input[type="email"]{
  width:100%;
  padding:10px 12px;
  margin:8px 0 12px 0;
  border-radius:8px;
  border:1px solid rgba(110,240,138,0.04);
  background:#07100f;
  color:var(--text);
  font-family: inherit;
  font-size:14px;
}

.captcha img{ max-width:100%; border-radius:8px; border:1px solid rgba(255,255,255,0.02); margin-bottom:8px; }

.login-class input[type="submit"], .login-class .btn{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:none;
  background: linear-gradient(180deg,#6ef08a, #48c96a);
  color:#04110a;
  font-weight:700;
  cursor:pointer;
  margin-top:8px;
}

.login-class p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
}

.login-class p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.login-class p a:hover {
  text-decoration: underline;
}

.sr-only{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.hp-field input{ pointer-events: none; }

@media (max-width:520px){
  .login-class{ width: 92%; padding:14px; }
}

.register-class {
  width: 420px;
  background: linear-gradient(180deg, #071212, #061011);
  border: 1px solid rgba(110, 240, 138, 0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.register-class h1 {
  margin: 0 0 14px 0;
  color: var(--accent);
  font-size: 20px;
}

.register-class input[type="text"],
.register-class input[type="password"],
.register-class input[type="search"],
.register-class input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 12px 0;
  border-radius: 8px;
  border: 1px solid rgba(110, 240, 138, 0.04);
  background: #07100f;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}


.register-class input[type="submit"],
.register-class .btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #6ef08a, #48c96a);
  color: #04110a;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.register-class p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
}

.register-class p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.register-class p a:hover {
  text-decoration: underline;
}

.brand h1 {
  margin-top: 12px;
  font-size: 24px;
  color: var(--text);
}

.brand h1 a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  text-decoration-color: white;
}

.brand h1 a:hover {
  text-decoration: underline;
  text-decoration-color: white;
}


.error-class{
  width: 420px;
  background: linear-gradient(180deg,#071212,#061011);
  border: 1px solid rgba(110,240,138,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.error-class p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.error-class p a:hover {
  text-decoration: underline;
}

.error-class h1{ margin:0 0 14px 0; color: var(--accent); font-size:20px; }

.error-box p {
  color: red;
  white-space: pre-wrap; 
  word-wrap: break-word; 
}


.error-box {
  width: 100%;
  background-color: black;
  height: auto;
}

.key-class{
  width: 420px;
  background: linear-gradient(180deg,#071212,#061011);
  border: 1px solid rgba(110,240,138,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.key-class p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.key-class p a:hover {
  text-decoration: underline;
}

.key-class h1{ margin:0 0 14px 0; color: var(--accent); font-size:20px; }

.key-box p {
  color: rgb(0, 255, 4);
  white-space: pre-wrap; 
  word-wrap: break-word; 
}


.key-box {
  width: 100%;
  background-color: black;
  height: auto;
}

.create-post {
  width: 720px;
  max-width: calc(100% - 40px);
  margin: 22px auto;
  background: linear-gradient(180deg, #071212, #061011);
  border: 1px solid rgba(110,240,138,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
  font-family: inherit;
}

.create-post h1 {
  margin: 0 0 14px 0;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0.2px;
}

.create-post .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.create-post input[type="text"],
.create-post select,
.create-post textarea,
.create-post input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(110,240,138,0.04);
  background: #07100f;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.create-post input[type="text"]:focus,
.create-post select:focus,
.create-post textarea:focus,
.create-post input[type="file"]:focus {
  border-color: rgba(110,240,138,0.22);
  box-shadow: 0 0 0 6px rgba(110,240,138,0.04);
}

.create-post textarea {
  min-height: 160px;
  max-height: 600px;
  resize: vertical;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
}

.create-post .files {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.create-post input[type="file"] {
  padding: 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
}

.create-post .hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 6px 0;
}

.create-post .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.create-post input[type="submit"] {
  background: linear-gradient(180deg, var(--accent), #48c96a);
  color: #04110a;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.create-post .error {
  color: var(--danger);
  font-size: 13px;
}

.create-post .meta {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .create-post {
    width: 92%;
    padding: 16px;
  }
  .create-post .files {
    grid-template-columns: 1fr;
  }
  .create-post .actions {
    justify-content: stretch;
  }
  .create-post input[type="submit"] {
    width: 100%;
  }
}

.category-list{
  list-style:none;
  margin:0;
  padding:0;
  display:block;
}

.category-list .empty{
  color:var(--muted);
  padding:12px;
  background: rgba(255,255,255,0.02);
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.18);
}

.post-item{
  padding:12px;
  margin-bottom:10px;
  background: rgba(255,255,255,0.01);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.02);
  transition: transform .08s ease, box-shadow .08s ease, background .08s;
}

.post-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  background: rgba(110,240,138,0.02);
}

.post-title{
  font-size:15px;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}

.post-title:hover{
  text-decoration: underline;
}

.post-meta{
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
}

.pagination{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:8px;
}

.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  padding:8px 10px;
  border-radius:8px;
  text-decoration:none;
  color:var(--text);
  background: transparent;
  border:1px solid rgba(255,255,255,0.03);
  font-weight:700;
  font-size:13px;
}

.page-btn:hover{
  border-color: rgba(110,240,138,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.page-btn.active{
  background: linear-gradient(180deg, var(--accent), #48c96a);
  color:#04110a;
  border:none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.page-btn.disabled{
  opacity:0.35;
  pointer-events:none;
  cursor:default;
}

.pagination .dots{
  color:var(--muted);
  font-size:16px;
  padding:0 6px;
}

.meta.small{
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
  text-align:center;
}

@media (max-width:520px){
  .page-btn{ min-width:34px; padding:6px 8px; font-size:12px; }
  .post-item{ padding:10px; }
}
.page-shortbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 14px 0;
  padding:8px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.02);
}

.page-shortbar .page-info{
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

.page-shortnav{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

.page-shortbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  padding:6px 10px;
  border-radius:8px;
  text-decoration:none;
  color:var(--text);
  background: transparent;
  border:1px solid rgba(255,255,255,0.03);
  font-weight:700;
  font-size:13px;
}

.page-shortbtn:hover{
  border-color: rgba(110,240,138,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.page-shortbtn.active{
  background: linear-gradient(180deg, var(--accent), #48c96a);
  color:#04110a;
  border:none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.page-shortbtn.disabled{
  opacity:0.35;
  pointer-events:none;
  cursor:default;
}

.post-item{ padding:0; margin-bottom:10px; }

.post-link{
  display:block;
  padding:12px;
  background: rgba(255,255,255,0.01);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.02);
  color:inherit;
  text-decoration:none;
  transition: transform .08s ease, box-shadow .08s ease, background .08s;
}

.post-link:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  background: rgba(110,240,138,0.02);
}

.post-title{ font-size:15px; color:var(--text); font-weight:700; margin-bottom:6px; }
.post-meta{ color:var(--muted); font-size:13px; }

@media (max-width:520px){
  .page-shortbar{ flex-direction:column; align-items:stretch; gap:6px; }
  .page-shortnav{ justify-content:flex-start; }
  .page-shortbtn{ min-width:34px; padding:6px 8px; font-size:12px; }
}


.comment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border: 1px solid rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}


.comment-left{
  width: 96px; 
  min-width: 96px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.comment-avatar{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg,#071212,#041312);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.comment-username{
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  word-break: break-word;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-right{
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.comment-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-size: 13px;
  justify-content: space-between;
}

.comment-header{
  display:flex;
  gap:12px;
  align-items:center;
}

.comment-text{
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-text a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.comment-attachment{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

.add-comment {
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-top:18px;
  padding:12px;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border:1px solid rgba(255,255,255,0.02);
}

.add-comment-left{ width:96px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.add-comment-right{ flex:1 1 auto; display:flex; flex-direction:column; gap:8px; }

.add-comment textarea{
  width:100%;
  min-height:96px;
  resize:vertical;
  padding:10px;
  border-radius:8px;
  border:1px solid rgba(110,240,138,0.04);
  background:#07100f;
  color:var(--text);
  font-family: inherit;
  font-size:14px;
}

.add-comment .row{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
}
.add-comment input[type="file"]{ padding:6px; border-radius:8px; background:#07100f; border:1px solid rgba(110,240,138,0.04); color:var(--muted); }
.add-comment button{ background: linear-gradient(180deg,var(--accent), #48c96a); color:#04110a; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:700; }

@media (max-width:760px){
  .comment, .add-comment{ flex-direction:column; }
  .comment-left, .add-comment-left{ width:100%; min-width:unset; flex-direction:row; align-items:center; gap:12px; }
  .comment-avatar{ width:56px; height:56px; }
  .comment-username{ max-width: 140px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; text-align:left;}
}

.comment-text { 
  white-space: normal; 
  text-align: left; 
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}


.comment-text pre,
.comment-text code {
  white-space: pre-wrap;
  font-family: var(--mono);
  background: rgba(0,0,0,0.1);
  padding: 8px;
  border-radius: 6px;
  display: block;
  overflow: auto;
}

.comment, .add-comment {
  gap: 8px; 
}

.center-card input[type="text"],
.center-card input[type="password"],
.center-card input[type="search"],
.center-card input[type="email"]{
  width:100%;
  padding:10px 12px;
  margin:8px 0 12px 0;
  border-radius:8px;
  border:1px solid rgba(110,240,138,0.04);
  background:#07100f;
  color:var(--text);
  font-family: inherit;
  font-size:14px;
}

/* ---------------------------
   POST LAYOUT (autor po lewej)
   --------------------------- */

/* używamy .post.card żeby odziedziczyć wygląd card */
.post.card {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, #071212, #041312);
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
}

/* Lewa kolumna: autor - duży avatar, meta i ranga,
   zajmuje stałą szerokość i ma pionową kreskę odgradzającą */
.post-author{
  width: 220px;
  min-width: 160px;
  padding: 12px;
  box-sizing: border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  border-right: 1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.00), rgba(0,0,0,0.02));
}

/* avatar większy niż w komentarzach */
.author-avatar{
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  border:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg,#071212,#041312);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* meta pod avatarem, przyklejone do lewej przez layout (wyśrodkowane w kolumnie) */
.author-meta{
  text-align:center;
  width:100%;
}

.author-username{
  font-size:18px;
  font-weight:800;
  color:var(--accent);
  margin:4px 0 6px 0;
  word-break:break-word;
}

.author-rank img{
  width: 140px;
  vertical-align:middle;
}

.post-date{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
}

/* Prawa kolumna: treść */
.post-content{
  flex: 1 1 auto;
  padding: 6px 12px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}

/* duży tytuł nad contentem */
.post-title{
  font-size:28px;
  font-weight:900;
  margin:0;
  color:var(--text);
  line-height:1.05;
}

/* treść posta - zachowujemy klasę .post-text.card dla spójności */
.post-text.card{
  width:100%;
  padding:14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border:1px solid rgba(255,255,255,0.02);
  color:var(--text);
  box-sizing:border-box;
}

/* Załączniki i obrazy */
.post-content ul{ margin: 8px 0 0 18px; padding:0; color:var(--muted); }
.post-content img{ max-width:100%; height:auto; display:block; margin-top:10px; border-radius:6px; }

/* Drobne dopasowania komentarzy (spójność) */
.comment-username{ color:var(--accent); font-weight:700; }

/* Responsywność: na wąskich ekranach kolumny stackują się */
@media (max-width: 980px){
  .post.card{
    flex-direction: column;
    padding:12px;
  }
  .post-author{
    width:100%;
    min-width:unset;
    flex-direction:row;
    align-items:center;
    gap:12px;
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,0.03);
    padding:12px;
  }
  .author-avatar{ width:96px; height:96px; }
  .author-meta{ text-align:left; }
  .post-title{ font-size:22px; }
}

/* ---------------------------
   COMMENT-POST (mini variant)
   --------------------------- */

/* komentarze jako mini-wersje posta */
.comment-post.card {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* mniejsza lewa kolumna niż w głównym poście */
.comment-post .post-author {
  width: 140px;
  min-width: 120px;
  padding: 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  border-right: 1px solid rgba(255,255,255,0.02);
  background: transparent;
}

/* mniejszy avatar dla komentarzy */
.comment-post .author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  border:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg,#071212,#041312);
}

/* mniejsza meta */
.comment-post .author-username {
  font-size:14px;
  font-weight:800;
  color:var(--accent);
  margin:2px 0 4px 0;
  max-width: 100%;
  word-break: break-word;
}

.comment-post .author-rank img {
  width:88px;
}

.comment-post .post-date {
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

/* prawa kolumna komentarza */
.comment-post .post-content {
  padding: 6px 10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

/* brak tytułu w komentarzach — text mniejszy */
.comment-post .post-title {
  display:none;
}

/* treść komentarza jako karta, trochę cieńsza */
.comment-text-small {
  padding:10px;
  font-size:14px;
  line-height:1.45;
  background: transparent;
  border:none;
  box-shadow: none;
}

/* attachment w komentarzu */
.comment-post .comment-attachment {
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

/* responsywność komentarzy */
@media (max-width:980px){
  .comment-post.card {
    flex-direction: column;
    padding:10px;
  }
  .comment-post .post-author {
    width:100%;
    min-width:unset;
    flex-direction:row;
    align-items:center;
    gap:12px;
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,0.02);
    padding:10px;
  }
  .comment-post .author-avatar { width:56px; height:56px; }
  .comment-post .author-username { font-size:13px; text-align:left; }
  .comment-text-small { font-size:14px; }
}

/* --- END styles.css --- */
