/* ═══════════════════════════════════════════════════════════════
   comments.css — seotoolpro.ro
   Integrat cu tema SEOBox (light, fundal alb)
   Plasează în: theme/seobox/css/comments.css
═══════════════════════════════════════════════════════════════ */

.stp-comments-wrap *,
.stp-comments-wrap *::before,
.stp-comments-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.stp-comments-wrap {
  --c-bg:       #ffffff;
  --c-bg2:      #f8f9fb;
  --c-border:   #e2e5ea;
  --c-text:     #1c1e24;
  --c-muted:    #6b7280;
  --c-accent:   #2563eb;
  --c-accent-h: #1d4ed8;
  --c-green:    #16a34a;
  --c-red:      #dc2626;
  --radius:     8px;
  --font:       inherit;

  font-family: var(--font);
  color:       var(--c-text);
  background:  transparent;
  width:       100%;
  padding:     0;
  margin:      0;
}

/* ── Separator ───────────────────────────────────────────────── */
.stp-comments-divider {
  border: none;
  border-top: 2px solid var(--c-border);
  margin: 32px 0 28px;
}

/* ── Contor comentarii ───────────────────────────────────────── */
.stp-comments-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stp-count-badge {
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   FORMULAR
══════════════════════════════════════════════════════════════ */
.stp-form-wrap {
  background:    var(--c-bg);
  border:        1px solid var(--c-border);
  border-radius: var(--radius);
  padding:       24px;
  margin-bottom: 36px;
}

.stp-form-wrap h4 {
  font-size:     16px;
  font-weight:   600;
  color:         var(--c-text);
  margin-bottom: 18px;
}

.stp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .stp-form-row { grid-template-columns: 1fr; }
}

.stp-field-full { grid-column: 1 / -1; }

.stp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stp-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stp-field input,
.stp-field textarea {
  background:  var(--c-bg);
  border:      1.5px solid var(--c-border);
  border-radius: 6px;
  padding:     10px 14px;
  font-size:   14px;
  font-family: inherit;
  color:       var(--c-text);
  width:       100%;
  outline:     none;
  transition:  border-color .2s, box-shadow .2s;
}

