/* =========================================
   l00t — Comments (v2)
   ========================================= */

.l00t-comments {
    margin: 4rem auto 2rem;
    max-width: 760px;
    padding: 0 2rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
}

/* ---------- Header ---------- */

.l00t-comments-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 210, 255, 0.1);
    position: relative;
}

.l00t-comments-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: #c8d2ff;
    box-shadow: 0 0 8px rgba(200, 210, 255, 0.6);
}

.l00t-comments-title {
    font-family: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 210, 255, 0.85);
    margin: 0;
}

/* ---------- List ---------- */

.l00t-comment-list,
.l00t-comment-list ol,
.l00t-comment-list ul,
.l00t-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.l00t-comment-list > .l00t-comment {
    margin-bottom: 1.25rem;
}

.l00t-comment .children {
    margin: 1rem 0 0 2.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(200, 210, 255, 0.12);
}

.l00t-comment .children > .l00t-comment {
    margin-bottom: 1rem;
}

/* ---------- Comment card ---------- */

.l00t-comment-body {
    padding: 1.15rem 1.35rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(200, 210, 255, 0.1);
    border-radius: 8px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.l00t-comment-body:hover {
    border-color: rgba(200, 210, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- Head — grid layout (fixes the meta gap) ---------- */

.l00t-comment-head {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    column-gap: 0.85rem;
    margin-bottom: 0.85rem;
}

/* Avatar — fixed box */
.l00t-comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(200, 210, 255, 0.2);
    background: #0a0a0a;
    line-height: 0;
}

.l00t-comment-avatar img,
.l00t-comment-avatar .avatar {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: none;
    vertical-align: middle;
}

/* Meta — tight stack, no gap growth */
.l00t-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.l00t-comment-author,
.l00t-comment-author a {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: lowercase;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.l00t-comment-author a:hover {
    color: #c8d2ff !important;
    text-shadow: 0 0 10px rgba(200, 210, 255, 0.5);
}

.l00t-comment-time {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(200, 200, 210, 0.45);
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.l00t-comment-time time {
    display: inline;
}

/* Pending badge */
.l00t-comment-pending-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff9b40;
    padding: 3px 8px;
    border: 1px solid rgba(255, 155, 64, 0.3);
    background: rgba(255, 155, 64, 0.08);
    border-radius: 3px;
    white-space: nowrap;
    justify-self: end;
    align-self: center;
}

/* Content */
.l00t-comment-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(230, 230, 240, 0.82);
}

.l00t-comment-content p {
    margin: 0 0 0.65rem;
}

.l00t-comment-content p:last-child {
    margin-bottom: 0;
}

.l00t-comment-content a {
    color: #c8d2ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 210, 255, 0.3);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.l00t-comment-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.l00t-comment-content code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88em;
    background: rgba(200, 210, 255, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: #c8d2ff;
}

/* Actions */
.l00t-comment-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.l00t-comment-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c8d2ff !important;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(200, 210, 255, 0.2);
    border-radius: 3px;
    transition: all 0.25s ease;
}

.l00t-comment-actions .comment-reply-link:hover {
    color: #fff !important;
    border-color: rgba(200, 210, 255, 0.6);
    background: rgba(200, 210, 255, 0.06);
    box-shadow: 0 0 12px rgba(200, 210, 255, 0.15);
}

/* ---------- Comment pagination ---------- */

.l00t-comments-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.l00t-comments-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.6rem;
    color: rgba(200, 200, 210, 0.7);
    text-decoration: none;
    border: 1px solid rgba(200, 210, 255, 0.15);
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.l00t-comments-pagination .page-numbers:hover,
.l00t-comments-pagination .page-numbers.current {
    color: #050505;
    background: #c8d2ff;
    border-color: #c8d2ff;
    font-weight: 700;
}

/* ---------- Closed message ---------- */

.l00t-comments-closed {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: rgba(200, 200, 210, 0.45);
    border: 1px dashed rgba(200, 210, 255, 0.15);
    border-radius: 6px;
    margin: 2rem 0;
}

/* =========================================
   Comment form — initial + reply
   ========================================= */

.l00t-comment-form-wrap,
#respond {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(200, 210, 255, 0.08);
}

#respond {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 210, 255, 0.06);
}

.l00t-comment-form-title,
#reply-title {
    font-family: 'Orbitron', 'Rajdhani', system-ui, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 210, 255, 0.85) !important;
    margin: 0 0 1.75rem !important;
    line-height: 1.3;
}

#reply-title {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
}

/* "Cancel reply" link */
#cancel-comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(200, 200, 210, 0.5) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 200, 210, 0.2);
    padding-bottom: 1px;
    transition: color 0.25s ease, border-color 0.25s ease;
    line-height: 1;
}

