﻿/* Jacaranda Comments module
   Scoped so it does not interfere with DNN edit-mode overlays or the Jacaranda navbar. */

.jacaranda-comments {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 128, 0, 0.25);
    border-radius: 6px;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    position: relative;
    font-family: "Times New Roman", Times, serif;
    color: #000;
}

.jacaranda-comments .jc-header {
    align-items: baseline;
    border-bottom: 2px solid #008000;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
}

.jacaranda-comments h2,
.jacaranda-comments h3 {
    color: #008000;
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    margin: 0 0 0.5rem;
}

.jacaranda-comments h2 {
    font-size: 1.7rem;
}

.jacaranda-comments h3 {
    font-size: 1.35rem;
    margin-top: 1rem;
}

.jacaranda-comments .jc-count {
    color: #555;
    font-size: 0.95rem;
}

.jacaranda-comments .jc-empty,
.jacaranda-comments .jc-login-required,
.jacaranda-comments .jc-message {
    border-radius: 4px;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
}

.jacaranda-comments .jc-message-anchor {
    position: relative;
    top: -0.5rem;
}

.jacaranda-comments .jc-empty,
.jacaranda-comments .jc-login-required {
    background: #f8f8f8;
    border: 1px solid #ddd;
}

.jacaranda-comments .jc-message-success {
    background: #eef8ee;
    border: 1px solid #81c348;
}

.jacaranda-comments .jc-message-complete {
    box-shadow: 0 0 0 3px rgba(129, 195, 72, 0.18);
    font-size: 1.08rem;
}

.jacaranda-comments .jc-message:focus {
    outline: 3px solid rgba(0, 128, 0, 0.35);
    outline-offset: 2px;
}

.jacaranda-comments .jc-message-error {
    background: #fff0ec;
    border: 1px solid #f46a25;
}

.jacaranda-comments .jc-toast {
    align-items: flex-start;
    background: #f4fff4;
    border: 4px solid #246b36;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0.85rem 2rem rgba(0, 0, 0, 0.36);
    box-sizing: border-box;
    display: flex;
    gap: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    max-width: 28rem;
    opacity: 1;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
    visibility: hidden;
    width: calc(100% - 1.5rem);
    z-index: 1080;
}

.jacaranda-comments .jc-toast.jc-toast-positioned {
    visibility: visible;
}

.jacaranda-comments .jc-toast.jc-toast-success {
    background: #f4fff4;
    border-color: #246b36;
}

.jacaranda-comments .jc-toast.jc-toast-error {
    background: #fff4f1;
    border-color: #9b2c00;
}

.jacaranda-comments .jc-toast.jc-toast-error .jc-toast-title {
    color: #7a2200;
}

.jacaranda-comments .jc-toast.jc-toast-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
}

.jacaranda-comments .jc-toast-icon {
    align-items: center;
    background: #246b36;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #246b36;
    color: #fff;
    display: inline-flex;
    flex: 0 0 1.75rem;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    margin-top: 0.05rem;
    width: 1.75rem;
}

.jacaranda-comments .jc-toast-success .jc-toast-icon::before {
    content: "\2713";
}

.jacaranda-comments .jc-toast-error .jc-toast-icon {
    background: #9b2c00;
    box-shadow: 0 0 0 2px #9b2c00;
}

.jacaranda-comments .jc-toast-error .jc-toast-icon::before {
    content: "!";
}

.jacaranda-comments .jc-toast-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.jacaranda-comments .jc-toast-title {
    color: #165127;
    font-size: 1.05rem;
    line-height: 1.25;
}

.jacaranda-comments .jc-toast-message {
    color: #000;
    line-height: 1.4;
}

.jacaranda-comments .jc-toast-close {
    align-items: center;
    background: #fff;
    border: 2px solid #333;
    border-radius: 4px;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 2rem;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: bold;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2rem;
}