.stp-field input::placeholder,
.stp-field textarea::placeholder { color: #b0b7c3; }

.stp-field input:focus,
.stp-field textarea:focus {
  border-color: var(--c-accent);
  box-shadow:   0 0 0 3px rgba(37,99,235,.1);
}

.stp-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.stp-char-count {
  font-size: 12px;
  color: var(--c-muted);
  text-align: right;
}
.stp-char-count.warn { color: var(--c-red); font-weight: 600; }

.stp-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.stp-form-note {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.5;
}

.stp-btn-submit {
  background:    var(--c-accent);
  color:         #fff;
  border:        none;
  border-radius: 6px;
  padding:       11px 26px;
  font-size:     14px;
  font-weight:   600;
  font-family:   inherit;
  cursor:        pointer;
  transition:    background .2s, transform .1s;
  white-space:   nowrap;
  display:       flex;
  align-items:   center;
  gap:           7px;
}
.stp-btn-submit:hover  { background: var(--c-accent-h); }
.stp-btn-submit:active { transform: scale(.97); }
.stp-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.stp-feedback {
  margin-top:    12px;
  padding:       10px 14px;
  border-radius: 6px;
  font-size:     13px;
  display:       none;
}
.stp-feedback.show { display: block; }
.stp-feedback.ok  { background: #f0fdf4; color: var(--c-green); border: 1px solid #bbf7d0; }
.stp-feedback.err { background: #fef2f2; color: var(--c-red);   border: 1px solid #fecaca; }

/* ══════════════════════════════════════════════════════════════
   LISTA COMENTARII
══════════════════════════════════════════════════════════════ */
.stp-loading {
  text-align: center;
  color:      var(--c-muted);
  padding:    30px 0;
  font-size:  14px;
}

.stp-spinner {
  display:       inline-block;
  width:         16px;
  height:        16px;
  border:        2.5px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation:     stpSpin .7s linear infinite;
  margin-right:  6px;
  vertical-align: middle;
}
@keyframes stpSpin { to { transform: rotate(360deg); } }

.stp-empty {
  text-align: center;
  color:      var(--c-muted);
  padding:    40px 0;
  font-size:  14px;
}

.stp-comment-list {
  display:        flex;
  flex-direction: column;
}

/* ── Un comentariu ───────────────────────────────────────────── */
.stp-comment {
  display:       flex;
  gap:           14px;
  padding:       20px 0;
  border-bottom: 1px solid var(--c-border);
  animation:     stpIn .3s ease;
}
@keyframes stpIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stp-comment:last-child { border-bottom: none; }

.stp-avatar {
  flex-shrink:   0;
  width:         48px;
  height:        48px;
  border-radius: 50%;
  object-fit:    cover;
  border:        2px solid var(--c-border);
  background:    #e8edf5;
}

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

.stp-comment-meta {
  display:       flex;
  align-items:   center;
  gap:           10px;
  margin-bottom: 7px;
  flex-wrap:     wrap;
}

.stp-comment-name {
  font-size:   15px;
  font-weight: 700;
  color:       var(--c-text);
}

.stp-comment-date {
  font-size: 12px;
  color:     var(--c-muted);
}

.stp-badge-pending {
  background:    #fef3c7;
  color:         #92400e;
  font-size:     11px;
  font-weight:   600;
  padding:       2px 8px;
  border-radius: 20px;
}

.stp-comment-text {
  font-size:   15px;
  line-height: 1.7;
  color:       var(--c-text);
  word-break:  break-word;
}

/* ── Acțiuni ─────────────────────────────────────────────────── */
.stp-comment-actions {
  display:     flex;
  align-items: center;
  gap:         6px;
  margin-top:  10px;
  flex-wrap:   wrap;
}

.stp-btn-action {
  background:    none;
  border:        1.5px solid var(--c-border);
  border-radius: 20px;
  padding:       4px 12px;
  font-size:     12px;
  font-family:   inherit;
  cursor:        pointer;
  color:         var(--c-muted);
  display:       flex;
  align-items:   center;
  gap:           5px;
  transition:    all .15s;
}
.stp-btn-action:hover    { background: var(--c-bg2); border-color: #c5cad3; color: var(--c-text); }
.stp-btn-action.liked    { border-color: var(--c-accent); color: var(--c-accent); background: #eff6ff; }
.stp-btn-action.disliked { border-color: var(--c-red);    color: var(--c-red);    background: #fef2f2; }

.stp-btn-reply {
  background:  none;
  border:      none;
  color:       var(--c-accent);
  font-size:   12px;
  font-family: inherit;
  font-weight: 600;
  cursor:      pointer;
  padding:     4px 6px;
  transition:  opacity .15s;
}
.stp-btn-reply:hover { opacity: .7; }

/* ── Nested replies ──────────────────────────────────────────── */
.stp-children {
  margin-top:   14px;
  padding-left: 18px;
  border-left:  3px solid var(--c-border);
}
.stp-children .stp-comment      { padding: 14px 0; }
.stp-children .stp-avatar       { width: 38px; height: 38px; }
.stp-children .stp-comment-name { font-size: 14px; }
.stp-children .stp-comment-text { font-size: 14px; }

/* ── Reply form inline ───────────────────────────────────────── */
.stp-inline-reply {
  background:    var(--c-bg2);
  border:        1px solid var(--c-border);
  border-radius: var(--radius);
  padding:       14px;
  margin-top:    12px;
  display:       none;
}
.stp-inline-reply.open { display: block; animation: stpIn .2s ease; }

.stp-inline-reply input,
.stp-inline-reply textarea {
  background:    var(--c-bg);
  border:        1.5px solid var(--c-border);
  border-radius: 6px;
  padding:       8px 12px;
  font-size:     13px;
  font-family:   inherit;
  color:         var(--c-text);
  width:         100%;
  margin-bottom: 8px;
  outline:       none;
  transition:    border-color .2s;
}
.stp-inline-reply input:focus,
.stp-inline-reply textarea:focus { border-color: var(--c-accent); }
.stp-inline-reply textarea { min-height: 80px; resize: vertical; }

.stp-inline-reply-actions { display: flex; gap: 8px; justify-content: flex-end; }

.stp-btn-cancel {
  background:    none;
  border:        1.5px solid var(--c-border);
  border-radius: 6px;
  padding:       7px 16px;
  font-size:     13px;
  font-family:   inherit;
  cursor:        pointer;
  color:         var(--c-muted);
  transition:    all .15s;
}
.stp-btn-cancel:hover { background: var(--c-border); }

.stp-btn-reply-submit {
  background:    var(--c-accent);
  color:         #fff;
  border:        none;
  border-radius: 6px;
  padding:       7px 18px;
  font-size:     13px;
  font-weight:   600;
  font-family:   inherit;
  cursor:        pointer;
  transition:    background .2s;
}
.stp-btn-reply-submit:hover { background: var(--c-accent-h); }

/* ── Load more ───────────────────────────────────────────────── */
.stp-load-more { text-align: center; margin-top: 24px; }

.stp-btn-more {
  background:    var(--c-bg2);
  border:        1.5px solid var(--c-border);
  border-radius: 6px;
  padding:       10px 30px;
  font-size:     14px;
  font-family:   inherit;
  font-weight:   600;
  cursor:        pointer;
  color:         var(--c-text);
  transition:    all .15s;
}
.stp-btn-more:hover { background: var(--c-border); }

/* ── CAPTCHA ─────────────────────────────────────────────────── */
.stp-captcha-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.stp-captcha-row .stp-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
  display: block;
}

.stp-captcha-row input[type=number] {
  background:    var(--c-bg);
  border:        1.5px solid var(--c-border);
  border-radius: 6px;
  padding:       10px 14px;
  font-size:     14px;
  font-family:   inherit;
  color:         var(--c-text);
  width:         140px;
  outline:       none;
  transition:    border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.stp-captcha-row input[type=number]::-webkit-inner-spin-button,
.stp-captcha-row input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.stp-captcha-row input[type=number]:focus {
  border-color: var(--c-accent);
  box-shadow:   0 0 0 3px rgba(37,99,235,.1);
}

.stp-captcha-refresh {
  background:    var(--c-bg2);
  border:        1.5px solid var(--c-border);
  border-radius: 6px;
  padding:       10px 12px;
  cursor:        pointer;
  color:         var(--c-muted);
  display:       flex;
  align-items:   center;
  transition:    all .15s;
  flex-shrink:   0;
  margin-bottom: 0;
}
.stp-captcha-refresh:hover {
  background: var(--c-border);
  color:      var(--c-text);
}
