
:root{
  --nc-bg: #ffffff;
  --nc-soft: #f5f7fb;
  --nc-border: #e6e8ee;
  --nc-text: #1f2937;
  --nc-muted: #64748b;
  --nc-primary: #3b82f6;
  --nc-radius: 16px;
  --nc-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.nc-wrap{
  margin: 40px 0;
  padding: 0;
  direction: rtl;
}

.nc-title{
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nc-text);
}

.nc-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.nc-list .children{
  list-style: none;
  margin: 10px 28px 0 0;
  padding: 0;
  border-right: 2px solid var(--nc-soft);
}

.nc-card{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--nc-bg);
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
}

.nc-avatar-img{
  border-radius: 50%;
  display: block;
}

.nc-body{ min-width: 0; }

.nc-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.nc-author{ font-weight: 700; color: var(--nc-text); }

.nc-date{ font-size: .875rem; color: var(--nc-muted); }

.nc-edit a{
  font-size: .875rem;
  color: var(--nc-primary);
  text-decoration: none;
}

.nc-content{ color: var(--nc-text); line-height: 1.8; }
.nc-content p{ margin: 0 0 10px 0; }

.nc-actions{ margin-top: 10px; }

.nc-reply a{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--nc-primary);
  border-radius: 999px;
  text-decoration: none;
  font-size: .875rem;
  color: var(--nc-primary);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.nc-reply a:hover{
  background: var(--nc-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Form */
.nc-form{
  margin-top: 28px;
  padding: 18px;
  background: var(--nc-soft);
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
}

.nc-field{ display: block; margin-bottom: 14px; }
.nc-field.half{ width: 100%; }

@media (min-width: 640px){
  .nc-field.half{ width: calc(50% - 8px); display: inline-block; vertical-align: top; }
  .nc-field.half + .nc-field.half{ margin-inline-start: 16px; }
}

.nc-field label{
  display: block;
  font-size: .875rem;
  color: var(--nc-muted);
  margin-bottom: 6px;
}

.nc-input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nc-border);
  border-radius: 12px;
  background: #fff;
  color: var(--nc-text);
  outline: none;
}

.nc-input:focus{
  border-color: var(--nc-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.nc-submit{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.nc-btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--nc-primary);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}

.nc-btn:hover{ transform: translateY(-1px); opacity: .95; }

.nc-closed, .nc-moderation{
  display: block;
  margin: 12px 0;
  color: var(--nc-muted);
  font-style: italic;
}

/* LTR fallback */
.nc-wrap:dir(ltr){ direction: ltr; }
.nc-wrap:dir(ltr) .nc-list .children{ margin: 10px 0 0 28px; border-left: 2px solid var(--nc-soft); border-right: 0; }
