/* ── CareerStack Comments Widget ── */
.cw-wrap {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 24px 64px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.cw-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6366F1;
  margin-bottom: 10px;
}

.cw-prompt {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  line-height: 1.3;
}

/* ── Form ── */
.cw-form {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 32px;
}

.cw-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0F172A;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.cw-input::placeholder { color: #94A3B8; }
.cw-input:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.cw-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #0F172A;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 13px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.6;
  box-sizing: border-box;
}

.cw-textarea::placeholder { color: #94A3B8; }
.cw-textarea:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.cw-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.cw-char-count {
  font-size: 11px;
  color: #94A3B8;
}

.cw-submit {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #6366F1;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.cw-submit:hover { background: #4F46E5; transform: translateY(-1px); }
.cw-submit:disabled { opacity: .6; cursor: default; transform: none; }

/* ── Comments list ── */
.cw-empty {
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
  padding: 32px 0;
  font-style: italic;
}

.cw-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  transition: box-shadow .2s;
}

.cw-comment:hover { box-shadow: 0 4px 16px rgba(15,23,42,.07); }

.cw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .03em;
}

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

.cw-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cw-comment-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.cw-comment-time {
  font-size: 11px;
  color: #94A3B8;
}

.cw-comment-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 8px;
  word-break: break-word;
}

.cw-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #E2E8F0;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.cw-like-btn:hover { border-color: #FDA4AF; color: #EF4444; }
.cw-like-btn.cw-liked { border-color: #FDA4AF; color: #EF4444; background: #FFF1F2; }

@media (max-width: 640px) {
  .cw-wrap { padding: 0 16px 48px; }
  .cw-prompt { font-size: 18px; }
}
