/* ═══════════════════════════════════════════════
   NerveConnect — Likes & Comments
   ═══════════════════════════════════════════════ */

/* ── Like button ── */
.ncf-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #e0e6f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.ncf-like-btn:hover {
    border-color: #FC5102;
    color: #FC5102;
    background: #fff5f0;
}

.ncf-like-btn.ncf-liked {
    border-color: #FC5102;
    color: #FC5102;
    background: #fff5f0;
}

.ncf-like-btn.ncf-loading {
    opacity: .6;
    cursor: wait;
}

.ncf-like-icon { font-size: 15px; line-height: 1; }
.ncf-like-count { font-size: 13px; font-weight: 700; }

/* ── Comments toggle button ── */
.ncf-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #e0e6f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
}

.ncf-comments-toggle:hover {
    border-color: #215AA9;
    color: #215AA9;
    background: #f0f5ff;
}

.ncf-comment-icon  { font-size: 15px; }
.ncf-comment-count { font-weight: 700; }

.ncf-toggle-arrow {
    display: inline-block;
    transition: transform .25s ease;
    font-size: 11px;
    color: #999;
}

/* ── Comments panel ── */
.ncf-comments-panel {
    margin-top: 12px;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fafcff;
}

/* ── Comments list ── */
.ncf-comments-list {
    padding: 14px 16px 0;
    max-height: 260px;
    overflow-y: auto;
}

.ncf-no-comments {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 8px 0 14px;
    margin: 0;
}

.ncf-comment {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f8;
}

.ncf-comment:last-child { border-bottom: none; }

.ncf-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.ncf-comment-author {
    font-size: 13px;
    font-weight: 700;
    color: #215AA9;
}

.ncf-comment-date {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

.ncf-comment-text {
    font-size: 13px;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

/* New comment highlight */
.ncf-comment--new {
    animation: ncf-fade-in .4s ease;
}

@keyframes ncf-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Comment form ── */
.ncf-comment-form {
    padding: 14px 16px 16px;
    border-top: 1px solid #e8eef8;
}

.ncf-comment-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .ncf-comment-fields { grid-template-columns: 1fr; }
}

.ncf-comment-input,
.ncf-comment-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #c9d8ef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color .18s, box-shadow .18s;
}

.ncf-comment-input:focus,
.ncf-comment-textarea:focus {
    outline: none;
    border-color: #215AA9;
    box-shadow: 0 0 0 3px rgba(33,90,169,.1);
}

.ncf-comment-input::placeholder,
.ncf-comment-textarea::placeholder { color: #aab8cd; }

.ncf-comment-textarea {
    resize: vertical;
    min-height: 70px;
    margin-bottom: 8px;
    display: block;
}

/* ── Form footer ── */
.ncf-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ncf-comment-submit {
    background: #215AA9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    white-space: nowrap;
}

.ncf-comment-submit:hover    { background: #1a4a8c; }
.ncf-comment-submit:disabled { background: #8aacd6; cursor: not-allowed; }

/* ── Status messages ── */
.ncf-comment-msg {
    font-size: 12.5px;
    font-weight: 500;
}

.ncf-msg-ok  { color: #065f46; }
.ncf-msg-err { color: #c0392b; }

/* ── Engage bar (wraps like + comments side by side) ── */
.ncf-engage-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
