/* Postbit Styles - Desktop */
.postbit {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    background: var(--panel);
    margin-bottom: 14px;
}

.postbit-user {
    border-right: 1px solid var(--border);
    padding: 14px;
    background: #f7f8fb;
    display: grid;
    gap: 10px;
    align-content: start;
    justify-items: center;
    text-align: center;
}

.postbit-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.postbit-username {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.postbit-username a {
    color: #1f4e8c;
    text-decoration: none;
}

.postbit-username a.username-admin {
    color: #c41e3a;
    text-shadow: 0 0 4px rgba(196, 30, 58, 0.3);
}

.postbit-user-top {
    display: block;
    width: 100%;
}

.postbit-rank {
    margin-top: 8px;
}

.postbit-rank img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.postbit-stats {
    font-size: 12px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    width: 100%;
}

.postbit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.postbit-badges img {
    height: 24px;
    width: auto;
}

.postbit-badges span {
    font-size: 11px;
    background: #2f3345;
    color: #fff;
    padding: 3px 6px;
    border-radius: 999px;
}

.postbit-body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.postbit-meta {
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.postbit-content {
    font-size: 14px;
    line-height: 1.6;
}

.postbit-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.postbit-attachments a {
    font-size: 12px;
    background: #f7f8fb;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f4e8c;
}

.postbit-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    font-size: 12px;
}

.postbit-action {
    color: #1f4e8c;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.postbit-likebar {
    margin-top: 8px;
    background: #f7f8fb;
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #2f3345;
}

.postbit-likebar .like-names {
    color: #1f4e8c;
    font-weight: 600;
}

.postbit-likebar .like-more {
    color: var(--muted);
    margin-left: 4px;
}

/* Postbit Mobile Styles */
@media (max-width: 900px) {
    .postbit {
        grid-template-columns: 1fr;
        display: grid;
    }

    .postbit-user {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        padding: 14px;
        background: #f7f8fb;
        width: 100%;
    }

    .postbit-user-top {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .postbit-username {
        font-size: 16px;
        font-weight: 700;
        text-align: left;
        margin: 0;
        padding: 0;
        flex: 0 0 auto;
    }

    .postbit-username a {
        color: #1f4e8c;
    }

    .postbit-rank {
        flex: 0 0 auto;
        margin: 0;
        margin-left: auto;
    }

    .postbit-rank img {
        max-width: 130px;
        height: auto;
        display: block;
        margin: 0;
    }

    .postbit-avatar {
        width: auto;
        display: block;
        margin: 0;
        padding: 0;
        align-self: flex-start;
    }

    .postbit-avatar img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
        margin: 0;
    }

    .postbit-badges {
        display: none;
    }

    .postbit-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 0;
        font-size: 12px;
        color: var(--muted);
    }

    .postbit-stats div {
        margin: 0;
        padding: 0;
    }

    .postbit-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }
}
