/**
 * ESLuent post footer — direct port of theme-playful-postfooter.jsx.
 *
 * Every spacing / radius / shadow value comes straight from the inline
 * styles in the JSX so the rendered output matches the design canvas.
 */

.esl-pf {
    --pf-deep: #1A1A1A;
    --pf-cream: #FFF8EE;
    --pf-cream-warm: #FFEAD3;
    --pf-cream-light: #FCE4CB;
    --pf-card: #FFFFFF;
    --pf-accent: #F77205;
    --pf-accent2: #F78B33;
    --pf-accent-soft: #F8BA7D;
    --pf-accent-dark: #C45400;
    --pf-muted: rgba(26,26,26,0.62);
    --pf-line: rgba(26,26,26,0.10);

    background: var(--pf-cream);
    color: var(--pf-deep);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.005em;
    max-width: 1280px;
    margin: 40px auto 60px;
    padding: 40px 48px 60px;
    box-sizing: border-box;
}

/* Shared atoms */
.esl-pf__h {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1.2px;
    margin: 0;
}
.esl-pf__h em { font-style: normal; color: var(--pf-accent); }
.esl-pf__eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--pf-accent);
    letter-spacing: 1.4px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}


/* ── 1. Share row ──────────────────────────── */
.esl-pf__share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--pf-card);
    border-radius: 18px;
    border: 2.5px solid var(--pf-deep);
    box-shadow: 5px 5px 0 var(--pf-deep);
    margin-bottom: 32px;
}
.esl-pf__share-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.esl-pf__share-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pf-accent);
    color: var(--pf-cream);
    border: 2px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.esl-pf__share-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
    line-height: 1;
}
.esl-pf__share-sub {
    font-size: 12px;
    color: var(--pf-muted);
    margin-top: 3px;
}
.esl-pf__share-btns {
    display: flex;
    gap: 8px;
}
.esl-pf__share-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pf-card);
    color: var(--pf-deep);
    border: 2px solid var(--pf-deep);
    box-shadow: 2.5px 2.5px 0 var(--pf-deep);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.esl-pf__share-btn:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0 var(--pf-deep);
    background: var(--pf-accent-soft);
    color: var(--pf-deep);
}

@media (max-width: 760px) {
    .esl-pf__share { flex-wrap: wrap; }
    .esl-pf__share-btns { width: 100%; justify-content: flex-start; }
}


/* ── 2. Prev / Next ────────────────────────── */
.esl-pf__prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}
@media (max-width: 760px) {
    .esl-pf__prevnext { grid-template-columns: 1fr; }
}

.esl-pf__nav {
    background: var(--pf-card);
    border-radius: 18px;
    border: 2.5px solid var(--pf-deep);
    box-shadow: 5px 5px 0 var(--pf-deep);
    padding: 18px 22px;
    text-decoration: none;
    color: var(--pf-deep);
    display: grid;
    gap: 14px;
    align-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.esl-pf__nav:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--pf-deep);
    color: var(--pf-deep);
}
.esl-pf__nav--prev { grid-template-columns: auto auto 1fr; }
.esl-pf__nav--next { grid-template-columns: 1fr auto auto; }
.esl-pf__nav--empty {
    background: transparent;
    border: 2.5px dashed var(--pf-line);
    box-shadow: none;
    min-height: 90px;
}
.esl-pf__nav-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pf-accent);
    color: var(--pf-cream);
    border: 2.5px solid var(--pf-deep);
    box-shadow: 2.5px 2.5px 0 var(--pf-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.esl-pf__nav-skill {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 10px;
    background: var(--pf-accent-soft);
    color: var(--pf-deep);
    border: 2px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
    display: grid;
    place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.esl-pf__nav-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.esl-pf__nav--prev .esl-pf__nav-text { text-align: left; }
.esl-pf__nav--next .esl-pf__nav-text { text-align: right; }
.esl-pf__nav-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--pf-accent);
    letter-spacing: 1.4px;
    margin-bottom: 3px;
}
.esl-pf__nav-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ── 3. Related ────────────────────────────── */
.esl-pf__related { margin-bottom: 56px; }
.esl-pf__related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
    flex-wrap: wrap;
}
.esl-pf__browse {
    padding: 10px 16px;
    background: var(--pf-card);
    color: var(--pf-deep);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    border: 2px solid var(--pf-deep);
    box-shadow: 3px 3px 0 var(--pf-deep);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.esl-pf__browse:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 5px 5px 0 var(--pf-deep);
    color: var(--pf-deep);
}

.esl-pf__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 960px) { .esl-pf__related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .esl-pf__related-grid { grid-template-columns: 1fr; } }

.esl-pf__rcard {
    background: var(--pf-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2.5px solid var(--pf-deep);
    box-shadow: 5px 5px 0 var(--pf-deep);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: var(--pf-deep);
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.esl-pf__rcard:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--pf-deep);
    color: var(--pf-deep);
}
.esl-pf__rcard-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--pf-accent-dark);
    color: var(--pf-cream);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    border: 1.5px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
}
.esl-pf__rcard-head {
    padding: 20px 22px 18px;
    border-bottom: 2.5px solid var(--pf-deep);
    min-height: 120px;
    box-sizing: border-box;
}
.esl-pf__rcard-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.esl-pf__rcard-skill {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--pf-card);
    color: var(--pf-deep);
    border: 2px solid var(--pf-deep);
    display: grid;
    place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.esl-pf__rcard-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    opacity: 0.9;
}
.esl-pf__rcard-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.esl-pf__rcard-foot {
    padding: 14px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.esl-pf__rcard-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--pf-muted);
}
.esl-pf__rcard-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.esl-pf__rcard-stat svg { color: var(--pf-accent); }


