/* ==========================================================================
   MBIKI POWER — PREMIUM THREAD
   ========================================================================== */

.thread-page {
    padding: 28px 0 80px;
}


/* --------------------------------------------------------------------------
   BREADCRUMBS
   -------------------------------------------------------------------------- */

.thread-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #68736e;
}

.thread-breadcrumbs a {
    color: #164c3a;
    text-decoration: none;
    font-weight: 650;
}

.thread-breadcrumbs a:hover {
    text-decoration: underline;
}

.thread-breadcrumb-separator {
    color: #b8c0bb;
}

.thread-breadcrumb-current {
    color: #8a938e;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --------------------------------------------------------------------------
   THREAD HERO
   -------------------------------------------------------------------------- */

.thread-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(230, 173, 59, .16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #071711 0%,
            #0d281e 55%,
            #123b2c 100%
        );
    border-radius: 24px;
    padding: 42px 46px 40px;
    color: #f7f5ef;
    box-shadow:
        0 20px 55px rgba(7, 23, 17, .14);
    margin-bottom: 30px;
}

.thread-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    top: -120px;
    border: 1px solid rgba(245, 207, 118, .22);
    border-radius: 50%;
}

.thread-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -65px;
    top: -85px;
    border: 1px solid rgba(245, 207, 118, .14);
    border-radius: 50%;
}

.thread-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.thread-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 12px;
    border: 1px solid rgba(245, 207, 118, .28);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #f5cf76;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.thread-category-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e6ad3b;
    box-shadow: 0 0 0 4px rgba(230,173,59,.12);
}

.thread-title {
    margin: 0;
    max-width: 920px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 760;
}

.thread-submeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 27px;
    color: rgba(247,245,239,.72);
    font-size: 14px;
}

.thread-submeta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.thread-submeta-item strong {
    color: #ffffff;
    font-weight: 650;
}

.thread-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
}


/* --------------------------------------------------------------------------
   THREAD CONTENT GRID
   -------------------------------------------------------------------------- */

.thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
}

.discussion-column {
    min-width: 0;
}


/* --------------------------------------------------------------------------
   ORIGINAL QUESTION
   -------------------------------------------------------------------------- */

.thread-card {
    background: #ffffff;
    border: 1px solid #e5e9e6;
    border-radius: 22px;
    box-shadow:
        0 10px 32px rgba(23,35,30,.055);
}

.original-post {
    overflow: hidden;
    border-color: #dfe7e1;
}

.original-post-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 28px 22px;
    border-bottom: 1px solid #edf0ee;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.post-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #164c3a,
            #0d281e
        );
    color: #f5cf76;
    font-size: 18px;
    font-weight: 800;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    color: #17231e;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
}

.post-author-name a,
.reply-author-name a {
    color: inherit;
    text-decoration: none;
}

.post-author-name a:hover,
.reply-author-name a:hover {
    color: #164c3a;
}

.post-author-role {
    margin-top: 4px;
    color: #7b8580;
    font-size: 12px;
}

.original-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f9f2df;
    color: #906719;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.original-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e6ad3b;
}

.post-body {
    padding: 30px 32px 26px;
}

.post-body-content {
    color: #26322d;
    font-size: 16px;
    line-height: 1.8;
}

.post-body-content > :first-child {
    margin-top: 0;
}

.post-body-content > :last-child {
    margin-bottom: 0;
}

.post-body-content h2,
.post-body-content h3,
.post-body-content h4 {
    color: #17231e;
    line-height: 1.3;
    margin-top: 30px;
}

.post-body-content a {
    color: #164c3a;
    font-weight: 650;
}

.post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-body-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid #e6ad3b;
    background: #faf8f1;
    border-radius: 0 12px 12px 0;
}


/* --------------------------------------------------------------------------
   INTERACTIONS
   -------------------------------------------------------------------------- */

.interaction-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 17px 28px 20px;
    border-top: 1px solid #edf0ee;
    background: #fcfdfc;
}

.reply-card .interaction-bar {
    padding: 14px 25px 17px;
}

