/* ============================================================
   COMMENTS — VOLLEDIGE CSS
   Trajectum / The Old & The Bold
   ============================================================ */


/* ============================
   COMMENTS SECTIE WRAPPER
   ============================ */

.comments-area {
    padding: 64px 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* ============================
   COMMENTS LIJST TITEL
   (boven de reacties)
   ============================ */

.comments-title {
    font-family: "alverata", "Helvetica Neue", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #161930;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(22, 25, 48, 0.1);
    margin-bottom: 0;
}


/* ============================
   COMMENT FORMULIER TITEL
   (boven het reactieformulier)
   ============================ */

.comment-reply-title {
    text-align: center;
    font-family: "alverata", "Helvetica Neue", sans-serif;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 500;
    color: #161930;
    margin-bottom: 48px;
}

/* <small> met annuleerlink naast de titel */
.comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
    vertical-align: middle;
}

/* Annuleerlink — subtiel, niet blauw */
#cancel-comment-reply-link {
    font-family: "Graphik", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #808080;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 25, 48, 0.3);
    padding-bottom: 1px;
    transition: all 250ms;
}

#cancel-comment-reply-link:visited {
    color: #808080;
}

#cancel-comment-reply-link:hover {
    color: #161930;
    border-bottom-color: #161930;
}


/* ============================
   COMMENT FORMULIER LAYOUT
   ============================ */

/* Grid: twee kolommen naast elkaar */
.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Veld posities */
.comment-form .comment-form-author  { grid-column: 1; margin: 0; }
.comment-form .comment-form-email   { grid-column: 2; margin: 0; }
.comment-form .comment-form-comment { grid-column: 1 / -1; margin: 0; }
.comment-form .form-submit          { grid-column: 1 / -1; text-align: right; margin: 0; }

/* Verberg onnodige velden */
.comment-form .comment-notes,
.comment-form .comment-form-url {
    display: none;
}

/* Ingelogd als balk */
.comment-form .logged-in-as {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #808080;
    margin: 0;
}

.comment-form .logged-in-as a {
    color: #808080;
}

/* Labels */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #161930;
    font-family: "Graphik", "Helvetica Neue", sans-serif;
}

/* Invoervelden — border + bestaande globale stijl */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(22, 25, 48, 0.2);
    border-radius: 3px;
    padding: 17px;
    color: #808080;
    transition: all 250ms;
    background-color: #ffffff;
}

/* Focus — zelfde als globale CSS */
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: #161930;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
    color: #161930;
    outline: none;
}

/* Textarea hoogte */
.comment-form textarea {
    min-height: 180px;
    resize: vertical;
}


/* ============================
   COMMENTS LIJST
   ============================ */

/* Verwijder standaard lijst styling */
.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Scheidingslijn tussen comments */
.comment-list > .comment {
    border-top: 1px solid rgba(22, 25, 48, 0.1);
    padding: 32px 0;
}

.comment-list > .comment:first-child {
    border-top: none;
    padding-top: 0;
}

/* Comment body: gewone flow */
.comment-body {
    display: block;
}

/* Auteur rij: avatar + naam via flex */
.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-family: "alverata", "Helvetica Neue", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #161930;
    font-style: normal;
}

.comment-author .says {
    font-size: 13px;
    color: #808080;
    margin-left: 4px;
}

/* Datum — ingesprongen zodat het uitlijnt met de naam */
.comment-metadata {
    margin-bottom: 12px;
    padding-left: 52px;
}

.comment-metadata a,
.comment-metadata time {
    font-size: 13px;
    color: #808080;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #161930;
}

.comment-metadata .edit-link {
    margin-left: 8px;
}

.comment-metadata .edit-link a {
    font-size: 12px;
    color: #808080;
    text-decoration: underline;
}

/* Commentaartekst — uitgelijnd met de naam */
.comment-content {
    padding-left: 52px;
    color: #404040;
    font-size: 16px;
    line-height: 1.6;
}

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

.comment-content a {
    color: #4169e1;
    word-break: break-word;
}

/* Reply link */
.reply {
    padding-left: 52px;
    margin-top: 12px;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 500;
    color: #161930;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 25, 48, 0.3);
    padding-bottom: 1px;
    transition: all 250ms;
}

.comment-reply-link:hover {
    color: #161930;
    border-bottom-color: #161930;
}


/* ============================
   GENESTE REACTIES
   ============================ */

.comment-list .children {
    margin-top: 0;
    margin-left: 52px;
    padding-left: 24px;
    border-left: 2px solid rgba(22, 25, 48, 0.08);
}

.children .comment {
    border-top: 1px solid rgba(22, 25, 48, 0.08);
    padding: 24px 0;
}

.children .comment:first-child {
    padding-top: 24px;
}

/* Iets kleinere avatar in geneste reacties */
.children .comment-author .avatar {
    width: 32px;
    height: 32px;
}

.children .comment-metadata,
.children .comment-content,
.children .reply {
    padding-left: 44px;
}


/* ============================
   RESPONSIVE — TABLET
   ============================ */

@media screen and (max-width: 768px) {
    .comment-reply-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .comment-list .children {
        margin-left: 24px;
        padding-left: 16px;
    }
}


/* ============================
   RESPONSIVE — MOBIEL
   ============================ */

@media screen and (max-width: 600px) {

    /* Formulier: één kolom */
    .comment-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        grid-column: 1;
    }

    /* Knop volle breedte */
    .comment-form .form-submit {
        text-align: center;
    }

    .comment-form .form-submit input[type="submit"] {
        width: 100%;
    }

    /* Titel kleiner */
    .comment-reply-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    /* Comments lijst */
    .comment-list > .comment {
        padding: 24px 0;
    }

    .comment-metadata,
    .comment-content,
    .reply {
        padding-left: 44px;
    }

    .comment-list .children {
        margin-left: 16px;
        padding-left: 12px;
    }

    .children .comment-metadata,
    .children .comment-content,
    .children .reply {
        padding-left: 36px;
    }
}


/* OTHER STYLING */

/* Fix 1: laat de rechterkolom zijn eigen hoogte bepalen */
#latest-news .item-wrapper.item-columns a {
    align-items: flex-start !important;
}

/* Fix 2: verwijder de limiet van 3 regels */
#latest-news .item-wrapper h4 {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}