#cancel-comment-reply-link:hover {
    color: #ff8080 !important;
    border-bottom-color: #ff8080;
}

#reply-title small {
    display: block;
    margin: 0;
    line-height: 1.4;
}

/* Form wrapper */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-form p {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 !important;
}

/* Label */
.comment-form label {
    display: block;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 210, 255, 0.65);
    margin: 0 !important;
    padding: 0 !important;
    order: -1; /* force label above textarea even if DOM order flipped */
}

/* Inputs — force dark on ALL comment inputs */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
#comment,
input#author,
input#email,
input#url {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;

    font-family: 'Rajdhani', system-ui, sans-serif !important;
    font-size: 0.98rem !important;
    color: #fff !important;

    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(200, 210, 255, 0.15) !important;
    border-radius: 6px !important;

    padding: 0.85rem 1rem !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    resize: vertical;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}

.comment-form textarea,
#comment {
    min-height: 140px !important;
    line-height: 1.55 !important;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(200, 200, 210, 0.3) !important;
    opacity: 1;
}

.comment-form input:focus,
.comment-form textarea:focus,
#comment:focus {
    border-color: rgba(200, 210, 255, 0.6) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow:
        0 0 0 3px rgba(200, 210, 255, 0.08),
        0 0 20px rgba(200, 210, 255, 0.15) !important;
}

/* Submit */
.comment-form .submit,
.l00t-comment-submit,
#submit {
    align-self: flex-start;
    padding: 1rem 2rem !important;

    font-family: 'Rajdhani', system-ui, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #c8d2ff !important;
    cursor: pointer;

    background: linear-gradient(135deg,
        rgba(200, 210, 255, 0.08) 0%,
        rgba(120, 80, 200, 0.08) 100%) !important;
    border: 1px solid rgba(200, 210, 255, 0.35) !important;
    border-radius: 4px !important;

    transition: all 0.3s ease;
    margin-top: 0.5rem !important;
    -webkit-appearance: none;
    appearance: none;
}

.comment-form .submit:hover,
.l00t-comment-submit:hover,
#submit:hover {
    color: #fff !important;
    border-color: rgba(200, 210, 255, 0.8) !important;
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(200, 210, 255, 0.25) !important;
}

/* Cookie consent */
.comment-form-cookies-consent {
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem !important;
}

.comment-form-cookies-consent input {
    width: auto !important;
    margin: 0 !important;
    accent-color: #c8d2ff;
}

.comment-form-cookies-consent label {
    font-size: 0.82rem !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    color: rgba(200, 200, 210, 0.55) !important;
    font-weight: 400 !important;
    order: 0;
}

/* Logged-in message */
.logged-in-as {
    font-size: 0.85rem;
    color: rgba(200, 200, 210, 0.6);
    margin-bottom: 1rem !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem !important;
}

.logged-in-as a {
    color: #c8d2ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 210, 255, 0.3);
}

.logged-in-as .required-field-message {
    color: rgba(200, 200, 210, 0.4);
    font-size: 0.78rem;
}

/* Required asterisk */
.required {
    color: #ff8080;
    font-weight: 700;
}

/* Notes */
.comment-notes {
    font-size: 0.82rem;
    color: rgba(200, 200, 210, 0.5);
    margin-bottom: 1rem;
}

.comment-notes .required-field-message {
    display: inline;
}

/* Must-log-in */
.must-log-in {
    font-size: 0.9rem;
    color: rgba(200, 200, 210, 0.6);
    padding: 1rem;
    background: rgba(200, 210, 255, 0.03);
    border: 1px solid rgba(200, 210, 255, 0.1);
    border-radius: 6px;
}

.must-log-in a {
    color: #c8d2ff;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
    .l00t-comments {
        padding: 0 1.25rem;
        margin-top: 3rem;
    }
    .l00t-comment .children {
        margin-left: 1rem;
        padding-left: 0.85rem;
    }
    .l00t-comment-body {
        padding: 1rem 1.1rem;
    }
    .l00t-comment-head {
        grid-template-columns: 34px 1fr auto;
        column-gap: 0.65rem;
    }
    .l00t-comment-avatar,
    .l00t-comment-avatar img,
    .l00t-comment-avatar .avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px;
        min-height: 34px;
        max-width: 34px;
        max-height: 34px;
    }
    .l00t-comment-form-wrap,
    #respond {
        margin-top: 2rem;
        padding-top: 1.75rem;
    }
    .comment-form .submit,
    .l00t-comment-submit,
    #submit {
        width: 100%;
    }
}