.interaction-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.interaction-divider {
    width: 1px;
    height: 22px;
    margin: 0 5px;
    background: #e2e7e3;
}

.interaction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #68736e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .12s ease;
}

.interaction-button:hover {
    background: #f0f4f1;
    border-color: #e0e7e2;
    color: #17231e;
}

.interaction-button:active {
    transform: translateY(1px);
}

.interaction-button:disabled {
    opacity: .55;
    cursor: wait;
}

.interaction-button .interaction-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.interaction-count {
    min-width: 10px;
    color: #89928d;
    font-variant-numeric: tabular-nums;
}

.interaction-button.is-active {
    background: #edf5f0;
    border-color: #cfe0d5;
    color: #164c3a;
}

.interaction-button.is-active .interaction-count {
    color: #164c3a;
    font-weight: 800;
}

.interaction-button.favorite-button.is-active {
    background: #fbf5e7;
    border-color: #ead8aa;
    color: #9a6c16;
}

.interaction-button.favorite-button.is-active .interaction-count {
    color: #9a6c16;
}

.interaction-login-hint {
    margin-left: auto;
    color: #9aa29e;
    font-size: 11px;
}

.interaction-error {
    width: 100%;
    display: none;
    margin-top: 3px;
    color: #a33b32;
    font-size: 11px;
    font-weight: 650;
}

.interaction-bar.is-error .interaction-error {
    display: block;
}


/* --------------------------------------------------------------------------
   DISCUSSION HEADING
   -------------------------------------------------------------------------- */

.conversation-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 4px 18px;
}

.conversation-heading h2 {
    margin: 0;
    color: #17231e;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.conversation-count {
    color: #7b8580;
    font-size: 13px;
    font-weight: 650;
}


/* --------------------------------------------------------------------------
   REPLIES
   -------------------------------------------------------------------------- */

.replies {
    position: relative;
}

.reply-card {
    position: relative;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e9e6;
    border-radius: 20px;
    box-shadow:
        0 7px 25px rgba(23,35,30,.045);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.reply-card:hover {
    transform: translateY(-1px);
    border-color: #d7dfda;
    box-shadow:
        0 12px 30px rgba(23,35,30,.07);
}

.reply-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 25px 18px;
    border-bottom: 1px solid #edf0ee;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf3ef;
    color: #164c3a;
    font-size: 15px;
    font-weight: 800;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-author-name {
    color: #17231e;
    font-size: 14px;
    font-weight: 750;
}

.reply-date {
    margin-top: 3px;
    color: #89928d;
    font-size: 12px;
}

.reply-label {
    color: #8b948f;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.reply-body {
    padding: 24px 27px 27px;
}

.reply-content {
    color: #35413c;
    font-size: 15px;
    line-height: 1.78;
}

.reply-content > :first-child {
    margin-top: 0;
}

.reply-content > :last-child {
    margin-bottom: 0;
}

.reply-content a {
    color: #164c3a;
    font-weight: 650;
}

.reply-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.reply-title {
    margin: 0;
    padding: 16px 27px 0;
    color: #17231e;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 750;
}


/* --------------------------------------------------------------------------
   RIGHT SIDEBAR
   -------------------------------------------------------------------------- */

.thread-sidebar {
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e9e6;
    border-radius: 20px;
    padding: 22px;
    box-shadow:
        0 8px 28px rgba(23,35,30,.045);
}

.sidebar-card + .sidebar-card {
    margin-top: 16px;
}

.sidebar-label {
    margin-bottom: 15px;
    color: #8a938e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.sidebar-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #eef1ef;
    color: #64706a;
    font-size: 13px;
}

.sidebar-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-stat strong {
    color: #17231e;
    font-size: 14px;
}

.sidebar-sector {
    display: block;
    padding: 12px 13px;
    border-radius: 12px;
    background: #f2f6f3;
    color: #164c3a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-sector:hover {
    background: #eaf1ec;
}

.sidebar-note {
    color: #6e7973;
    font-size: 13px;
    line-height: 1.65;
}


/* --------------------------------------------------------------------------
   RELATED DISCUSSIONS
   -------------------------------------------------------------------------- */

.related-section {
    margin-top: 42px;
}

.related-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 4px 18px;
}

