/* SKNWRLD Comments - clean lightweight UI
   Uses your theme tokens where possible:
   --accent, --border, --text, --muted, --bg
*/

.sknwc{
  margin-top: 36px;
  border-top: 1px solid var(--border, #e6e6e6);
  padding-top: 22px;
  position: relative;
}

/* Header */
.sknwc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sknwc-title{
  display:flex;
  align-items:baseline;
  gap: 10px;
}

.sknwc-title__label{
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #111);
}

.sknwc-title__count{
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
}

.sknwc-controls{
  display:flex;
  align-items:center;
  gap: 10px;
}

.sknwc-sort{
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text, #111);
}

/* Compose */
.sknwc-compose{
  margin: 10px 0 16px;
}

.sknwc-login-hint{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,.18);
  color: var(--muted, #4b4b4b);
  background: rgba(255,255,255,.6);
}

.sknwc-login-hint__icon{
  font-size: 18px;
}

.sknwc-form{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.sknwc-row{ margin-bottom: 10px; }

/* Inputs + textareas (make them actually nice) */
.sknwc-input,
.sknwc-textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text, #111);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.sknwc-input::placeholder,
.sknwc-textarea::placeholder{
  color: rgba(17,17,17,.45);
  font-weight: 700;
}

.sknwc-textarea{
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
  font-weight: 650;
}

.sknwc-textarea--reply{
  min-height: 82px;
}

.sknwc-textarea--edit{
  min-height: 110px;
}

/* Proper focus ring in SKN red, not blue */
.sknwc-input:focus,
.sknwc-textarea:focus{
  border-color: rgba(123,17,19,.35);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(123,17,19,.10),
    inset 0 1px 0 rgba(0,0,0,.03);
}

/* Better textarea scrollbar */
.sknwc-textarea{
  scrollbar-width: thin;
}
.sknwc-textarea::-webkit-scrollbar{
  width: 10px;
}
.sknwc-textarea::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.85);
}
.sknwc-textarea::-webkit-scrollbar-track{
  background: transparent;
}

/* Actions */
.sknwc-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 8px;
}

.sknwc-actions--reply,
.sknwc-actions--edit{
  justify-content:flex-start;
}

.sknwc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--accent, #7B1113);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform .08s ease, opacity .12s ease, box-shadow .12s ease;
}

.sknwc-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}
.sknwc-btn:disabled{ opacity: .55; cursor: not-allowed; transform:none; box-shadow:none; }

.sknwc-btn__icon{ font-size: 16px; line-height: 1; }

.sknwc-btn--ghost{
  background: rgba(255,255,255,.90);
  color: var(--text, #111);
}

.sknwc-btn--ghost:hover{
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.sknwc-btn--small{
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.sknwc-note{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--muted, #4b4b4b);
  font-size: 12px;
  font-weight: 700;
  opacity: .92;
  user-select:none;
}

.sknwc-note__dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
}

/* List */
.sknwc-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.sknwc-empty{
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,.18);
  color: var(--muted, #4b4b4b);
  background: rgba(255,255,255,.55);
}

/* Items */
.sknwc-item{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.sknwc-item[data-depth="2"]{
  margin-left: 34px;
  border-left: 3px solid rgba(123,17,19,.18);
}

.sknwc-item.is-pinned{
  border-color: rgba(123,17,19,.22);
  box-shadow: 0 12px 34px rgba(123,17,19,.10);
}

/* Avatar: force circle, crop images, keep letter avatars centered */
.sknwc-ava{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 18px;
  color: #111;
  background: rgba(0,0,0,.07);
}

.sknwc-ava img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Letter avatar span from render.php */
.sknwc-letterAvatar{
  display:inline-grid;
  place-items:center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
  color: #111;
  background: rgba(0,0,0,.07);
}

.sknwc-body{ flex: 1; min-width: 0; }

.sknwc-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.sknwc-meta-left{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}

.sknwc-author{
  font-weight: 900;
  font-size: 13px;
  color: var(--text, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.sknwc-dot{ opacity: .55; }

.sknwc-time{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #4b4b4b);
  white-space: nowrap;
}

.sknwc-pin{
  font-size: 13px;
  opacity: .85;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}

.sknwc-meta-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Icon buttons (Reply/Edit/Delete/Pin) */
.sknwc-iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
  line-height: 1;
  text-decoration: none;
}

.sknwc-iconbtn i{
  font-size: 14px;
  line-height: 1;
  display:block;
}

.sknwc-link{
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted, #4b4b4b);
  cursor: pointer;
  text-decoration: none;
}

.sknwc-iconbtn.sknwc-link{
  color: var(--muted, #4b4b4b);
}

.sknwc-link:hover{
  color: var(--accent, #7B1113);
  text-decoration: underline;
}

.sknwc-iconbtn:hover{
  color: var(--accent, #7B1113);
  text-decoration: none;
  border-color: rgba(123,17,19,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.sknwc-link--danger:hover{
  color: #b91c1c;
}

.sknwc-iconbtn.sknwc-link--danger:hover{
  border-color: rgba(185,28,28,.22);
}

.sknwc-link--admin:hover{
  color: #0f766e;
}

.sknwc-iconbtn.sknwc-link--admin:hover{
  border-color: rgba(15,118,110,.22);
}

/* Content */
.sknwc-content{
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #111);
  overflow-wrap: anywhere;
}

.sknwc-content p{ margin: 0 0 8px; }
.sknwc-content p:last-child{ margin-bottom: 0; }

/* Footer row: keep heart aligned */
.sknwc-foot{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap: 10px;
  margin-top: 10px;
}

.sknwc-heart{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
  color: var(--text, #111);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.sknwc-heart:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.sknwc-heart.is-on{
  border-color: rgba(123,17,19,.20);
  box-shadow: 0 10px 20px rgba(123,17,19,.10);
}

.sknwc-heart__icon{
  font-size: 16px;
  line-height: 1;
}

.sknwc-heart__count{
  min-width: 18px;
  text-align: center;
}

.sknwc-replies{
  display:flex;
  flex-direction:column;
  gap: 10px;
  width: 100%;
}

/* Reply box */
.sknwc-replybox{
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
}

/* Load more */
.sknwc-more{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}

/* Toast */
.sknwc-toast{
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(17,17,17,.90);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
}

.sknwc-toast.is-on{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px){
  .sknwc-head{ flex-direction:column; align-items:flex-start; }
  .sknwc-item[data-depth="2"]{ margin-left: 18px; }
  .sknwc-author{ max-width: 170px; }
  .sknwc-meta{ align-items:flex-start; flex-direction:column; }
  .sknwc-meta-right{ gap: 10px; flex-wrap:wrap; }
}