.jacaranda-comments .jc-toast-close:hover,
.jacaranda-comments .jc-toast-close:focus {
    background: #f1f1f1;
    border-color: #000;
    color: #000;
    outline: 3px solid rgba(0, 80, 180, 0.45);
    outline-offset: 2px;
}

.jacaranda-comments .jc-comment {
    border-bottom: 1px solid rgba(0, 128, 0, 0.18);
    padding: 0.9rem 0;
}

.jacaranda-comments .jc-comment:last-of-type {
    border-bottom: 0;
}

.jacaranda-comments .jc-comment:focus {
    outline: 3px solid rgba(0, 128, 0, 0.4);
    outline-offset: 3px;
}

.jacaranda-comments .jc-depth-1,
.jacaranda-comments .jc-depth-2,
.jacaranda-comments .jc-depth-3 {
    border-left: 3px solid rgba(129, 195, 72, 0.65);
    margin-left: 1.25rem;
    padding-left: 1rem;
}

.jacaranda-comments .jc-depth-2 {
    margin-left: 2.5rem;
}

.jacaranda-comments .jc-depth-3 {
    margin-left: 3.75rem;
}

.jacaranda-comments .jc-comment-pending,
.jacaranda-comments .jc-pending {
    opacity: 0.78;
}

.jacaranda-comments .jc-comment-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.jacaranda-comments .jc-comment-author {
    color: #008000;
    font-size: 1.05rem;
}

.jacaranda-comments .jc-comment-date,
.jacaranda-comments .jc-comment-edited {
    color: #666;
    font-size: 0.9rem;
}

.jacaranda-comments .jc-comment-edited:empty {
    display: none;
}