.related-section-title-wrap {
    min-width: 0;
}

.related-section-eyebrow {
    margin-bottom: 6px;
    color: #c5a059;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.related-section-heading h2 {
    margin: 0;
    color: #17231e;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.related-section-description {
    max-width: 320px;
    color: #7b8580;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}

.related-discussions-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.related-discussion-card {
    display: flex;
    flex-direction: column;
    min-height: 155px;
    padding: 21px;
    border: 1px solid #e3e9e5;
    border-radius: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow:
        0 7px 25px rgba(23,35,30,.045);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.related-discussion-card:hover {
    transform: translateY(-2px);
    border-color: #ccd8d0;
    box-shadow:
        0 13px 32px rgba(23,35,30,.08);
}

.related-discussion-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 20px;
    margin-bottom: 15px;
}

.related-discussion-sector {
    color: #89928d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.related-pinned {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(230,173,59,.12);
    color: #9a6c16;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.related-discussion-card h3 {
    margin: 0;
    color: #17231e;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -.01em;
    transition: color .15s ease;
}

.related-discussion-card:hover h3 {
    color: #164c3a;
}

.related-discussion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #89928d;
    font-size: 11px;
}

.related-meta-dot {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #c5a059;
}


/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.empty-replies {
    padding: 42px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #d8dfda;
    border-radius: 20px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f3f6f4;
    color: #164c3a;
    font-size: 20px;
}

.empty-replies h2 {
    margin: 0 0 7px;
    color: #17231e;
    font-size: 18px;
}

.empty-replies p {
    max-width: 420px;
    margin: 0 auto;
    color: #7b8580;
    font-size: 14px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {

    .thread-layout {
        grid-template-columns: 1fr;
    }

    .thread-sidebar {
        position: static;
    }

    .thread-sidebar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sidebar-card + .sidebar-card {
        margin-top: 0;
    }
}


@media (max-width: 680px) {

    .thread-page {
        padding-top: 18px;
        padding-bottom: 50px;
    }

    .thread-breadcrumbs {
        margin-bottom: 18px;
    }

    .thread-hero {
        padding: 30px 24px 28px;
        border-radius: 19px;
        margin-bottom: 20px;
    }

    .thread-title {
        font-size: 31px;
        letter-spacing: -.025em;
    }

    .thread-submeta {
        gap: 10px 14px;
        margin-top: 21px;
    }

    .thread-meta-divider {
        display: none;
    }

    .thread-layout {
        gap: 20px;
    }

    .original-post {
        border-radius: 18px;
    }

    .original-post-top {
        padding: 19px;
    }

    .post-body {
        padding: 23px 20px 0;
    }

    .post-body-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .interaction-bar {
        padding: 14px 18px 17px;
    }

    .interaction-login-hint {
        display: none;
    }

    .conversation-heading {
        margin-top: 30px;
    }

    .reply-card {
        border-radius: 17px;
    }

    .reply-top {
        padding: 17px 18px;
    }

    .reply-body {
        padding: 20px 19px 22px;
    }

    .reply-label {
        display: none;
    }

    .reply-card .interaction-bar {
        padding: 13px 17px 16px;
    }

    .thread-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card + .sidebar-card {
        margin-top: 0;
    }

    .related-section {
        margin-top: 32px;
    }

    .related-section-heading {
        display: block;
    }

    .related-section-description {
        max-width: none;
        margin-top: 7px;
        text-align: left;
    }

    .related-discussions-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 430px) {

    .thread-hero {
        padding: 26px 20px 25px;
    }

    .thread-title {
        font-size: 28px;
    }

    .original-post-top {
        align-items: flex-start;
    }

    .original-badge {
        font-size: 9px;
        padding: 6px 8px;
    }

    .post-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .related-discussion-card {
        padding: 18px;
    }

    .interaction-button {
        padding-left: 8px;
        padding-right: 8px;
    }
}