/* ── 4. Discussion ─────────────────────────── */
.esl-pf__disc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
    flex-wrap: wrap;
}
.esl-pf__disc-filters {
    display: flex;
    gap: 8px;
}
.esl-pf__filter {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--pf-card);
    color: var(--pf-deep);
    border: 2px solid var(--pf-deep);
    box-shadow: 2.5px 2.5px 0 var(--pf-deep);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.esl-pf__filter:hover { transform: translate(-1.5px,-1.5px); box-shadow: 4px 4px 0 var(--pf-deep); }
.esl-pf__filter.is-active { background: var(--pf-accent); color: var(--pf-cream); }

/* Compose box (used as the WP comment_form wrapper). */
.esl-pf__compose {
    background: var(--pf-card);
    border-radius: 20px;
    border: 2.5px solid var(--pf-deep);
    box-shadow: 5px 5px 0 var(--pf-deep);
    padding: 18px 22px;
}
.esl-pf__compose-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.esl-pf__compose-avatar img,
.esl-pf__compose-avatar .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
    display: block;
}
.esl-pf__compose-body { flex: 1; min-width: 0; }
.esl-pf__compose-body textarea {
    width: 100%;
    border: 2px solid transparent;
    outline: none;
    resize: none;
    background: var(--pf-cream-warm);
    border-radius: 14px;
    padding: 12px 14px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px;
    color: var(--pf-deep);
    line-height: 1.55;
    box-sizing: border-box;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.esl-pf__compose-body textarea:focus {
    border-color: var(--pf-accent);
    box-shadow: 0 0 0 3px rgba(247,114,5,.15);
}
.esl-pf__compose-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 14px;
    flex-wrap: wrap;
}
.esl-pf__compose-format {
    display: flex;
    gap: 8px;
}
.esl-pf__fbtn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pf-card);
    color: var(--pf-muted);
    border: 2px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 13px;
    display: grid;
    place-items: center;
    cursor: default;
    user-select: none;
}
.esl-pf__compose-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.esl-pf__char-count {
    font-size: 11.5px;
    color: var(--pf-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.6px;
}

/* WP injects an outer form wrapper plus extra fields (logged-out users
   only — name, email, url). We hide them by default and surface the
   "Posting as X" line above the textarea instead. */
.esl-pf__compose .comment-form-author,
.esl-pf__compose .comment-form-email,
.esl-pf__compose .comment-form-url,
.esl-pf__compose .comment-form-cookies-consent { display: none; }
.esl-pf__compose .logged-in-as {
    font-size: 12px;
    color: var(--pf-muted);
    margin: 0 0 10px;
}
.esl-pf__compose .logged-in-as a { color: var(--pf-accent); font-weight: 700; text-decoration: none; }

.esl-pf__compose .form-submit { margin: 14px 0 0; text-align: right; }
.esl-pf__compose-submit,
.esl-pf__compose .submit {
    background: var(--pf-accent);
    color: var(--pf-cream);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid var(--pf-deep);
    box-shadow: 3px 3px 0 var(--pf-deep);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}
.esl-pf__compose-submit:hover,
.esl-pf__compose .submit:hover { transform: translate(-1.5px,-1.5px); box-shadow: 5px 5px 0 var(--pf-deep); }

/* Comment list (appears AFTER compose). */
.esl-pf__cmt-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.esl-pf__cmt-list .children {
    list-style: none;
    margin: 14px 0 0 36px;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 2px dashed var(--pf-line);
}

.esl-pf__cmt {
    background: var(--pf-card);
    border-radius: 18px;
    border: 2.5px solid var(--pf-deep);
    box-shadow: 4px 4px 0 var(--pf-deep);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
}
.esl-pf__cmt-avatar img,
.esl-pf__cmt-avatar .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--pf-deep);
    box-shadow: 2px 2px 0 var(--pf-deep);
    display: block;
}
.esl-pf__cmt-body { min-width: 0; }
.esl-pf__cmt-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.esl-pf__cmt-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.esl-pf__cmt-cefr {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--pf-accent-soft);
    color: var(--pf-deep);
    border: 1.5px solid var(--pf-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
}
.esl-pf__cmt-time {
    font-size: 12px;
    color: var(--pf-muted);
}
.esl-pf__cmt-text {
    margin: 4px 0 10px;
    font-size: 14.5px;
    color: var(--pf-deep);
    line-height: 1.55;
}
.esl-pf__cmt-text p { margin: 0 0 6px; }
.esl-pf__cmt-text p:last-child { margin-bottom: 0; }

.esl-pf__cmt-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 12.5px;
}
.esl-pf__cmt-helpful,
.esl-pf__cmt-reply a,
.esl-pf__cmt-save {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--pf-muted);
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .12s ease;
}
.esl-pf__cmt-helpful { color: var(--pf-deep); }
.esl-pf__cmt-helpful:hover,
.esl-pf__cmt-reply a:hover,
.esl-pf__cmt-save:hover { color: var(--pf-accent); }
.esl-pf__cmt-helpful-ic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pf-cream-warm);
    border: 1.5px solid var(--pf-deep);
    display: grid;
    place-items: center;
    color: var(--pf-deep);
}