.jacaranda-comments .jc-comment-status {
    background: #f46a25;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

.jacaranda-comments .jc-comment-status:empty {
    display: none;
}

.jacaranda-comments .jc-comment-body {
    font-size: 1.08rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.jacaranda-comments .jc-comment-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.jacaranda-comments .jc-moderation {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.jacaranda-comments .jc-action {
    color: #008000;
    font-size: 0.95rem;
    font-weight: bold;
}

.jacaranda-comments .jc-action:hover,
.jacaranda-comments .jc-action:focus {
    color: #004c00;
}

.jacaranda-comments .jc-action-danger {
    color: #803100;
}

.jacaranda-comments .jc-reply {
    color: #006800;
}

.jacaranda-comments .jc-edit {
    color: #5a4500;
}

.jacaranda-comments .jc-form {
    border-top: 2px solid rgba(0, 128, 0, 0.2);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.jacaranda-comments .jc-reply-context,
.jacaranda-comments .jc-edit-context {
    align-items: center;
    background: #eef8ee;
    border: 1px solid #81c348;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 0.5rem 0 0.85rem;
    padding: 0.65rem 0.75rem;
}

.jacaranda-comments .jc-edit-context {
    background: #fff9e8;
    border-color: #c49a20;
}

.jacaranda-comments .jc-cancel-reply,
.jacaranda-comments .jc-cancel-edit {
    color: #803100;
    font-size: 0.95rem;
    font-weight: bold;
}

.jacaranda-comments .jc-field {
    margin-bottom: 0.85rem;
}

.jacaranda-comments label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.jacaranda-comments .jc-input,
.jacaranda-comments .jc-textarea {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    max-width: 100%;
    padding: 0.55rem;
    width: 100%;
}

.jacaranda-comments .jc-textarea {
    min-height: 8rem;
    resize: vertical;
}

.jacaranda-comments .jc-submit {
    background: #008000;
    border: 1px solid #006800;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.55rem 1rem;
}

.jacaranda-comments .jc-submit:hover,
.jacaranda-comments .jc-submit:focus {
    background: #004c00;
}

.jacaranda-comments .jc-field-help {
    color: #555;
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
    text-indent: 0;
}

.jacaranda-comments .jc-guest-notice {
    background: #f7f7ff;
    border: 2px solid #5757a8;
    border-radius: 4px;
    margin: 0.5rem 0 0.85rem;
    padding: 0.7rem 0.8rem;
}

.jacaranda-comments .jc-note {
    color: #555;
    font-size: 0.9rem;
    margin: 0.65rem 0 0;
    text-indent: 0;
}

.jacaranda-comments .jc-comment-length {
    color: #555;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    margin: 0.35rem 0 0;
    text-indent: 0;
}

.jacaranda-comments .jc-character-counter {
    white-space: nowrap;
}

.jacaranda-comments .jc-character-counter.jc-over-limit,
.jacaranda-comments .jc-validation {
    color: #a00000;
    font-weight: bold;
}

.jacaranda-comments .jc-hp {
    left: -10000px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .jacaranda-comments {
        padding: 0.85rem;
    }
    .jacaranda-comments .jc-toast {
        max-width: none;
    }


    .jacaranda-comments .jc-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .jacaranda-comments .jc-depth-1,
    .jacaranda-comments .jc-depth-2,
    .jacaranda-comments .jc-depth-3 {
        margin-left: 0.65rem;
        padding-left: 0.75rem;
    }
}


/* =========================
   SETTINGS / ANTI-SPAM UI
   ========================= */

.jacaranda-comments .jc-captcha-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jacaranda-comments .jc-captcha-question {
    color: #008000;
    font-weight: bold;
    min-width: 4.5rem;
}

.jacaranda-comments .jc-captcha-input {
    border: 3px solid #1b1b1b;
    box-shadow: 0 0 0 1px #fff, 0 2px 5px rgba(0, 0, 0, 0.22);
    font-size: 1.125rem;
    font-weight: bold;
    min-height: 2.75rem;
    max-width: 8rem;
    padding: 0.5rem 0.65rem;
}

.jacaranda-comments .jc-captcha-input:hover {
    border-color: #000;
}

.jacaranda-comments .jc-captcha-input:focus {
    border-color: #005fcc;
    box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.28);
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.jacaranda-comments.jc-settings {
    max-width: 960px;
}

.jacaranda-comments .jc-settings-section {
    border: 1px solid rgba(0, 128, 0, 0.2);
    border-radius: 6px;
    margin: 1rem 0;
    padding: 1rem;
}

.jacaranda-comments .jc-settings-section legend {
    color: #008000;
    float: none;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 0 0.35rem;
    width: auto;
}

.jacaranda-comments .jc-setting-row {
    margin-bottom: 0.75rem;
}

.jacaranda-comments .jc-setting-row label {
    display: inline;
    font-weight: normal;
    margin-left: 0.35rem;
}

.jacaranda-comments .jc-setting-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jacaranda-comments .jc-setting-help,
.jacaranda-comments .jc-setting-warning {
    color: #555;
    font-size: 0.92rem;
    margin: 0.3rem 0 0;
    text-indent: 0;
}

.jacaranda-comments .jc-setting-warning {
    background: #fff8e6;
    border-left: 4px solid #9a6b00;
    color: #4d3600;
    padding: 0.55rem 0.7rem;
}

.jacaranda-comments .jc-setting-number .jc-input {
    max-width: 12rem;
}

@media (max-width: 767.98px) {
    .jacaranda-comments .jc-setting-grid {
        grid-template-columns: 1fr;
    }
}


.jacaranda-comments .jc-input[readonly] {
    background: #f5f5f5;
    color: #555;
    cursor: not-allowed;
}

/* 01.01.02 private language-filter indicators */
.jacaranda-comments .jc-language-flag {
    background: #fff4d6;
    border: 2px solid #8a5a00;
    border-radius: 999px;
    color: #4d3200;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: bold;
    line-height: 1.2;
    padding: 0.12rem 0.45rem;
}

.jacaranda-comments .jc-language-terms {
    min-height: 9rem;
}
