/* ============================================================
   DESNORA COMMENTS - comments.css (loaded by includes/comments.php)
   ============================================================ */

.cm-section {
    padding: 4rem 0 6rem;
    background: var(--bg-dark, #010101);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cm-wrap {
    max-width: 800px;
}

.cm-title {
    display: block;
    margin: 0 0 1.5rem;
    font: 700 clamp(1.5rem, 2.6vw, 2rem) 'Poppins', sans-serif;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.cm-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    line-height: 1.6;
}

.cm-notice-ok {
    color: #d4fffd;
    background: rgba(37, 244, 238, 0.08);
    border: 1px solid rgba(37, 244, 238, 0.35);
}

.cm-notice-err {
    color: #ffd6de;
    background: rgba(254, 44, 85, 0.08);
    border: 1px solid rgba(254, 44, 85, 0.4);
}

.cm-empty {
    margin: 0 0 2rem;
    color: #8b8b95;
}

.cm-list {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.cm-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(160deg, #141418, #0a0a0d 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font: 700 1rem 'Poppins', sans-serif;
    color: #05070d;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

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

.cm-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.35rem;
}

.cm-meta b {
    font: 600 0.95rem 'Poppins', sans-serif;
    color: #fff;
    overflow-wrap: anywhere;
}

.cm-meta time {
    font-size: 0.8rem;
    color: #8b8b95;
}

.cm-body p {
    margin: 0;
    line-height: 1.7;
    color: #c4c4cc;
    overflow-wrap: anywhere;
}

/* form */
.cm-form {
    position: relative;
    padding: 2rem;
    border-radius: 22px;
    background: linear-gradient(160deg, #141418, #0a0a0d 70%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 60px -30px rgba(254, 44, 85, 0.35), 0 0 60px -30px rgba(37, 244, 238, 0.3);
    isolation: isolate;
}

.cm-form::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.85), rgba(255, 255, 255, 0.08) 45%, rgba(37, 244, 238, 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

.cm-form h3 {
    margin: 0 0 0.35rem;
    font: 700 1.2rem 'Poppins', sans-serif;
    color: #fff;
}

.cm-form-note {
    margin: 0 0 1.5rem;
    font-size: 0.88rem;
    color: #8b8b95;
}

.cm-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cm-field {
    display: block;
    margin-bottom: 1rem;
}

.cm-field span {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b4b4bd;
}

.cm-field span i {
    font-style: normal;
    color: #FE2C55;
}

.cm-field span small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #8b8b95;
}

.cm-field input,
.cm-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-field textarea {
    min-height: 130px;
    resize: vertical;
}

.cm-field input:focus,
.cm-field textarea:focus {
    outline: none;
    border-color: #25F4EE;
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.14);
}

/* no-links note under the comment box */
.cm-hint {
    margin: -0.4rem 0 1.25rem;
    font-size: 0.82rem;
    color: #8b8b95;
}

.cm-form-msg:empty {
    display: none;
}

/* honeypot: kept out of sight for people, still in the form for bots */
.cm-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cm-submit {
    padding: 0.95rem 2rem;
    border: 0;
    border-radius: 10px;
    font: 600 1rem 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #FE2C55, #ff4d73);
    box-shadow: 0 12px 30px -10px rgba(254, 44, 85, 0.7);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(254, 44, 85, 0.85);
}

.cm-submit:focus-visible {
    outline: 2px solid #25F4EE;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .cm-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .cm-form {
        padding: 1.5rem 1.2rem;
    }

    .cm-item {
        padding: 1rem;
    }

    .cm-submit {
        width: 100%;
    }
}

/* ---- threaded replies ---- */
.cm-item {
    flex-wrap: wrap;
}

.cm-replies,
.cm-reply-slot {
    flex: 0 0 100%;
}

.cm-replies {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid rgba(37, 244, 238, 0.25);
    display: grid;
    gap: 0.65rem;
}

.cm-item-reply {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.cm-item-reply .cm-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}

.cm-reply-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #25F4EE;
}

.cm-reply-btn {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #25F4EE;
    text-decoration: none;
}

.cm-reply-btn:hover {
    text-decoration: underline;
}

.cm-reply-btn:focus-visible,
.cm-cancel:focus-visible {
    outline: 2px solid #25F4EE;
    outline-offset: 2px;
    border-radius: 4px;
}

.cm-team-badge {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #05070d;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

.cm-item-team {
    border-color: rgba(37, 244, 238, 0.35);
}

.cm-reply-slot:empty {
    display: none;
}

.cm-reply-form {
    margin-top: 0.75rem;
    padding: 1.4rem;
}

.cm-reply-form h3 {
    font-size: 1.05rem;
}

.cm-reply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.cm-cancel {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b8b95;
    text-decoration: none;
}

.cm-cancel:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .cm-replies {
        padding-left: 0.75rem;
    }

    .cm-item-reply {
        padding: 0.8rem;
    }

    .cm-reply-form {
        padding: 1.1rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm-submit,
    .cm-field input,
    .cm-field textarea {
        transition: none;
    }

    .cm-submit:hover {
        transform: none;
    }
}
